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 unions schema to match JSON. #26

Merged
merged 1 commit into from
Aug 8, 2024

Conversation

davidmorgan
Copy link
Contributor

With a note that we should actually do #8 so that this kind of mistake is caught automatically :)

Comment on lines 42 to 44
"properties": {"type": {"type": "string"}, "value": {"oneOf": [
{"$ref": "#/$defs/AugmentRequest"}
]}}
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: can we format these so they are easier to understand, for objects with a single key/value or lists with a single entry I am OK with collapsing them on one line, but when it gets nested it gets pretty confusing

Suggested change
"properties": {"type": {"type": "string"}, "value": {"oneOf": [
{"$ref": "#/$defs/AugmentRequest"}
]}}
"properties": {
"type": {"type": "string"},
"value": {
"oneOf": [
{"$ref": "#/$defs/AugmentRequest"}
]
}
}

Copy link
Contributor Author

@davidmorgan davidmorgan Aug 8, 2024

Choose a reason for hiding this comment

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

Yeeeah I was in two minds about this, it's awkward to collapse but it's also awkward expanded as it's boilerplate :)

Formatted the whole file with the VSCode formatter, which is probably what we end up doing/enforcing anyway. Thanks.

@davidmorgan davidmorgan merged commit 576ea7a into dart-lang:main Aug 8, 2024
39 checks passed
@davidmorgan davidmorgan deleted the fix-unions branch August 8, 2024 07:03
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