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

Define unknownFieldRetention trait #135

Draft
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

dhpiggott
Copy link
Contributor

No description provided.

.build()

val model =
Model.assembler.disableValidation
Copy link
Contributor

Choose a reason for hiding this comment

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

any reason why we have to disable validation?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not sure, I based this spec on one of the existing ones which had this. I'll see what happens if I enable it.

@dhpiggott dhpiggott force-pushed the define-unknown-field-retention-trait branch from 4417d9e to 739f418 Compare March 6, 2024 17:46
@dhpiggott dhpiggott force-pushed the define-unknown-field-retention-trait branch from 739f418 to a741ba6 Compare March 6, 2024 18:03
@trait(
selector: "structure > member :test(> document)"
)
structure unknownJsonFieldRetention {}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

From @Baccata via Slack:

just unify the two traits as jsonUnkown. Document abides by json semantics, and we do implement the same semantics in both Document and jsoniter

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.

None yet

2 participants