-
Notifications
You must be signed in to change notification settings - Fork 9.1k
3.2: update normative reference for JSON to RFC8259 #4499
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@@ -117,7 +117,7 @@ Occasionally, non-backwards compatible changes may be made in `minor` versions o | |||
|
|||
### Format | |||
|
|||
An OpenAPI Document that conforms to the OpenAPI Specification is itself a JSON object, which may be represented either in JSON or YAML format. | |||
An OpenAPI Document that conforms to the OpenAPI Specification is itself a JSON object, which may be represented either in [[RFC8259|JSON]] or [[YAML|YAML]] format. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Make reference to JSON RFC explicit.
Otherwise our HTML build script would reference the old RFC in
line = line.replace('JSON or YAML format.','[[RFC7159|JSON]] or [[YAML|YAML]] format.'); |
@@ -2556,13 +2556,13 @@ The runtime expression is defined by the following [ABNF](https://tools.ietf.org | |||
; %x2F ('/') and %x7E ('~') are excluded from 'unescaped' | |||
escaped = "~" ( "0" / "1" ) | |||
; representing '~' and '/', respectively | |||
name = *( CHAR ) | |||
name = *char |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note: RFC7159 and RFC8259 both name this rule char
. ABNF rule names are case-insensitive, but it is still easier to check the reference if the casing is exactly the same.
token = 1*tchar | ||
tchar = "!" / "#" / "$" / "%" / "&" / "'" / "*" / "+" / "-" / "." | ||
/ "^" / "_" / "`" / "|" / "~" / DIGIT / ALPHA | ||
``` | ||
|
||
Here, `json-pointer` is taken from [RFC6901](https://tools.ietf.org/html/rfc6901), `CHAR` from [RFC7159](https://tools.ietf.org/html/rfc7159#section-7) and `token` from [RFC9110](https://www.rfc-editor.org/rfc/rfc9110.html#section-5.6.2). | ||
Here, `json-pointer` is taken from [RFC6901](https://tools.ietf.org/html/rfc6901), `char` from [RFC8259](https://tools.ietf.org/html/rfc8259#section-7) and `token` from [RFC9110](https://www.rfc-editor.org/rfc/rfc9110.html#section-5.6.2). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use RFC8259 rule name casing.
Fixes #4487
Non-obvious changes are commented.
Tick one of the following options: