reverb / swagger-spec

This fork of the swagger-spec is intended for 2.0 planning
Other
19 stars 15 forks source link

Restrict pathItem's $ref type #111

Closed webron closed 10 years ago

webron commented 10 years ago

https://github.com/reverb/swagger-spec/blob/master/schemas/v2.0/schema.json#L183 (pathItem's $ref) is defined as type string which basically allows it to have anything written there.

It should be restricted to a subset of what's allowed in the pathItem definition (probably the same only without the ability for $ref so there are no hierarchical references).

webron commented 10 years ago

Not relevant.