Skip to content

Commit 3373090

Browse files
committed
docs: add explicit mention about RFC 6570
1 parent a35792a commit 3373090

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,7 @@ The Server URL Templating is defined by the following [ABNF](https://tools.ietf.
254254

255255
```abnf
256256
; OpenAPI Server URL templating ABNF syntax
257+
; Aligned with RFC 6570 (https://www.rfc-editor.org/rfc/rfc6570)
257258
server-url-template = 1*( literals / server-variable )
258259
server-variable = "{" server-variable-name "}"
259260
server-variable-name = 1*( unreserved / pct-encoded / sub-delims / ":" / "@" )

src/server-url-templating.bnf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
; OpenAPI Server URL templating ABNF syntax
2+
; Aligned with RFC 6570 (https://www.rfc-editor.org/rfc/rfc6570)
23
server-url-template = 1*( literals / server-variable )
34
server-variable = "{" server-variable-name "}"
45
server-variable-name = 1*( unreserved / pct-encoded / sub-delims / ":" / "@" )

src/server-url-templating.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,7 @@ export default function grammar(){
171171
this.toString = function toString(){
172172
let str = "";
173173
str += "; OpenAPI Server URL templating ABNF syntax\n";
174+
str += "; Aligned with RFC 6570 (https://www.rfc-editor.org/rfc/rfc6570)\n";
174175
str += "server-url-template = 1*( literals / server-variable )\n";
175176
str += "server-variable = \"{\" server-variable-name \"}\"\n";
176177
str += "server-variable-name = 1*( unreserved / pct-encoded / sub-delims / \":\" / \"@\" )\n";

0 commit comments

Comments
 (0)