Skip to content

Commit 4bbba4c

Browse files
committed
Migrate 'attributes_not_null' and 'attributes_are_valid' CHECK to 'attributes_validation' CHECK in schemas and remove redundant 'attributes_are_valid' CHECK function
1 parent c122832 commit 4bbba4c

3 files changed

Lines changed: 132 additions & 172 deletions

File tree

esdlvalidator/validation/functions/check_attributes_validity.py

Lines changed: 0 additions & 96 deletions
This file was deleted.

testdata/schemas/schema_NWN_simulator.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@
1717
}
1818
],
1919
"check": {
20-
"function": "attributes_not_null",
20+
"function": "attributes_validation",
2121
"dataset": "ates",
2222
"args": {
23-
"checks": [
23+
"null_checks": [
2424
{
2525
"attribute": "name",
2626
"count_as_null": [""]
@@ -62,6 +62,7 @@
6262
"count_as_null": [0.0]
6363
}
6464
],
65+
"valid_checks": [],
6566
"resultMsgJSON": true
6667
}
6768
}

0 commit comments

Comments
 (0)