Skip to content

Commit e4caedc

Browse files
committed
chore: moves RFC references outside of ABNF block for path templates
Signed-off-by: Vincent Biret <[email protected]>
1 parent 758f44b commit e4caedc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/oas.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,14 +47,12 @@ The value for these path parameters MUST NOT contain any unescaped "generic synt
4747
The path templating is defined by the following [ABNF](https://tools.ietf.org/html/rfc5234) syntax
4848

4949
```abnf
50-
; OpenAPI Path Templating ABNF syntax
5150
path-template = "/" *( path-segment "/" ) [ path-segment ]
5251
path-segment = 1*( path-literal / template-expression )
5352
path-literal = 1*pchar
5453
template-expression = "{" template-expression-param-name "}"
5554
template-expression-param-name = 1*( %x00-79 / %x7C / %x7E-10FFFF ) ; every UTF8 character except { and }
5655
57-
; Characters definitions (from RFC 3986)
5856
pchar = unreserved / pct-encoded / sub-delims / ":" / "@"
5957
unreserved = ALPHA / DIGIT / "-" / "." / "_" / "~"
6058
pct-encoded = "%" HEXDIG HEXDIG
@@ -65,6 +63,8 @@ DIGIT = %x30-39 ; 0-9
6563
HEXDIG = DIGIT / "A" / "B" / "C" / "D" / "E" / "F"
6664
```
6765

66+
Here, all characters definitions are taken from [RFC 3986](https://tools.ietf.org/html/rfc3986). The path-template is directly derived from [RFC 3986, section 3.3](https://datatracker.ietf.org/doc/html/rfc3986#section-3.3).
67+
6868
### Media Types
6969

7070
Media type definitions are spread across several resources.

0 commit comments

Comments
 (0)