-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Wrong YAML nil serialization and scalars deserialization #4175
Comments
I'm not sure it will be useful to fix the issue but here is the Ruby's Psych scalar scanner implementation. |
This is more or less a duplicate of #4175 . The current YAML parser only knows about String, Array and Hash. We need to extend this to support the core YAML schema, possibly other schemas too. |
Oops, I tried to find a related issue but I missed both of them, thanks for the references. |
No. It's a duplicate of #3101 per "unsupported types (e.g. null, numbers)". |
Crystal's YAML builder/parser does not handle properly nil serialization and YAML scalars deserialization:
Here is an example:
the output:
to compare, the output of Ruby's implementation:
edit: deserialization of every YAML scalars seems to be impacted
The text was updated successfully, but these errors were encountered: