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

anonymous field flatten mangler #88

Merged
merged 4 commits into from
Mar 20, 2024
Merged

Conversation

dfinkel
Copy link
Contributor

@dfinkel dfinkel commented Mar 20, 2024

  • anonymous flatten mangler
  • yaml: add AnonymousFlattenMangler option
  • ez: hook up FlattenAnonymousFields for yaml

@dfinkel dfinkel force-pushed the anonymous_field_flatten_mangler branch from b9c3b59 to 3065737 Compare March 20, 2024 14:19
Some decoders *ehem* yaml *ehem*, don't support flattening anonymous
fields into their parent structs.
Add a mangler that we can add to the chain to support this behavior.
(it'll have to be opt-in, but that's fine)
Add a field to opt into using the AnonymousFlattenMangler.
@dfinkel dfinkel force-pushed the anonymous_field_flatten_mangler branch from 3065737 to d17603b Compare March 20, 2024 14:50
Plumb the ez params to the decoder factories and hook up the anonlymous
flatten mangler bool in the yaml decoder.
@dfinkel dfinkel merged commit 6d7d1f9 into master Mar 20, 2024
6 checks passed
@dfinkel dfinkel deleted the anonymous_field_flatten_mangler branch March 20, 2024 15:44
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