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

Basic support for Json flavours without default object serialization #66

Merged
merged 1 commit into from
Dec 19, 2023

Conversation

zah
Copy link
Contributor

@zah zah commented Dec 19, 2023

Other changes:

  • Migrate many procs accepting JsonReader to JsonLexer in order to reduce the number of generic instantiations and the resulting code bloat

Other changes:

* Migrate many procs accepting JsonReader to JsonLexer in order to
  reduce the number of generic instantiations and the resulting code
  bloat

template createJsonFlavor*(FlavorName: untyped,
mimeTypeValue = "application/json",
automaticObjectSerialization = false,
Copy link
Member

Choose a reason for hiding this comment

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

this should probably be true since json is typically used for interop via standards - the way to get there would be to have a deprecated overload that has the old behavior

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't understand the remark. The false value here means that you'll get the explicit override behavior by default.

Copy link
Member

Choose a reason for hiding this comment

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

ah oops, I read it wrong. 👍

@arnetheduck
Copy link
Member

nice, finally!

@zah zah merged commit f42567c into master Dec 19, 2023
12 checks passed
@zah zah deleted the strict-flavors branch December 19, 2023 10:00
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