Skip to content

feature: default to creating toJson function instead of a mixin #254

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

Merged
merged 3 commits into from
Jul 16, 2018

Conversation

kevmoo
Copy link
Collaborator

@kevmoo kevmoo commented Jul 9, 2018

The default for the generate_to_json_function is now true.

@kevmoo kevmoo force-pushed the to_json_function_by_default branch 2 times, most recently from 8345818 to eba5cd1 Compare July 13, 2018 20:19
@kevmoo kevmoo changed the title WIP: default to using toJson function feature: default to creating toJson function instead of a mixin Jul 13, 2018
@kevmoo kevmoo requested review from natebosch and jakemac53 July 13, 2018 20:21
@kevmoo kevmoo force-pushed the to_json_function_by_default branch from b5ca08e to d559dc1 Compare July 13, 2018 23:06
* **BREAKING** By default, code generated to support `toJson` now creates
a top-level function instead of a mixin.
* The default for the `generate_to_json_function` is now `true`.
* To opt-out of this change, set `generate_to_json_function` to `false`.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do these need to be separate sub bullets? They seem like a continuation of the same thought.

@kevmoo
Copy link
Collaborator Author

kevmoo commented Jul 16, 2018 via email

@kevmoo kevmoo force-pushed the to_json_function_by_default branch from b905a68 to 8587a82 Compare July 16, 2018 18:31
@kevmoo kevmoo merged commit 419eba9 into master Jul 16, 2018
@kevmoo kevmoo deleted the to_json_function_by_default branch July 16, 2018 18:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants