-
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
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
4c35af7
commit 17ddf05
Showing
4 changed files
with
34 additions
and
8 deletions.
There are no files selected for viewing
File renamed without changes.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"$id": "https://github.com/canonical/cloud-init/tree/main/cloudinit/config/schema/versions.schema.cloud-config.json", | ||
"$schema": "http://json-schema.org/draft-04/schema#", | ||
"oneOf": [ | ||
{ | ||
"allOf": [ | ||
{ | ||
"properties": { | ||
"version": { | ||
"enum": ["22.2", "v1"] | ||
} | ||
}, | ||
"$ref": "https://raw.githubusercontent.com/canonical/cloud-init/main/cloudinit/config/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