X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=component-json-schemas%2FREADME.md;fp=component-json-schemas%2FREADME.md;h=f1dfcd579f0829343a7694f74dd98ed5f6b28921;hb=b86b42713a1fbfb1929bd5019aed7e5275b78d64;hp=0000000000000000000000000000000000000000;hpb=d4c6fea2ab91b2e72cc188f10178f1f3cd8b99d5;p=dcaegen2%2Fplatform%2Fcli.git diff --git a/component-json-schemas/README.md b/component-json-schemas/README.md new file mode 100644 index 0000000..f1dfcd5 --- /dev/null +++ b/component-json-schemas/README.md @@ -0,0 +1,36 @@ +# Component JSON Schemas + +This repository contains the custom JSON schemas to support the onboarding of components: + +* Component specification schema +* Auxilary component specification schema for Docker +* Auxilary component specification schema for CDAP +* Data formats schema + +## Testing changes + +Use the Python `jsonschema` command-line tool to do validation checks: + +Example: + +``` +$ jsonschema -i tests/component-spec-docker.json component-spec-schema.json +``` + +## Uploading to Nexus + +For the component specification schema: + +``` +curl -v --user : https:///schemas/component-specification//component-spec-schema.json --upload-file component-spec-schema.json +``` + +For the data format schema: + +``` +curl -v --user : https:///schemas/data-format//data-format-schema.json --upload-file data-format-schema.json +``` + +### `dcae-cli` + +The `dcae-cli` looks for these schemas under a tag that is of the format `dcae-cli-v` where the major version is an integer that is the major part of semver. For schema changes that are breaking, you must bump the ``. Otherwise, you can simply replace the existing schema by uploading using the same tag.