-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
schema: Require that a single note isn’t inside an array #3090
Conversation
Do you have thoughts on #195 ? |
That allowing single‑element arrays in one context and disallowing them in another is rather inconsistent and we should either allow or forbid them in both contexts. |
I think we've more or less settled on forbidding single-element arrays, so I think we should accept this PR. It needs a rebase now, though. |
review?(@Elchi3): I have now resolved merge conflicts and fixed the build errors (please merge this before more issues arise). |
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.
Almost good to go.
test/sample-data.json
Outdated
"notes": [ | ||
"A single note in an array" | ||
] | ||
"notes": "A single note in an array" |
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 makes no sense now
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.
That’s because I did a regex replace on the whole repository, and forgot to check for this.
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! 👍
This makes the
notes
field behave the same way as the browser support statement array.review?(@Elchi3)