OAI / OpenAPI-Specification

The OpenAPI Specification Repository
https://openapis.org
Apache License 2.0
28.82k stars 9.07k forks source link

Some notes about the 1.2 specification document #42

Closed fge closed 8 years ago

fge commented 10 years ago

Link: https://github.com/wordnik/swagger-spec/blob/master/versions/1.2.md

fge commented 10 years ago

Also, section 5.1.2: path is in fact a URI Template, as defined by RFC 6570; the only template used is a level 1 expression type as defined in section 1.2 of the URI.

Code wise, Guava has UrlEscapers.urlPathSegmentEscaper() which can perform appropriate escaping for such templates. Exploiting URI templates fully requires more than that, of course.

webron commented 8 years ago

Thanks for the notes - we're not going to make changes to the older specs now.