-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Schema validation attribute values and length (#830)
* Add checking length and value of the attribute of cuds in schema validation. * Add option for strict check in schema validation. Authored-by: Matthias Büschelberger <matthias.bueschelberger@iwm.fraunhofer.de>
- Loading branch information
1 parent
c7b984c
commit 3441c73
Showing
3 changed files
with
143 additions
and
15 deletions.
There are no files selected for viewing
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
40 changes: 40 additions & 0 deletions
40
tests/test_validation_schema_city_with_attribute_value.yml
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 |
---|---|---|
@@ -0,0 +1,40 @@ | ||
version: "1.0.0" | ||
|
||
oclass: city.City | ||
|
||
model: | ||
city.City: | ||
city.name: | ||
STRING: | ||
value: Freiburg | ||
city.hasInhabitant: | ||
city.Citizen: | ||
cardinality: 1-2 | ||
city.hasPart: | ||
city.Neighborhood: | ||
cardinality: 1 | ||
|
||
city.Neighborhood: | ||
city.name: | ||
STRING: | ||
cardinality: 1 | ||
city.hasPart: | ||
city.Street: | ||
cardinality: 1+ | ||
|
||
city.Street: | ||
city.name: | ||
STRING: | ||
length: 1-10 | ||
cardinality: 1 | ||
|
||
city.Citizen: | ||
city.name: | ||
STRING: | ||
value: peter | ||
length: 1+ | ||
cardinality: 1 | ||
city.age: | ||
INT: | ||
range: 0+ | ||
cardinality: 1 |