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

Add option to skip unknown record fields #40

Merged
merged 1 commit into from
Oct 13, 2022

Conversation

code-ghalib
Copy link

This is intended to address #39 - let me know if this seems reasonable - I just added an optional flag to skip unknown record fields.

@patricoferris
Copy link
Owner

Great, thanks for the quick fix. This looks good to me, I can do a couple of tidy ups after this and do a release :))

@patricoferris patricoferris merged commit 4af0c22 into patricoferris:main Oct 13, 2022
@code-ghalib code-ghalib deleted the skip-unknown branch October 13, 2022 18:09
kit-ty-kate pushed a commit to ocaml/opam-repository that referenced this pull request Oct 14, 2022
CHANGES:

- Add custom `to_yaml` and `of_yaml` attributes (patricoferris/ppx_deriving_yaml#38, @patricoferris)
- Add `skip_unknown` flag to allow partially decoding yaml (patricoferris/ppx_deriving_yaml#40, @code-ghalib)
- Hide record fields with default values in to_yaml output (patricoferris/ppx_deriving_yaml#37, @maurobringolf, reviewed by @sim642 and @patricoferris)
- Expose `to_yaml` and `of_yaml` derivers with `yaml` being an alias (patricoferris/ppx_deriving_yaml#36, @patricoferris)
- Improved error messages (patricoferris/ppx_deriving_yaml#32, @prosper74, reviewed by @patricoferris)
- Add a default attribute for providing placeholder values (patricoferris/ppx_deriving_yaml#31, @prosper74, reviewed by @ayc9, @pitag-ha and @patricoferris)
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