You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#174 has a somewhat broad-ranging discussion about various allOf and additionalProperties limitations that SwagEdit should be aware of, and should help with by adding validations and helpful messages.
One of these is simple, and should not get lost in the overall discussion, so I'm adding it here as a separate issue:
additionalProperties: true and false are meaningless in Swagger 2.0, and should not be allowed.
Note that this is allowed, according to the Swagger specification, and according to the standard JSON Schema for Swagger. Ron Ratovsky says here that this was an oversight in the specification. It wasn't supposed to have been supported. But I think we have to go by the spec, not by after-the-fact comments.
The reason for the warning is because it's totally ignored by the Swagger core libraries. There's nothing downstream of the editor that will recognize a value of true.
The text was updated successfully, but these errors were encountered:
#174 has a somewhat broad-ranging discussion about various
allOf
andadditionalProperties
limitations that SwagEdit should be aware of, and should help with by adding validations and helpful messages.One of these is simple, and should not get lost in the overall discussion, so I'm adding it here as a separate issue:
additionalProperties: true
andfalse
are meaningless in Swagger 2.0, and should not be allowed.Note that this is allowed, according to the Swagger specification, and according to the standard JSON Schema for Swagger. Ron Ratovsky says here that this was an oversight in the specification. It wasn't supposed to have been supported. But I think we have to go by the spec, not by after-the-fact comments.
The reason for the warning is because it's totally ignored by the Swagger core libraries. There's nothing downstream of the editor that will recognize a value of
true
.The text was updated successfully, but these errors were encountered: