Skip to content

Commit

Permalink
SHIBUI-1549 Fixed issue with min/max length not being applied
Browse files Browse the repository at this point in the history
  • Loading branch information
rmathis committed Nov 5, 2019
1 parent a3d2df8 commit 81fe87e
Showing 1 changed file with 125 additions and 119 deletions.
244 changes: 125 additions & 119 deletions backend/src/main/resources/metadata-sources-ui-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,50 +26,7 @@
"default": false
},
"organization": {
"type": "object",
"properties": {
"name": {
"title": "label.organization-name",
"description": "tooltip.organization-name",
"type": "string",
"minLength": 1,
"maxLength": 255
},
"displayName": {
"title": "label.organization-display-name",
"description": "tooltip.organization-display-name",
"type": "string",
"minLength": 1,
"maxLength": 255
},
"url": {
"title": "label.organization-url",
"description": "tooltip.organization-url",
"type": "string",
"minLength": 1,
"maxLength": 255
}
},
"dependencies": {
"name": {
"required": [
"displayName",
"url"
]
},
"displayName": {
"required": [
"name",
"url"
]
},
"url": {
"required": [
"name",
"displayName"
]
}
}
"$ref": "#/definitions/Organization"
},
"contacts": {
"title": "label.contact-information",
Expand All @@ -80,81 +37,7 @@
}
},
"mdui": {
"type": "object",
"widget": {
"id": "fieldset"
},
"fieldsets": [
{
"type": "group",
"fields": [
"displayName",
"informationUrl",
"description"
]
},
{
"type": "group",
"fields": [
"privacyStatementUrl",
"logoUrl",
"logoWidth",
"logoHeight"
]
}
],
"properties": {
"displayName": {
"title": "label.display-name",
"description": "tooltip.mdui-display-name",
"type": "string",
"minLength": 1,
"maxLength": 255
},
"informationUrl": {
"title": "label.information-url",
"description": "tooltip.mdui-information-url",
"type": "string",
"minLength": 1,
"maxLength": 255
},
"privacyStatementUrl": {
"title": "label.privacy-statement-url",
"description": "tooltip.mdui-privacy-statement-url",
"type": "string",
"minLength": 1,
"maxLength": 255
},
"description": {
"title": "label.description",
"description": "tooltip.mdui-description",
"type": "string",
"widget": {
"id": "textarea"
},
"minLength": 1,
"maxLength": 255
},
"logoUrl": {
"title": "label.logo-url",
"description": "tooltip.mdui-logo-url",
"type": "string",
"minLength": 1,
"maxLength": 255
},
"logoHeight": {
"title": "label.logo-height",
"description": "tooltip.mdui-logo-height",
"min": 0,
"type": "integer"
},
"logoWidth": {
"title": "label.logo-width",
"description": "tooltip.mdui-logo-width",
"min": 0,
"type": "integer"
}
}
"$ref": "#/definitions/MDUI"
},
"securityInfo": {
"type": "object",
Expand Down Expand Up @@ -538,6 +421,129 @@
]
}
}
},
"MDUI": {
"type": "object",
"widget": {
"id": "fieldset"
},
"fieldsets": [
{
"type": "group",
"fields": [
"displayName",
"informationUrl",
"description"
]
},
{
"type": "group",
"fields": [
"privacyStatementUrl",
"logoUrl",
"logoWidth",
"logoHeight"
]
}
],
"properties": {
"displayName": {
"title": "label.display-name",
"description": "tooltip.mdui-display-name",
"type": "string",
"minLength": 1,
"maxLength": 255
},
"informationUrl": {
"title": "label.information-url",
"description": "tooltip.mdui-information-url",
"type": "string",
"minLength": 1,
"maxLength": 255
},
"privacyStatementUrl": {
"title": "label.privacy-statement-url",
"description": "tooltip.mdui-privacy-statement-url",
"type": "string",
"minLength": 1,
"maxLength": 255
},
"description": {
"title": "label.description",
"description": "tooltip.mdui-description",
"type": "string",
"widget": {
"id": "textarea"
},
"minLength": 1,
"maxLength": 255
},
"logoUrl": {
"title": "label.logo-url",
"description": "tooltip.mdui-logo-url",
"type": "string",
"minLength": 1,
"maxLength": 255
},
"logoHeight": {
"title": "label.logo-height",
"description": "tooltip.mdui-logo-height",
"min": 0,
"type": "integer"
},
"logoWidth": {
"title": "label.logo-width",
"description": "tooltip.mdui-logo-width",
"min": 0,
"type": "integer"
}
}
},
"Organization": {
"type": "object",
"properties": {
"name": {
"title": "label.organization-name",
"description": "tooltip.organization-name",
"type": "string",
"minLength": 1,
"maxLength": 255
},
"displayName": {
"title": "label.organization-display-name",
"description": "tooltip.organization-display-name",
"type": "string",
"minLength": 1,
"maxLength": 255
},
"url": {
"title": "label.organization-url",
"description": "tooltip.organization-url",
"type": "string",
"minLength": 1,
"maxLength": 255
}
},
"dependencies": {
"name": {
"required": [
"displayName",
"url"
]
},
"displayName": {
"required": [
"name",
"url"
]
},
"url": {
"required": [
"name",
"displayName"
]
}
}
}
}
}

0 comments on commit 81fe87e

Please sign in to comment.