From f95f9aa745832a2f4f28a4890912a61c582eb6d1 Mon Sep 17 00:00:00 2001 From: Matthew Gramigna Date: Wed, 9 Jun 2021 16:16:08 -0400 Subject: [PATCH] Add initial schema for one config property --- src/helpers/schemas/config.schema.json | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 src/helpers/schemas/config.schema.json 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"] +}