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

Make annotation traits lossless #385

Merged
merged 1 commit into from
Apr 17, 2020
Merged

Conversation

mtdowling
Copy link
Member

This commit updates annotation traits to now accept an ObjectNode that
contains the actual value found in a model rather than just the source
location. This makes it possible to a) validate that the values provided
for an annotation trait are valid b) persist unknown annotation trait
properties when serializing a model. Extraneous trait properties
previously resulted in an ERROR, but now they are a WARNING, since
adding new properties isn't meant to be a breaking change.

Issue #, if available:

Description of changes:

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

This commit updates annotation traits to now accept an ObjectNode that
contains the actual value found in a model rather than just the source
location. This makes it possible to a) validate that the values provided
for an annotation trait are valid b) persist unknown annotation trait
properties when serializing a model. Extraneous trait properties
previously resulted in an ERROR, but now they are a WARNING, since
adding new properties isn't meant to be a breaking change.
@mtdowling mtdowling requested a review from kstich April 17, 2020 19:18
@mtdowling mtdowling merged commit e8d364b into 0.10 Apr 17, 2020
@mtdowling mtdowling deleted the lossless-annotation-traits branch April 23, 2020 02:18
@kstich kstich mentioned this pull request Apr 23, 2020
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