Skip to content

Commit

Permalink
Added custom entity attribute fields
Browse files Browse the repository at this point in the history
  • Loading branch information
rmathis committed Jun 14, 2021
1 parent fc668d2 commit cfcb8ab
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 1 deletion.
7 changes: 7 additions & 0 deletions backend/src/main/resources/i18n/messages.properties
Original file line number Diff line number Diff line change
Expand Up @@ -140,11 +140,18 @@ label.entity-attribute-default=Default Value
tooltip.entity-attribute-default=Default Value
label.entity-attribute-list-options=List options
tooltip.entity-attribute-list-options=List options
label.entity-attribute-friendly-name=Friendly name
tooltip.entity-attribute-friendly-name=Friendly name
label.entity-attribute-attr-name=Attribute name
tooltip.entity-attribute-attr-name=This is normally a uri or urn
label.entity-attribute-display-name=Display name
tooltip.entity-attribute-display-name=Display name

label.entity-attributes=Entity Attributes
label.custom-entity-attributes=Custom Entity Attributes
label.help-text=Help text
label.default-value=Default Value
label.new-attribute=New Custom Entity Attribute

label.metadata-source=Metadata Source
label.metadata-sources=Metadata Sources
Expand Down
26 changes: 25 additions & 1 deletion ui/public/assets/schema/attribute/attribute.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@
"type": "object",
"required": [
"name",
"attributeType"
"attributeType",
"attributeFriendlyName",
"attributeName",
"displayName"
],
"properties": {
"name": {
Expand All @@ -27,6 +30,27 @@
"value.list"
]
},
"attributeFriendlyName": {
"type": "string",
"title": "label.entity-attribute-friendly-name",
"description": "tooltip.entity-attribute-friendly-name",
"minLength": 1,
"maxLength": 255
},
"attributeName": {
"type": "string",
"title": "label.entity-attribute-attr-name",
"description": "tooltip.entity-attribute-attr-name",
"minLength": 1,
"maxLength": 255
},
"displayName": {
"type": "string",
"title": "label.entity-attribute-display-name",
"description": "tooltip.entity-attribute-display-name",
"minLength": 1,
"maxLength": 255
},
"helpText": {
"title": "label.entity-attribute-help",
"description": "tooltip.entity-attribute-help",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ export const CustomAttributeDefinition = {
fields: [
'name',
'attributeType',
'attributeName',
'attributeFriendlyName',
'displayName',
'helpText'
]
},
Expand Down

0 comments on commit cfcb8ab

Please sign in to comment.