Skip to content

Commit 0ef6759

Browse files
committed
fix fmt
1 parent ea36db1 commit 0ef6759

File tree

5 files changed

+11
-11
lines changed

5 files changed

+11
-11
lines changed
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
package 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"

specs/definitions/media_types/encoding.cue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ encodingTypes: br: description: "BROTLI Compression"
1616
allContentEncoding: list.Sort([
1717
for k, _ in encodingTypes {k},
1818
], list.Ascending)
19-
#allContentEncodingConstraint: or(allContentEncoding)
19+
#allContentEncodingConstraint: or(allContentEncoding)

specs/definitions/signed_docs/cose_headers.cue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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

specs/definitions/signed_docs/docs/proposal_moderation_action.cue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

specs/definitions/signed_docs/signed_doc.cue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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)

0 commit comments

Comments
 (0)