From 2f755df4bf227145aac521b52022c60fbaa96009 Mon Sep 17 00:00:00 2001 From: Ryan Mathis Date: Wed, 5 Dec 2018 11:49:23 -0700 Subject: [PATCH] SHIBUI-799 Added schema to backend --- .../main/resources/nameid-filter.schema.json | 107 ++++++++++++++++++ 1 file changed, 107 insertions(+) create mode 100644 backend/src/main/resources/nameid-filter.schema.json diff --git a/backend/src/main/resources/nameid-filter.schema.json b/backend/src/main/resources/nameid-filter.schema.json new file mode 100644 index 000000000..b52ee8ceb --- /dev/null +++ b/backend/src/main/resources/nameid-filter.schema.json @@ -0,0 +1,107 @@ +{ + "type": "object", + "fieldsets": [ + { + "type": "group", + "fields": [ + "name", + "filterEnabled", + "@type", + "resourceId", + "version", + "removeExistingFormats", + "formats" + ] + } + ], + "properties": { + "name": { + "title": "label.filter-name", + "description": "tooltip.filter-name", + "type": "string", + "widget": { + "id": "string", + "help": "message.must-be-unique" + } + }, + "filterEnabled": { + "title": "label.enable-filter", + "description": "tooltip.enable-filter", + "type": "boolean", + "default": false + }, + "@type": { + "type": "string", + "widget": { + "id": "hidden" + }, + "default": "NameIDFormat" + }, + "version": { + "type": "integer", + "widget": { + "id": "hidden" + } + }, + "resourceId": { + "type": "string", + "widget": { + "id": "hidden" + } + }, + "removeExistingFormats": { + "type": "boolean", + "title": "label.remove-existing-formats", + "description": "tooltip.remove-existing-formats", + "default": false + }, + "formats": { + "type": "array", + "title": "label.nameid-formats", + "description": "tooltip.nameid-formats", + "items": { + "type": "object", + "properties": { + "format": { + "type": "string", + "title": "label.nameid-formats-format", + "description": "tooltip.nameid-formats-format" + }, + "value": { + "type": "string", + "title": "label.nameid-formats-value", + "description": "tooltip.nameid-formats-value" + }, + "type": { + "type": "string", + "title": "label.nameid-formats-type", + "description": "tooltip.nameid-formats-type", + "widget": { + "id": "select" + }, + "oneOf": [ + { + "enum": [ + "ENTITY" + ], + "description": "value.entity" + }, + { + "enum": [ + "CONDITION_REF" + ], + "description": "value.condition-ref" + }, + { + "enum": [ + "CONDITION_SCRIPT" + ], + "description": "value.condition-script" + } + ] + } + } + } + } + } +} \ No newline at end of file