Skip to content

Commit

Permalink
Implemented editor fields for providers
Browse files Browse the repository at this point in the history
  • Loading branch information
rmathis committed May 7, 2021
1 parent 289d2e5 commit b48bb4e
Show file tree
Hide file tree
Showing 28 changed files with 824 additions and 963 deletions.
433 changes: 129 additions & 304 deletions ui/public/assets/schema/provider/dynamic-http.schema.json

Large diffs are not rendered by default.

87 changes: 9 additions & 78 deletions ui/public/assets/schema/provider/file-system.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
],
"properties": {
"name": {
"title": "label.service-provider-name-dashboard-display-only",
"description": "tooltip.metadata-provider-name",
"title": "label.metadata-provider-name-dashboard-display-only",
"description": "tooltip.metadata-provider-name-dashboard-display-only",
"type": "string",
"widget": {
"id": "string",
Expand All @@ -19,34 +19,19 @@
"@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"
}
]
"const": "FilesystemMetadataResolver"
},
"xmlId": {
"title": "label.xml-id",
"description": "tooltip.xml-id",
"type": "string",
"default": "",
"minLength": 1
},
"metadataFile": {
"title": "label.metadata-file",
"description": "tooltip.metadata-file",
"type": "string",
"default": "",
"minLength": 1
},
"enabled": {
Expand All @@ -58,25 +43,7 @@
"doInitialization": {
"title": "label.do-resolver-initialization",
"description": "tooltip.do-resolver-initialization",
"type": "boolean",
"widget": {
"id": "boolean-radio"
},
"oneOf": [
{
"enum": [
true
],
"description": "value.true"
},
{
"enum": [
false
],
"description": "value.false"
}
],
"default": false
"type": "boolean"
},
"reloadableMetadataResolverAttributes": {
"type": "object",
Expand All @@ -85,59 +52,23 @@
"title": "label.min-refresh-delay",
"description": "tooltip.min-refresh-delay",
"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)?)?$"
},
"maxRefreshDelay": {
"title": "label.max-refresh-delay",
"description": "tooltip.max-refresh-delay",
"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)?)?$"
},
"refreshDelayFactor": {
"title": "label.refresh-delay-factor",
"description": "tooltip.refresh-delay-factor",
"type": "string",
"widget": {
"id": "string",
"help": "message.real-number"
},
"placeholder": "label.real-number",
"default": "",
"pattern": "^(?:([0]*(\\.[0-9]+)?|[0]*\\.[0-9]*[1-9][0-9]*)|)$"
"type": "number",
"multipleOf": 0.01,
"minimum": 0.001,
"maximum": 0.999
}
}
}
}
}
}
Loading

0 comments on commit b48bb4e

Please sign in to comment.