-
Notifications
You must be signed in to change notification settings - Fork 170
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Why '/' not valid in JSON key? #179
Comments
Because the derived or compile-time encoded keys need to be the same across all the |
Thanks Michał
I have two follow-up questions:
I get:
Wouldn't it work the same way if "aaa/bbb" was allowed through
(I'm using https://github.com/OpenAPITools/openapi-generator-cli to generate servers based on OpenAPI specifications, and if a specification happens to have a key with a slash in it, the generated Elixir code simply doesn't compile.) |
Heya!
I'm compiling some generated code that looks sort of like this:
@derive Jason.Encoder
defstruct [
:hello,
:"hello/world"
]
It's failing because of:
It seems that '/' is perfectly valid in a JSON key - what's the reason for having this check here?
The text was updated successfully, but these errors were encountered: