Skip to content

Commit

Permalink
Fixed attribute schema
Browse files Browse the repository at this point in the history
  • Loading branch information
rmathis committed Jun 23, 2021
1 parent 2c292a6 commit bb392c2
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 3 deletions.
2 changes: 2 additions & 0 deletions backend/src/main/resources/i18n/messages.properties
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,8 @@ label.entity-attribute-persist-value=Persist Value
label.entity-attribute-persist-type=Persist Type
tooltip.entity-attribute-persist-value=Persist Value
tooltip.entity-attribute-persist-type=Persist Type
label.entity-attribute-invert=Invert
tooltip.entity-attribute-invert=Invert

label.entity-attributes=Entity Attributes
label.custom-entity-attributes=Custom Entity Attributes
Expand Down
19 changes: 17 additions & 2 deletions ui/public/assets/schema/attribute/attribute.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
"attributeType",
"attributeFriendlyName",
"attributeName",
"persistValue",
"persistType",
"displayName"
],
"properties": {
Expand Down Expand Up @@ -87,6 +85,23 @@
}
},
{
"properties": {
"attributeType": {
"enum": [
"SPRING_BEAN_ID"
]
},
"defaultValue": {
"title": "label.entity-attribute-default",
"description": "tooltip.entity-attribute-default",
"type": "string"
}
}
},
{
"required": [
"persistValue"
],
"properties": {
"attributeType": {
"enum": [
Expand Down
2 changes: 1 addition & 1 deletion ui/src/app/metadata/view/MetadataAttributeEdit.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export function MetadataAttributeEdit() {
}

async function save(metadata) {
const resp = await put(`/${id}`, definition.parser(metadata));
const resp = await put(``, definition.parser(metadata));
if (response.ok) {
gotoDetail({ refresh: true });
} else {
Expand Down

0 comments on commit bb392c2

Please sign in to comment.