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

Draft 2 to 3, rules on optional, requires keyword #43

Merged
merged 3 commits into from
Aug 9, 2024

Conversation

suprith-hub
Copy link
Collaborator

No description provided.

},
"to": {
"properties": {
"foo": {},
Copy link
Member

Choose a reason for hiding this comment

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

The test is definitely valid, but I wonder if we should get rid of these empty properties. No reason to artificially add them, right?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Okay, i'll have to add rules for whose dependent rule is popping properties..

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@jviotti but there can be references to #/properties/foo, #/propeties/bar etc.. even though they are empty. So, I think we shouldn't remove them

Copy link
Member

Choose a reason for hiding this comment

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

Right. OK, fine to keep them then!

@jviotti jviotti merged commit 2df6bcd into main Aug 9, 2024
1 check failed
@jviotti jviotti deleted the draft2To3_schema_optional_requires branch August 9, 2024 22: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