Skip to content

Commit

Permalink
schema: minor tweaks
Browse files Browse the repository at this point in the history
Pass through `jq .`; this fixes the indentation of one key.

Also for consistency, use lowercase for the `$id` of the `path` property
in artifacts.
  • Loading branch information
jlebon committed Mar 11, 2024
1 parent dd109aa commit 8cc63c6
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion pkg/builds/cosa_v1.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package builds

// generated by 'make schema'
// source hash: 73eba405214212d41c92204c48cde7bede443c9815395676b5e9c52531d08a61
// source hash: 4c19aed3b3d84af278780bff63728510bb3e70613e4c4eef8cabd7939eb31bd8

type AdvisoryDiff []AdvisoryDiffItems

Expand Down
8 changes: 4 additions & 4 deletions pkg/builds/schema_doc.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Generated by ./generate-schema.sh
// Source hash: 73eba405214212d41c92204c48cde7bede443c9815395676b5e9c52531d08a61
// Source hash: 4c19aed3b3d84af278780bff63728510bb3e70613e4c4eef8cabd7939eb31bd8
// DO NOT EDIT

package builds
Expand All @@ -10,7 +10,7 @@ var generatedSchemaJSON = `{
"type": "object",
"properties": {
"path": {
"$id": "#/artifact/Path",
"$id": "#/artifact/path",
"type": "string",
"title": "Path"
},
Expand Down Expand Up @@ -532,7 +532,7 @@ var generatedSchemaJSON = `{
"title": "Secure Execution Qemu",
"$ref": "#/definitions/artifact"
},
"ignition-gpg-key": {
"ignition-gpg-key": {
"$id": "#/properties/images/properties/ignition-gpg-key",
"type": "object",
"title": "Secure Execution Ignition PubKey",
Expand Down Expand Up @@ -718,7 +718,7 @@ var generatedSchemaJSON = `{
],
"properties": {
"path": {
"$id": "#/artifact/Path",
"$id": "#/artifact/path",
"type": "string",
"title": "Path"
},
Expand Down
6 changes: 3 additions & 3 deletions src/v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"type": "object",
"properties": {
"path": {
"$id": "#/artifact/Path",
"$id": "#/artifact/path",
"type": "string",
"title": "Path"
},
Expand Down Expand Up @@ -526,7 +526,7 @@
"title": "Secure Execution Qemu",
"$ref": "#/definitions/artifact"
},
"ignition-gpg-key": {
"ignition-gpg-key": {
"$id": "#/properties/images/properties/ignition-gpg-key",
"type": "object",
"title": "Secure Execution Ignition PubKey",
Expand Down Expand Up @@ -712,7 +712,7 @@
],
"properties": {
"path": {
"$id": "#/artifact/Path",
"$id": "#/artifact/path",
"type": "string",
"title": "Path"
},
Expand Down

0 comments on commit 8cc63c6

Please sign in to comment.