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: unary op shorthand unsupported #142

Merged
merged 1 commit into from
May 23, 2024
Merged

fix: unary op shorthand unsupported #142

merged 1 commit into from
May 23, 2024

Conversation

toddbaert
Copy link
Member

@toddbaert toddbaert commented May 23, 2024

Unary ops should support single args (shorthand) as well as arrays with just a single element.

Signed-off-by: Todd Baert <todd.baert@dynatrace.com>
@toddbaert toddbaert requested a review from a team as a code owner May 23, 2024 18:15
@@ -19,6 +19,7 @@
{"!=" : [1, 2]},
{"!==" : [1, 2]},
{"!": [true]},
{"!": true},
Copy link
Member Author

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": [
Copy link
Member Author

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!

Copy link
Member

@juanparadox juanparadox left a 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 😄

@toddbaert toddbaert merged commit 946ffc4 into main May 23, 2024
7 checks passed
@toddbaert toddbaert deleted the fix/unary-shorthand branch May 23, 2024 18:50
@github-actions github-actions bot mentioned this pull request May 23, 2024
toddbaert pushed a commit that referenced this pull request May 23, 2024
🤖 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>
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.

4 participants