Skip to content

Commit

Permalink
Merged in bugfix/SHIBUI-2534 (pull request #640)
Browse files Browse the repository at this point in the history
Fixed max length validation
  • Loading branch information
rmathis committed Feb 16, 2023
2 parents 0cf0e3e + 37e0f69 commit 69d3ebc
Showing 1 changed file with 16 additions and 8 deletions.
24 changes: 16 additions & 8 deletions ui/public/assets/schema/attribute/attribute.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,8 @@
"defaultValue": {
"title": "label.entity-attribute-default",
"description": "tooltip.entity-attribute-default",
"type": "string"
"type": "string",
"maxLength": 255
}
}
},
Expand All @@ -95,7 +96,8 @@
"defaultValue": {
"title": "label.entity-attribute-default",
"description": "tooltip.entity-attribute-default",
"type": "string"
"type": "string",
"maxLength": 255
}
}
},
Expand Down Expand Up @@ -127,7 +129,8 @@
"type": "string",
"title": "label.entity-attribute-persist-type",
"description": "tooltip.entity-attribute-persist-type",
"default": "string"
"default": "string",
"maxLength": 255
},
"invert": {
"type": "boolean",
Expand All @@ -147,7 +150,8 @@
"title": "label.entity-attribute-default",
"description": "tooltip.entity-attribute-default",
"type": "string",
"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)?)?$"
"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)?)?$",
"maxLength": 255
}
}
},
Expand All @@ -161,7 +165,8 @@
"defaultValue": {
"title": "label.entity-attribute-default",
"description": "tooltip.entity-attribute-default",
"type": "string"
"type": "string",
"maxLength": 255
}
}
},
Expand All @@ -175,7 +180,8 @@
"defaultValue": {
"title": "label.entity-attribute-default",
"description": "tooltip.entity-attribute-default",
"type": "string"
"type": "string",
"maxLength": 255
}
}
},
Expand All @@ -190,7 +196,8 @@
"title": "label.entity-attribute-default",
"description": "tooltip.entity-attribute-default",
"type": "string",
"pattern": "^\\d+$"
"pattern": "^\\d+$",
"maxLength": 255
}
}
},
Expand All @@ -211,7 +218,8 @@
"properties": {
"value": {
"type": "string",
"placeholder": "Option"
"placeholder": "Option",
"maxLength": 255
},
"default": {
"type": "boolean",
Expand Down

0 comments on commit 69d3ebc

Please sign in to comment.