Skip to content

Commit

Permalink
SHIBUI-799 Initial schema commit
Browse files Browse the repository at this point in the history
  • Loading branch information
rmathis committed Nov 28, 2018
1 parent 3cbc685 commit 3b8ccc1
Showing 1 changed file with 102 additions and 0 deletions.
102 changes: 102 additions & 0 deletions ui/src/assets/schema/filter/nameid.schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
{
"definitions": {},
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"title": "The Root Schema",
"required": [
"name",
"resourceId",
"filterEnabled",
"removeExistingFormats",
"formats",
"@type",
"version"
],
"properties": {
"name": {
"$id": "#/properties/name",
"type": "string",
"title": "label.name",
"pattern": "^(.*)$"
},
"filterEnabled": {
"$id": "#/properties/filterEnabled",
"type": "boolean",
"title": "The Filterenabled Schema"
},
"removeExistingFormats": {
"$id": "#/properties/removeExistingFormats",
"type": "boolean",
"title": "The Removeexistingformats Schema",
"default": false
},
"formats": {
"$id": "#/properties/formats",
"type": "array",
"title": "The Formats Schema",
"items": {
"$id": "#/properties/formats/items",
"type": "object",
"title": "The Items Schema",
"required": [
"format",
"value",
"type"
],
"properties": {
"format": {
"$id": "#/properties/formats/items/properties/format",
"type": "string",
"title": "The Format Schema",
"pattern": "^(.*)$"
},
"value": {
"$id": "#/properties/formats/items/properties/value",
"type": "string",
"title": "The Value Schema"
},
"type": {
"$id": "#/properties/formats/items/properties/type",
"type": "string",
"title": "The Type Schema",
"widget": "select",
"oneOf": [
{
"enum": [
"ENTITY"
],
"description": "value.entity"
},
{
"enum": [
"CONDITION_REF"
],
"description": "value.condition-ref"
},
{
"enum": [
"CONDITION_SCRIPT"
],
"description": "value.condition-script"
}
]
}
}
}
},
"@type": {
"$id": "#/properties/@type",
"type": "string",
"title": "The @type Schema",
"pattern": "^(.*)$"
},
"version": {
"type": "integer",
"widget": "hidden"
},
"resourceId": {
"type": "string",
"widget": "hidden"
}
}
}

0 comments on commit 3b8ccc1

Please sign in to comment.