WIP: erster Vorschlag für die Zuweisung von Validation functions zu Feldern #4

Closed
dkdent wants to merge 2 commits from validation-schema into master

150
validation_schema.json Normal file
View file

@ -0,0 +1,150 @@
{
"finanzdaten.bic": {
"optional": false,
"validators": [
"valid_bic"
]
},
"finanzdaten.holder": {
"optional": true,
"validators": []
},
"finanzdaten.iban": {
"optional": false,
"validators": [
"valid_iban"
]
},
"finanzdaten.issuance": {
"optional": false,
"validators": [
"iso_date"
]
},
"finanzdaten.reference": {
"optional": true,
"validators": [
"empty"
]
},
"finanzdaten.scan-sepa-mandate": {
"optional": true,
"validators": [
"valid_uri"
]
},
"mitgliederdaten.bis": {
"optional": true,
"validators": [
"iso_date"
]
},
"mitgliederdaten.mitgliedsbeitrag": {
"optional": false,
"validators": [
"valid_money_amount"
]
},
"mitgliederdaten.scan-antrag": {
"optional": true,
"validators": [
"valid_uri"
]
},
"mitgliederdaten.schliessberechtigung": {
"optional": true,
"validators": [
"valid_door_auth"
]
},
"mitgliederdaten.spendenbeitrag": {
"optional": true,
"validators": [
"valid_money_amount"
]
},
"mitgliederdaten.status": {
"optional": false,
"validators": [
"valid_status"
]
},
"mitgliederdaten.von": {
"optional": false,
"validators": [
"iso_date"
]
},
"stammdaten.address_code": {
"optional": false,
"validators": []
},
"stammdaten.address_country": {
"optional": false,
"validators": []
},
"stammdaten.address_label": {
"optional": false,
"validators": []
},
"stammdaten.address_locality": {
"optional": false,
"validators": []
},
"stammdaten.address_region": {
"optional": true,
"validators": []
},
"stammdaten.address_street": {
"optional": false,
"validators": []
},
"stammdaten.birth_date": {
"optional": false,
"validators": [
"iso_date"
]
},
"stammdaten.birth_location": {
"optional": false,
"validators": []
},
"stammdaten.email": {
"optional": false,
"validators": [
"valid_email"
]
},
"stammdaten.fullname": {
"optional": false,
"validators": []
},
"stammdaten.nickname": {
"optional": true,
"validators": []
},
"stammdaten.pgp-key": {
"optional": true,
"validators": [
"valid_uri"
]
},
"stammdaten.ssh-key": {
"optional": true,
"validators": [
"valid_uri"
]
},
"timestamp": {
"optional": false,
"validators": [
"iso_timestamp"
]
},
"id": {
"optional": false,
"validators": [
"valid_id"
]
}
}