forked from kit-data-manager/metastore2
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
user can now reference a json ui schema within the mapping file. Add …
…the key 'ui' with a path to the ui file as a value within the array of a xsd. The structure of the mapping file with the reference of the ui is not final and it only supports the read operation for now
- Loading branch information
Showing
4 changed files
with
141 additions
and
117 deletions.
There are no files selected for viewing
204 changes: 102 additions & 102 deletions
204
src/main/resources/static/jsonSchemas/mappings/kitschema.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,109 +1,109 @@ | ||
{ | ||
"$id": "kitxsd.json", | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"title": "This JSON Schema file was generated from kitxsd.xsd on Wed Apr 20 2022 09:28:12 GMT+0200 (Mitteleuropäische Sommerzeit). For more information please see http://www.xsd2jsonschema.org", | ||
"description": "Schema tag attributes: targetNamespace='http://www.example.org/kit' xmlns:kit='http://www.example.org/kit' xmlns:xs='http://www.w3.org/2001/XMLSchema' elementFormDefault='qualified'", | ||
"properties": { | ||
"stringtype": { | ||
"$ref": "#/definitions/stringtype" | ||
}, | ||
"employeeidtype": { | ||
"$ref": "#/definitions/employeeidtype" | ||
}, | ||
"shorttype": { | ||
"$ref": "#/definitions/shorttype" | ||
}, | ||
"departmenttype": { | ||
"$ref": "#/definitions/departmenttype" | ||
}, | ||
"employeetype": { | ||
"$ref": "#/definitions/employeetype" | ||
}, | ||
"employee": { | ||
"$ref": "#/definitions/employeetype" | ||
} | ||
"$id": "kitxsd.json", | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"title": "This JSON Schema file was generated from kitxsd.xsd on Wed Apr 20 2022 09:28:12 GMT+0200 (Mitteleuropäische Sommerzeit). For more information please see http://www.xsd2jsonschema.org", | ||
"description": "Schema tag attributes: targetNamespace='http://www.example.org/kit' xmlns:kit='http://www.example.org/kit' xmlns:xs='http://www.w3.org/2001/XMLSchema' elementFormDefault='qualified'", | ||
"properties": { | ||
"stringtype": { | ||
"$ref": "#/definitions/stringtype" | ||
}, | ||
"type": "object", | ||
"anyOf": [ | ||
{ | ||
"required": [ | ||
"stringtype" | ||
] | ||
}, | ||
{ | ||
"required": [ | ||
"employeeidtype" | ||
] | ||
}, | ||
{ | ||
"required": [ | ||
"shorttype" | ||
] | ||
}, | ||
{ | ||
"required": [ | ||
"departmenttype" | ||
] | ||
}, | ||
{ | ||
"required": [ | ||
"employeetype" | ||
] | ||
}, | ||
{ | ||
"required": [ | ||
"employee" | ||
] | ||
} | ||
], | ||
"definitions": { | ||
"stringtype": { | ||
"type": "string" | ||
}, | ||
"employeeidtype": { | ||
"pattern": "[a-z]{2}[0-9]{4}", | ||
"type": "string" | ||
}, | ||
"shorttype": { | ||
"pattern": "[A-Z\\-]{3,8}", | ||
"type": "string" | ||
}, | ||
"departmenttype": { | ||
"required": [ | ||
"departmentname", | ||
"shortname" | ||
], | ||
"properties": { | ||
"departmentname": { | ||
"$ref": "#/definitions/stringtype" | ||
}, | ||
"shortname": { | ||
"$ref": "#/definitions/shorttype" | ||
} | ||
"employeeidtype": { | ||
"$ref": "#/definitions/employeeidtype" | ||
}, | ||
"shorttype": { | ||
"$ref": "#/definitions/shorttype" | ||
}, | ||
"departmenttype": { | ||
"$ref": "#/definitions/departmenttype" | ||
}, | ||
"employeetype": { | ||
"$ref": "#/definitions/employeetype" | ||
}, | ||
"employee": { | ||
"$ref": "#/definitions/employeetype" | ||
} | ||
}, | ||
"type": "object", | ||
"anyOf": [ | ||
{ | ||
"required": [ | ||
"stringtype" | ||
] | ||
}, | ||
{ | ||
"required": [ | ||
"employeeidtype" | ||
] | ||
}, | ||
{ | ||
"required": [ | ||
"shorttype" | ||
] | ||
}, | ||
{ | ||
"required": [ | ||
"departmenttype" | ||
] | ||
}, | ||
{ | ||
"required": [ | ||
"employeetype" | ||
] | ||
}, | ||
{ | ||
"required": [ | ||
"employee" | ||
] | ||
} | ||
], | ||
"definitions": { | ||
"stringtype": { | ||
"type": "string" | ||
}, | ||
"employeeidtype": { | ||
"pattern": "[a-z]{2}[0-9]{4}", | ||
"type": "string" | ||
}, | ||
"shorttype": { | ||
"pattern": "[A-Z\\-]{3,8}", | ||
"type": "string" | ||
}, | ||
"departmenttype": { | ||
"required": [ | ||
"departmentname", | ||
"shortname" | ||
], | ||
"properties": { | ||
"departmentname": { | ||
"$ref": "#/definitions/stringtype" | ||
}, | ||
"type": "object" | ||
"shortname": { | ||
"$ref": "#/definitions/shorttype" | ||
} | ||
}, | ||
"employeetype": { | ||
"required": [ | ||
"name", | ||
"department", | ||
"@employeeid" | ||
], | ||
"properties": { | ||
"name": { | ||
"$ref": "#/definitions/stringtype" | ||
}, | ||
"department": { | ||
"$ref": "#/definitions/departmenttype" | ||
}, | ||
"@employeeid": { | ||
"$ref": "#/definitions/employeeidtype" | ||
} | ||
"type": "object" | ||
}, | ||
"employeetype": { | ||
"required": [ | ||
"name", | ||
"department", | ||
"@employeeid" | ||
], | ||
"properties": { | ||
"name": { | ||
"$ref": "#/definitions/stringtype" | ||
}, | ||
"department": { | ||
"$ref": "#/definitions/departmenttype" | ||
}, | ||
"type": "object" | ||
"@employeeid": { | ||
"$ref": "#/definitions/employeeidtype" | ||
} | ||
}, | ||
"employee": { | ||
"$ref": "#/definitions/employeetype" | ||
} | ||
"type": "object" | ||
}, | ||
"employee": { | ||
"$ref": "#/definitions/employeetype" | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,15 @@ | ||
{ | ||
"firstName": { | ||
"ui:autofocus": true, | ||
"ui:emptyValue": "", | ||
"ui:autocomplete": "family-name" | ||
}, | ||
"lastName": { | ||
"ui:emptyValue": "", | ||
"ui:autocomplete": "given-name" | ||
"example:metadata": { | ||
"_attributes":{ | ||
"xmlns:example": { | ||
"ui:title": "XMLNS", | ||
"ui:description": "Namespace des XML" | ||
} | ||
}, | ||
"telephone": { | ||
"ui:options": { | ||
"inputType": "tel" | ||
"example:title": { | ||
"_text": { | ||
"ui:title": "Titel" | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters