Skip to content

Commit

Permalink
SHIBUI-703 copied file to backend directory
Browse files Browse the repository at this point in the history
  • Loading branch information
rmathis committed Nov 7, 2018
1 parent 794c17f commit 602be1a
Showing 1 changed file with 188 additions and 0 deletions.
188 changes: 188 additions & 0 deletions backend/src/main/resources/local-dynamic-provider.schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,188 @@
{
"type": "object",
"required": [
"name",
"@type",
"xmlId",
"sourceDirectory"
],
"properties": {
"name": {
"title": "label.metadata-provider-name",
"description": "tooltip.metadata-provider-name",
"type": "string",
"widget": {
"id": "string",
"help": "message.must-be-unique"
}
},
"@type": {
"title": "label.metadata-provider-type",
"description": "tooltip.metadata-provider-type",
"placeholder": "label.select-metadata-type",
"type": "string",
"readOnly": true,
"widget": {
"id": "select",
"disabled": true
},
"oneOf": [
{
"enum": [
"FileSystemMetadataResolver"
],
"description": "value.file-system-metadata-provider"
}
]
},
"xmlId": {
"title": "label.xml-id",
"description": "tooltip.xml-id",
"type": "string",
"default": "",
"minLength": 1
},
"sourceDirectory": {
"title": "label.source-directory",
"description": "tooltip.source-directory",
"type": "string",
"default": "",
"minLength": 1
},
"enabled": {
"title": "label.enable-provider-upon-saving",
"description": "tooltip.enable-provider-upon-saving",
"type": "boolean",
"default": false
},
"reloadableMetadataResolverAttributes": {
"type": "object",
"properties": {
"refreshDelayFactor": {
"title": "label.refresh-delay-factor",
"description": "tooltip.refresh-delay-factor",
"type": "number",
"widget": {
"id": "number",
"step": 0.01
},
"placeholder": "label.real-number",
"minimum": 0,
"maximum": 1,
"default": null
},
"minCacheDuration": {
"title": "label.min-cache-duration",
"description": "tooltip.min-cache-duration",
"type": "string",
"placeholder": "label.duration",
"widget": {
"id": "datalist",
"data": [
"PT0S",
"PT30S",
"PT1M",
"PT10M",
"PT30M",
"PT1H",
"PT4H",
"PT12H",
"PT24H"
]
},
"default": null,
"pattern": "^(R\\d*\\/)?P(?:\\d+(?:\\.\\d+)?Y)?(?:\\d+(?:\\.\\d+)?M)?(?:\\d+(?:\\.\\d+)?W)?(?:\\d+(?:\\.\\d+)?D)?(?:T(?:\\d+(?:\\.\\d+)?H)?(?:\\d+(?:\\.\\d+)?M)?(?:\\d+(?:\\.\\d+)?S)?)?$"
},
"maxCacheDuration": {
"title": "label.max-cache-duration",
"description": "tooltip.max-cache-duration",
"type": "string",
"placeholder": "label.duration",
"widget": {
"id": "datalist",
"data": [
"PT0S",
"PT30S",
"PT1M",
"PT10M",
"PT30M",
"PT1H",
"PT4H",
"PT12H",
"PT24H"
]
},
"default": null,
"pattern": "^(R\\d*\\/)?P(?:\\d+(?:\\.\\d+)?Y)?(?:\\d+(?:\\.\\d+)?M)?(?:\\d+(?:\\.\\d+)?W)?(?:\\d+(?:\\.\\d+)?D)?(?:T(?:\\d+(?:\\.\\d+)?H)?(?:\\d+(?:\\.\\d+)?M)?(?:\\d+(?:\\.\\d+)?S)?)?$"
},
"maxIdleEntityData": {
"title": "label.max-idle-entity-data",
"description": "tooltip.max-idle-entity-data",
"type": "string",
"placeholder": "label.duration",
"widget": {
"id": "datalist",
"data": [
"PT0S",
"PT30S",
"PT1M",
"PT10M",
"PT30M",
"PT1H",
"PT4H",
"PT12H",
"PT24H"
]
},
"default": null,
"pattern": "^(R\\d*\\/)?P(?:\\d+(?:\\.\\d+)?Y)?(?:\\d+(?:\\.\\d+)?M)?(?:\\d+(?:\\.\\d+)?W)?(?:\\d+(?:\\.\\d+)?D)?(?:T(?:\\d+(?:\\.\\d+)?H)?(?:\\d+(?:\\.\\d+)?M)?(?:\\d+(?:\\.\\d+)?S)?)?$"
},
"removeIdleEntityData": {
"title": "label.remove-idle-entity-data",
"description": "tooltip.remove-idle-entity-data",
"type": "boolean",
"widget": {
"id": "boolean-radio"
},
"oneOf": [
{
"enum": [
true
],
"description": "value.true"
},
{
"enum": [
false
],
"description": "value.false"
}
],
"default": true
},
"cleanupTaskInterval": {
"title": "label.cleanup-task-interval",
"description": "tooltip.cleanup-task-interval",
"type": "string",
"placeholder": "label.duration",
"widget": {
"id": "datalist",
"data": [
"PT0S",
"PT30S",
"PT1M",
"PT10M",
"PT30M",
"PT1H",
"PT4H",
"PT12H",
"PT24H"
]
},
"default": null,
"pattern": "^(R\\d*\\/)?P(?:\\d+(?:\\.\\d+)?Y)?(?:\\d+(?:\\.\\d+)?M)?(?:\\d+(?:\\.\\d+)?W)?(?:\\d+(?:\\.\\d+)?D)?(?:T(?:\\d+(?:\\.\\d+)?H)?(?:\\d+(?:\\.\\d+)?M)?(?:\\d+(?:\\.\\d+)?S)?)?$"
}
}
}
}
}

0 comments on commit 602be1a

Please sign in to comment.