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
{{ message }}
Repository navigation
Add additionalProperties to Schema Object Documentation #285
There is an example under the Schema Object definition which uses the "additionalProperties" key, but it is not specified as a possible key in the above spec.
@webron As I understand it, there are two things that need to done to resolve this issue.
Update the jsonschema for the Swagger Specificiation to support additionalProperties on object types. This appears in commit 989544c
Update the list of properties in https://github.com/swagger-api/swagger-spec/blob/master/versions/2.0.md#schema-object to include additionalProperties. This item is the reason for my original question. Without this update, it is not apparent from reading the spec that additionalProperties is even supported (except for the usage in an example which begs the question "Is this an error in the spec or an error in the example?").
Activity
Added additionalProperties to Schema Object
analogue commentedon Mar 11, 2015
So all that is left here is updating the docs in 2.0.md?
webron commentedon Mar 11, 2015
@analogue - you can see the link to the commit in the issue. It'll be available once I merge the fixes with master.
analogue commentedon Mar 11, 2015
@webron As I understand it, there are two things that need to done to resolve this issue.
additionalPropertieson object types. This appears in commit 989544cadditionalProperties. This item is the reason for my original question. Without this update, it is not apparent from reading the spec thatadditionalPropertiesis even supported (except for the usage in an example which begs the question "Is this an error in the spec or an error in the example?").webron commentedon Mar 11, 2015
Oh wow, I was sure I added that as well already. Thanks for bring it up, will be available in the fixes branch shortly.
Added additionalProperties to the spec
webron commentedon Mar 11, 2015
Done.
Smolations commentedon Mar 16, 2015
Thanks everyone! 👍