File tree Expand file tree Collapse file tree 5 files changed +11
-11
lines changed
Expand file tree Collapse file tree 5 files changed +11
-11
lines changed Original file line number Diff line number Diff line change 11package optional
22
3- #field_without_default :
4- " yes " |
5- " optional " |
6- " excluded "
3+ #field_without_default :
4+ " yes " |
5+ " optional " |
6+ " excluded "
77
88// Is a field Required, Optional or Excluded/Unused
99#field : #field_without_default | * " excluded "
Original file line number Diff line number Diff line change @@ -16,4 +16,4 @@ encodingTypes: br: description: "BROTLI Compression"
1616allContentEncoding : list .Sort ([
1717 for k , _ in encodingTypes {k },
1818], list .Ascending )
19- #allContentEncodingConstraint : or (allContentEncoding )
19+ #allContentEncodingConstraint : or (allContentEncoding )
Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ cose: headerFormats: #metadataFormats & {
5252 description : string
5353 format : #coseHeaderTypesConstraint
5454 // required: "yes" | "optional" | "excluded"
55- required : optional .#field_without_default
55+ required : optional .#field_without_default
5656
5757 if required != " excluded " {
5858 if format == " Media Type " {
@@ -81,7 +81,7 @@ _coseHeaders: #coseHeaders & {
8181 " content-encoding " : #coseField & {
8282 coseLabel : " content-encoding "
8383 format : " HTTP Content Encoding "
84- required : _ | * " optional "
84+ required : _ | * " optional "
8585 description : """
8686 Supported HTTP Encodings of the Payload.
8787 If no compression or encoding is used, then this field must not be present.
@@ -94,7 +94,7 @@ _coseSignatureHeaders: #coseHeaders & {
9494 kid : #coseField & {
9595 coseLabel : 4
9696 format : " Catalyst ID "
97- required : _ | * " yes "
97+ required : _ | * " yes "
9898 description : """
9999 Catalyst ID URI identifying the Public Key.
100100
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ docs: #DocumentDefinitions & {
1515 required : " yes "
1616 type : " Proposal "
1717 }
18-
18+
1919 // TODO add more detailed description
2020 payload : description : " Comment moderation action payload "
2121
Original file line number Diff line number Diff line change @@ -40,10 +40,10 @@ import (
4040 notes : [...string ] | * []
4141
4242 if payload .required == " excluded " {
43- headers : " content type " : required : " excluded "
43+ headers : " content type " : required : " excluded "
4444 headers : " content-encoding " : required : " excluded "
4545 }
46-
46+
4747 headers : _coseHeaders
4848
4949 // The Metadata fields in this document (non cose standard)
You can’t perform that action at this time.
0 commit comments