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: add a few missing type keywords #117

Merged
merged 1 commit into from
Oct 23, 2023

Conversation

henryiii
Copy link
Collaborator

It's not clear if these are required or not, but I don't think it hurts.

Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>
@@ -100,7 +100,7 @@
"type": "object",
"additionalProperties": false,
"propertyNames": {
"oneOf": [{"const": ""}, {"$ref": "#/definitions/package-name"}]
"anyOf": [{"const": ""}, {"$ref": "#/definitions/package-name"}]
Copy link
Owner

@abravalheri abravalheri Oct 23, 2023

Choose a reason for hiding this comment

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

Does SchemaStore prefers anyOf instead of oneOf? (The logic is that in this case it will match exactly one definition, right?)

Copy link
Owner

Choose a reason for hiding this comment

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

I see... in the case format is excluded, it starts to match multiple definitions and then fails.

@abravalheri abravalheri merged commit 0c33993 into abravalheri:main Oct 23, 2023
29 checks passed
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