From d7de3a3659123599280768fb02b35f5fbcd7ae80 Mon Sep 17 00:00:00 2001 From: Ferdinand Kuhl Date: Mon, 1 Aug 2016 01:00:43 +0200 Subject: [PATCH] TASK: Adding schema validation --- Resources/Private/Schema/Validation.schema.yaml | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 Resources/Private/Schema/Validation.schema.yaml diff --git a/Resources/Private/Schema/Validation.schema.yaml b/Resources/Private/Schema/Validation.schema.yaml new file mode 100644 index 0000000..088e51b --- /dev/null +++ b/Resources/Private/Schema/Validation.schema.yaml @@ -0,0 +1,11 @@ +type: dictionary +additionalProperties: + type: array + items: + type: dictionary + additionalProperties: false + # This validation sadly only hits the first level of validation, and options are not coverable with current validator + properties: + validator: {type: string, required: TRUE} + options: {type: dictionary, required: TRUE} + property: {type: string, required: FALSE}