diff --git a/src/helpers/schemas/config.schema.json b/src/helpers/schemas/config.schema.json new file mode 100644 index 00000000..4a64f925 --- /dev/null +++ b/src/helpers/schemas/config.schema.json @@ -0,0 +1,26 @@ +{ + "$id": "csv-config", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "description": "Schema for CSV config files. TODO: Fill out the rest of this schema will all config properties", + "type": "object", + "properties": { + "extractors": { + "type": "array", + "items": { + "$ref": "#/$defs/extractor" + } + } + }, + "$defs": { + "extractor": { + "type": "object", + "properties": { + "type": { + "type": "string" + } + }, + "required": ["type"] + } + }, + "required": ["extractors"] +}