-
Notifications
You must be signed in to change notification settings - Fork 13
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: unary op shorthand unsupported #142
Conversation
Signed-off-by: Todd Baert <todd.baert@dynatrace.com>
@@ -19,6 +19,7 @@ | |||
{"!=" : [1, 2]}, | |||
{"!==" : [1, 2]}, | |||
{"!": [true]}, | |||
{"!": true}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This failed to validate before the change.
"items": { | ||
"$ref": "#/definitions/args" | ||
} | ||
"anyOf": [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Support either an array of length 1 or just the arg itself!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for such a quick turnaround on this 😄
🤖 I have created a release *beep* *boop* --- <details><summary>json/json-schema: 0.2.5</summary> ## [0.2.5](json/json-schema-v0.2.4...json/json-schema-v0.2.5) (2024-05-23) ### 🐛 Bug Fixes * unary op shorthand unsupported ([#142](#142)) ([946ffc4](946ffc4)) </details> --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Unary ops should support single args (shorthand) as well as arrays with just a single element.