-
Notifications
You must be signed in to change notification settings - Fork 909
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
schema: version schema-cloud-config-v1.json (#1424)
Provide top-level version.schema.cloud-config.json which will be consumed by https://github.com/SchemaStore/schemastore/ and provided for json validator tooling. Rename cloud-init-schema.json to schema-cloud-config-v1.json to allow space for providing static scoped schema definitions for vendor-data, meta-data and network-config in the future.
- Loading branch information
1 parent
2eb2cea
commit 53e1ccf
Showing
6 changed files
with
109 additions
and
27 deletions.
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
Empty file.
File renamed without changes.
18 changes: 18 additions & 0 deletions
18
cloudinit/config/schemas/versions.schema.cloud-config.json
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,18 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-04/schema#", | ||
"$id": "https://raw.githubusercontent.com/canonical/cloud-init/main/cloudinit/config/schemas/versions.schema.cloud-config.json", | ||
"oneOf": [ | ||
{ | ||
"allOf": [ | ||
{ | ||
"properties": { | ||
"version": { | ||
"enum": ["22.2", "v1"] | ||
} | ||
} | ||
}, | ||
{"$ref": "./schema-cloud-config-v1.json"} | ||
] | ||
} | ||
] | ||
} |
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