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

Fix YAMLDecoder to support merging anchors #238

Merged
merged 2 commits into from
Jan 9, 2020
Merged

Fix YAMLDecoder to support merging anchors #238

merged 2 commits into from
Jan 9, 2020

Conversation

brentleyjones
Copy link
Collaborator

Currently YAMLDecoder uses Resolver.basic instead of Resolver.default, since it doesn't need to resolve types. This has the side effect of not including .merge as an option, making decode fail to see anchored properties.

@brentleyjones
Copy link
Collaborator Author

I should have opened an issue first. This might not actually fix the issue. Regardless I should probably add tests, changelog, etc.

@jpsim
Copy link
Owner

jpsim commented Jan 7, 2020

Thanks for the change! It looks right to me, but I'd like to see the tests and changelog entry as you mentioned. No need to file a separate ticket for the issue you're trying to resolve.

Currently `YAMLDecoder` uses `Resolver.basic` instead of `Resolver.default`, since it doesn't need to resolve types. This has the side effect of not including `.merge` as an option, making `decode` fail to see anchored properties.
@brentleyjones
Copy link
Collaborator Author

@jpsim I fixed the fix, added some tests, and updated the changelog.

@jpsim jpsim merged commit 5fa313e into jpsim:master Jan 9, 2020
@jpsim
Copy link
Owner

jpsim commented Jan 9, 2020

Thanks!

@brentleyjones brentleyjones deleted the patch-1 branch January 9, 2020 19:08
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