-
-
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.
Merge pull request #195 from sebastian-toepfer/format_assertion_uri-t…
…emplate add support for uri-template format
- Loading branch information
Showing
4 changed files
with
59 additions
and
1 deletion.
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
36 changes: 36 additions & 0 deletions
36
vocabulary/format-assertion/src/main/resources/rfc/rfc6570
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 |
---|---|---|
@@ -0,0 +1,36 @@ | ||
URI-Template = *( literals / expression ) | ||
|
||
literals = %x21 / %x23-24 / %x26-3B / %x3D / %x3F-5B | ||
/ %x5D / %x5F / %x61-7A / %x7E / ucschar / iprivate | ||
/ pct-encoded | ||
; any Unicode character except: CTL, SP, | ||
; DQUOTE, "%" (aside from pct-encoded), | ||
; "<", ">", "\", "^", "`", "{", "|", "}" | ||
|
||
expression = "{" [ operator ] variable-list "}" | ||
operator = op-level2 / op-level3 / op-reserve | ||
op-level2 = "+" / "#" | ||
op-level3 = "." / "/" / ";" / "?" / "&" | ||
op-reserve = "=" / "," / "!" / "@" / "|" | ||
|
||
variable-list = varspec *( "," varspec ) | ||
varspec = varname [ modifier-level4 ] | ||
varname = varchar *( ["."] varchar ) | ||
varchar = ALPHA / DIGIT / "_" / pct-encoded | ||
|
||
modifier-level4 = prefix / explode | ||
|
||
prefix = ":" max-length | ||
max-length = %x31-39 0*3DIGIT ; positive integer < 10000 | ||
|
||
explode = "*" | ||
|
||
pct-encoded = "%" HEXDIG HEXDIG | ||
ucschar = %xA0-D7FF / %xF900-FDCF / %xFDF0-FFEF | ||
/ %x10000-1FFFD / %x20000-2FFFD / %x30000-3FFFD | ||
/ %x40000-4FFFD / %x50000-5FFFD / %x60000-6FFFD | ||
/ %x70000-7FFFD / %x80000-8FFFD / %x90000-9FFFD | ||
/ %xA0000-AFFFD / %xB0000-BFFFD / %xC0000-CFFFD | ||
/ %xD0000-DFFFD / %xE1000-EFFFD | ||
|
||
iprivate = %xE000-F8FF / %xF0000-FFFFD / %x100000-10FFFD |
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