Skip to content

Commit a50af3a

Browse files
philsturgeonPhil Sturgeon
andauthored
Unescaped Slashes Aint Welcome Around 'Ere (#2218)
* oas 3.0 doesn't mention slashes not allowed * none of those either Co-authored-by: Phil Sturgeon <me@philsturgeon.uk>
1 parent 862a8e3 commit a50af3a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

versions/3.1.0.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,8 @@ Path templating refers to the usage of template expressions, delimited by curly
7575

7676
Each template expression in the path MUST correspond to a path parameter that is included in the [Path Item](#path-item-object) itself and/or in each of the Path Item's [Operations](#operation-object). An exception is if the path item is empty, for example due to ACL constraints, matching path parameters are not required.
7777

78+
The value for these path parameters MUST NOT contain any unescaped "generic syntax" characters described by [RFC3986](https://tools.ietf.org/html/rfc3986#section-3): forward slashes (`/`), question marks (`?`), or hashes (`#`).
79+
7880
##### <a name="mediaTypes"></a>Media Types
7981
Media type definitions are spread across several resources.
8082
The media type definitions SHOULD be in compliance with [RFC6838](https://tools.ietf.org/html/rfc6838).

0 commit comments

Comments
 (0)