-
-
Notifications
You must be signed in to change notification settings - Fork 259
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
Radical idea: Don't do anything about "additionalProperties": false #367
Comments
VOTE-A-RAMA!!! It's time to gauge community support for all re-use/extension/additionalProperties proposals and actually make some decisions for the next draft. Please use emoji reactions ON THIS COMMENT to indicate your support.
This is not a binding majority-rule vote, but it will be a very significant input into discussions. Here are the meanings for the emojis:
If you want to explain in more detail, feel free to add another comment, but please also vote on this comment. The vote should stay open for several weeks- I'll update this comment with specifics once we see how much feedback we are getting and whether any really obvious patterns emerge. |
I don't think it is radical, really :) It's just maintaining the status quo. For draft-07 it can be the best option, actually. |
@epoberezkin I was being sarcastic :-P To be clear, this is NOT about just keeping the status quo for draft-07. This is about closing all of these and declaring it done. One way or another, we are making a decision in this draft. I will edit the description. |
@handrews Thanks for adding this. I was going to do it myself, but I'm super busy these days.
I wouldn't put it like that. There certainly is a problem with |
I confess that was more me talking, I should have been more clear since I flagged you for the concept! I still consider using I have no intention of removing And while that use case is simpler than |
For anyone wondering about the deleted comments (assuming the UI keeps noting them), see #373 for a full treatment of the ideas as their own proposal. |
I don't really understand why this is an issue. I've commented as such on the opposing issue. Will wait to see if anything explained further. |
This was actually the most popular option in the vote-a-rama. Others attracted stronger support, but this is the only proposal with zero negative votes. So we are not doing anything in draft-07, but we are focusing on the remaining viable proposals for draft-08. Since this issue only existed to provide a place for voting, I'm closing it- we do not need an issue to track not doing anything :-) |
@jdesrosiers suggested filing an issue for this to include in the vote-a-rama.
One view holds that there is no problem with the existing
"additionalProperties"
behavior, and the most typical use case that people are trying to solve (catching misspelled / unexpected properties, particularly during development) can be solved outside of the spec.VOTING FOR THIS MEANS VOTING TO PERMANENTLY CLOSING THE "additionalProperties": false TOPIC
At least to the extent that anything in a draft is permanent. But unless someone comes along with a truly compelling new proposal, requests to revisit it will be denied.
There would be no single solution here, as internal development and testing usage need not be interoperable externally. So an implementation could implement the "strict properties mode" approach (a property must be accounted for somewhere in some subschema) as a runtime option, but it could not be controlled by the schema contents. This is sufficient for pre-deployment testing.
There are other possible outside-of-the-spec runtime approaches, and implementations would be free to implement any, multiple, or none.
The text was updated successfully, but these errors were encountered: