Validate a configuration/row JSON file by a JSON schema file.
kbc local validate schema schema.json config.json [flags]
Validate the content of the specified JSON file against the specified JSON schema file.
The JSON schema should contain a schema for the parameters
key,
just like the configuration/row schema in a component definition.
The main purpose of this command is to test a new JSON schema before it is changed in a component definition. It can be used both in a project local directory and also separately.
A successful run, the JSON file is valid:
➜ kbc local validate schema schema.json config.json
Validation done.
A validation error:
➜ kbc local validate schema schema.json config.json
Error: missing properties: "subscriptionId"
© 2024 Keboola