Skip to content
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

Support to_yaml in YAML.mapping generated classes #3559

Merged
merged 2 commits into from
Nov 19, 2016

Conversation

maxpowa
Copy link
Contributor

@maxpowa maxpowa commented Nov 18, 2016

Allows to_yaml on classes generated through YAML.mapping, prior to this patch you'd get an error as demonstrated here.

@asterite
Copy link
Member

@maxpowa Looks good, thank you! Do you want to add a spec too?

@RX14
Copy link
Contributor

RX14 commented Nov 18, 2016

AFAIK @maxpowa is currently working on specs and supporting converters etc.

@maxpowa
Copy link
Contributor Author

maxpowa commented Nov 18, 2016

@RX14 is correct, I'm working on converters/emit_null etc - essentially to support what JSON supports.

@maxpowa
Copy link
Contributor Author

maxpowa commented Nov 18, 2016

Added support for converters, emit_null will take a bit more work - I'm going to put it in another PR since it also requires support from the parser, right now the parser doesn't appear to support YAML's null (null | ~).

@asterite asterite added this to the 0.20.0 milestone Nov 19, 2016
@asterite asterite merged commit d3bc110 into crystal-lang:master Nov 19, 2016
@maxpowa maxpowa deleted the mapping-to-yaml branch November 19, 2016 21:08
firejox pushed a commit to firejox/crystal that referenced this pull request Dec 12, 2016
* Support to_yaml in YAML.mapping generated classes

* Support converters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants