Validate a configuration row JSON file.
kbc local validate row component.id row.json [flags]
Each component definition optionally contains a schema of the configuration row 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.
A successful run, the configuration row is valid:
➜ kbc local validate row keboola.ex-azure-cost-management row.json
Validation done.
A validation error:
➜ kbc local validate row keboola.ex-azure-cost-management row.json
Error:
- "export": missing properties: "aggregation"
- "export.groupingDimensions": expected array, but got string
If there is no schema in the component definition, a warning is printed:
➜ kbc local validate row ex-generic-v2 row.json
Component "ex-generic-v2" has no configuration row JSON schema.
Validation done.
© 2024 Keboola