A few commands for artifacts:
- xo artifact build path-to-artifact.json -o dereferenced-artifact-path.json
- xo artifact lint path-to-artifact.json # should deref first
- xo artifact publish path-to-artifact.json # should deref and lint before publishing
Lint rules:
- Valid JSON Schema v7
- 'data' and 'specs' must be the only two top-level properties, both must be object type
- 'data' and 'specs' must both be required
- No
anyOf at top-level of an artifact, an artifact must be a concrete type, no union types.
specs should be a map of maps. The key will be the 'spec type' (aws, rdbms, gcp, etc) and the value with be a map of the values for that type of spec.
A few commands for artifacts:
Lint rules:
anyOfat top-level of an artifact, an artifact must be a concrete type, no union types.specsshould be a map of maps. The key will be the 'spec type' (aws, rdbms, gcp, etc) and the value with be a map of the values for that type of spec.