Skip to content

Commit

Permalink
Address Marco's comments
Browse files Browse the repository at this point in the history
  • Loading branch information
cabo committed Jan 21, 2024
1 parent 29760ed commit 255e9e6
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 16 deletions.
24 changes: 12 additions & 12 deletions code/schemes-numbers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -65,15 +65,15 @@ def get_one(el, xp)
end

__END__
| CRI scheme number | URI scheme | Reference |
|-------------------|------------|-------------|
| 0 | coap | \[RFC-XXXX] |
| 1 | coaps | \[RFC-XXXX] |
| 2 | http | \[RFC-XXXX] |
| 3 | https | \[RFC-XXXX] |
| 4 | urn | \[RFC-XXXX] |
| 5 | did | \[RFC-XXXX] |
| 6 | coap+tcp | \[RFC-XXXX] |
| 7 | coaps+tcp | \[RFC-XXXX] |
| 8 | coap+ws | \[RFC-XXXX] |
| 9 | coaps+ws | \[RFC-XXXX] |
| CRI scheme number | URI scheme name | Reference |
|-------------------|-----------------|-------------|
| 0 | coap | \[RFC-XXXX] |
| 1 | coaps | \[RFC-XXXX] |
| 2 | http | \[RFC-XXXX] |
| 3 | https | \[RFC-XXXX] |
| 4 | urn | \[RFC-XXXX] |
| 5 | did | \[RFC-XXXX] |
| 6 | coap+tcp | \[RFC-XXXX] |
| 7 | coaps+tcp | \[RFC-XXXX] |
| 8 | coap+ws | \[RFC-XXXX] |
| 9 | coaps+ws | \[RFC-XXXX] |
10 changes: 6 additions & 4 deletions draft-ietf-core-href.md
Original file line number Diff line number Diff line change
Expand Up @@ -1023,7 +1023,8 @@ value from a data item in the CRI, the presence of any
2. Translate the scheme-id into a URI scheme name as per
{{scheme-id}} and
{{scheme-map}}; if a scheme-id that corresponds to a scheme
number not in this list is being used,
number not in this list is being used, or if a scheme-name is
being used,
fail this algorithm.
Remember the specific variant of CoAP to be used based on this
URI scheme name.
Expand Down Expand Up @@ -1142,8 +1143,9 @@ CoAP unsigned integer.
It is used analogously to Proxy-Scheme as defined in {{Section 5.10.2
of -coap}}.

Since CoAP Options are only defined as one of empty, (text) string,
opaque (byte string), or unsigned integer, the Option carries an
As per {{Section 3.2 of -coap}}, CoAP Options are only defined as one of empty, (text) string,
opaque (byte string), or uint (unsigned integer).
The Option therefore carries an
unsigned integer that represents the CRI scheme-number (which relates to
a CRI scheme-id as defined in {{scheme-id}}).
For instance, the scheme name "coap" has the scheme-number 0 and is
Expand Down Expand Up @@ -1231,7 +1233,7 @@ a time-limited discussion.
Each entry in the registry must include:

{:vspace}
CRI scheme number value:
CRI scheme number:
: An unsigned integer unique in this registry

URI scheme name:
Expand Down

0 comments on commit 255e9e6

Please sign in to comment.