Skip to content
Keboola Docs

Validate Schema Command

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.

Global Options

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"
Ask Kai

Hi, I'm Kai — Keboola's AI assistant for the docs. Ask me anything and I'll answer from the documentation and cite the pages I use.

Kai is an AI and can make mistakes. Check the sources it links.