-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(docs): properly attribute ABNF non-terminals from various RFCs (#155
) Refs #151
- Loading branch information
Showing
3 changed files
with
18 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,23 @@ | ||
; OpenAPI Path Templating ABNF syntax | ||
; variant of https://datatracker.ietf.org/doc/html/rfc3986#section-3.3 | ||
path-template = slash *( path-segment slash ) [ path-segment ] | ||
path-segment = 1*( path-literal / template-expression ) | ||
slash = "/" | ||
path-literal = 1*pchar | ||
template-expression = "{" template-expression-param-name "}" | ||
template-expression-param-name = 1*( %x00-7A / %x7C / %x7E-10FFFF ) ; every UTF8 character except { and } (from OpenAPI) | ||
|
||
; Characters definitions (from RFC 3986) | ||
; https://datatracker.ietf.org/doc/html/rfc3986#section-3.3 | ||
pchar = unreserved / pct-encoded / sub-delims / ":" / "@" | ||
unreserved = ALPHA / DIGIT / "-" / "." / "_" / "~" | ||
; https://datatracker.ietf.org/doc/html/rfc3986#section-2.3 | ||
pct-encoded = "%" HEXDIG HEXDIG | ||
; https://datatracker.ietf.org/doc/html/rfc3986#section-2.1 | ||
sub-delims = "!" / "$" / "&" / "'" / "(" / ")" | ||
/ "*" / "+" / "," / ";" / "=" | ||
; https://datatracker.ietf.org/doc/html/rfc3986#section-2.2 | ||
|
||
; Characters definitions (from RFC 5234) | ||
; https://datatracker.ietf.org/doc/html/rfc5234#appendix-B.1 | ||
ALPHA = %x41-5A / %x61-7A ; A-Z / a-z | ||
DIGIT = %x30-39 ; 0-9 | ||
HEXDIG = DIGIT / "A" / "B" / "C" / "D" / "E" / "F" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters