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 oneOf and anyOf throw at build time rather then on deserialization #1001

Merged
merged 1 commit into from
Oct 29, 2023

Conversation

Leptopoda
Copy link
Member

Also correctly requires oneOf to only have one matching member.
Depends on #999 thus also blocked on the spec being corrected

@Leptopoda Leptopoda added the blocked Blocked on other things label Oct 19, 2023
@Leptopoda Leptopoda force-pushed the fix/dynamite/some_ofs branch 2 times, most recently from 93899cd to 1649721 Compare October 24, 2023 10:25
@Leptopoda Leptopoda removed the blocked Blocked on other things label Oct 24, 2023
Copy link
Member

@provokateurin provokateurin left a comment

Choose a reason for hiding this comment

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

I think you didn't correctly run dart fix in the end. Other than that and the small nitpick LGTM

@Leptopoda
Copy link
Member Author

These weren't accidental but just the builder failing due to #1024 and I just didn't notice it.

@provokateurin
Copy link
Member

provokateurin commented Oct 25, 2023

I think that particular one is by accident since you created a new property instead of setting the property to be required. All other ones are correct.

Copy link
Member

@provokateurin provokateurin left a comment

Choose a reason for hiding this comment

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

Rebase, then it will pass

…her then on deserialization

Signed-off-by: Nikolas Rimikis <leptopoda@users.noreply.github.com>
@Leptopoda Leptopoda force-pushed the fix/dynamite/some_ofs branch from 3ab8f3e to ec77029 Compare October 29, 2023 13:22
@Leptopoda Leptopoda merged commit 5c2b538 into main Oct 29, 2023
9 checks passed
@Leptopoda Leptopoda deleted the fix/dynamite/some_ofs branch October 29, 2023 14:45
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