Skip to content

Commit

Permalink
Added additional fields
Browse files Browse the repository at this point in the history
  • Loading branch information
rmathis committed Jun 21, 2021
1 parent 5d6d183 commit c3eb4f9
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
4 changes: 2 additions & 2 deletions backend/src/main/resources/i18n/messages.properties
Original file line number Diff line number Diff line change
Expand Up @@ -155,9 +155,9 @@ 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-attribute-persist-friendly-name=Persist Friendly Name
label.entity-attribute-persist-value=Persist Value
label.entity-attribute-persist-type=Persist Type
tooltip.entity-attribute-persist-friendly-name=Persist Friendly Name
tooltip.entity-attribute-persist-value=Persist Value
tooltip.entity-attribute-persist-type=Persist Type

label.entity-attributes=Entity Attributes
Expand Down
8 changes: 5 additions & 3 deletions ui/public/assets/schema/attribute/attribute.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
"attributeType",
"attributeFriendlyName",
"attributeName",
"persistValue",
"persistType",
"displayName"
],
"properties": {
Expand Down Expand Up @@ -52,10 +54,10 @@
"minLength": 1,
"maxLength": 255
},
"persistFriendlyName": {
"persistValue": {
"type": "string",
"title": "label.entity-attribute-persist-friendly-name",
"description": "tooltip.entity-attribute-persist-friendly-name",
"title": "label.entity-attribute-persist-value",
"description": "tooltip.entity-attribute-persist-value",
"minLength": 1,
"maxLength": 255
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export const CustomAttributeDefinition = {
'attributeName',
'attributeFriendlyName',
'displayName',
'persistFriendlyName',
'persistValue',
'persistType',
'helpText'
]
Expand Down
1 change: 1 addition & 0 deletions ui/src/app/metadata/editor/MetadataAttributeEditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ export function MetadataAttributeEditor({ children }) {
</Form>
</div>
</div>
<pre>{JSON.stringify(errors, null, 4)}</pre>
</div>
);
}

0 comments on commit c3eb4f9

Please sign in to comment.