Skip to content

Commit

Permalink
task: extend book sample
Browse files Browse the repository at this point in the history
  • Loading branch information
Dominick Leppich committed Sep 20, 2024
1 parent 0f625a2 commit 5c72b12
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 2 deletions.
4 changes: 4 additions & 0 deletions install/samples/books/2_types/Date.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"name": "Datum",
"validation": "\\d{2}\\.\\d{2}\\.\\d{4}"
}
4 changes: 4 additions & 0 deletions install/samples/books/2_types/ISBN13.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"name": "ISBN-13",
"validation": "\\d{3}\\-\\d{1}\\-\\d{2}\\-\\d{6}\\-\\d{1}"
}
20 changes: 18 additions & 2 deletions install/samples/books/5_schemas/Books_Schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@
"typeId": {{types_Number}},
"required": true,
"unique": true,
"mainEntry": true,
"mainEntry": false,
"titleField": false
},
{
"name": "Name",
"typeId": {{types_Anything}},
"required": true,
"unique": true,
"mainEntry": false,
"mainEntry": true,
"titleField": true,
"translationDefinitions": [
{
Expand All @@ -33,6 +33,22 @@
}
]
},
{
"name": "ISBN",
"typeId": {{types_ISBN13}},
"required": true,
"unique": true,
"mainEntry": false,
"titleField": false
},
{
"name": "Veröffentlichung",
"typeId": {{types_Date}},
"required": false,
"unique": false,
"mainEntry": false,
"titleField": false
},
{
"name": "Autoren",
"referenceVocabularyId": {{vocabularies_Authors}},
Expand Down

0 comments on commit 5c72b12

Please sign in to comment.