Validate Config Command

Validate a configuration JSON file.

kbc local validate config component.id config.json [flags]

Each component definition optionally contains a schema of the configuration parameters key.

The command validates the content of the specified JSON file against the schema. It can be used both in a project local directory and also separately.

Options

Global Options

Example

A successful run, the configuration is valid:

➜ kbc local validate config keboola.ex-azure-cost-management config.json
Validation done.

A validation error:

➜ kbc local validate config keboola.ex-azure-cost-management config.json
Error: missing properties: "subscriptionId"

If there is no schema in the component definition, a warning is printed:

➜ kbc local validate config ex-generic-v2 config.json
Component "ex-generic-v2" has no configuration JSON schema.
Validation done.

Next Steps