From 02e0c9858cd8a541233802a685e6a03ec6282569 Mon Sep 17 00:00:00 2001 From: David Kilias Date: Thu, 12 Nov 2020 22:06:32 +0100 Subject: [PATCH] =?UTF-8?q?erster=20Vorschlag=20f=C3=BCr=20die=20Zuweisung?= =?UTF-8?q?=20von=20Validation=20functions=20zu=20Feldern?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- validation_schema.json | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 validation_schema.json diff --git a/validation_schema.json b/validation_schema.json new file mode 100644 index 0000000..0e65106 --- /dev/null +++ b/validation_schema.json @@ -0,0 +1,30 @@ +{ + "finanzdaten.bic": {"validators": ["mandatory", "valid_bic"]}, + "finanzdaten.holder": {"validators": ["optional"]}, + "finanzdaten.iban": {"validators": ["mandatory", "valid_iban"]}, + "finanzdaten.issuance": {"validators": ["mandatory", "iso_date"]}, + "finanzdaten.reference": {"validators": ["empty"]}, + "finanzdaten.scan-sepa-mandate": {"validators": ["optional", "valid_uri"]}, + "mitgliederdaten.bis": {"validators": ["iso_date"]}, + "mitgliederdaten.mitgliedsbeitrag": {"validators": ["mandatory", "valid_money_amount"]}, + "mitgliederdaten.scan-antrag": {"validators": ["optional", "valid_uri"]}, + "mitgliederdaten.schliessberechtigung": {"validators": ["optional", "valid_door_auth"]}, + "mitgliederdaten.spendenbeitrag": {"validators": ["valid_money_amount"]}, + "mitgliederdaten.status": {"validators": ["mandatory", "valid_status"]}, + "mitgliederdaten.von": {"validators": ["mandatory", "iso_date"]}, + "stammdaten.address_code": {"validators": ["mandatory"]}, + "stammdaten.address_country": {"validators": ["mandatory"]}, + "stammdaten.address_label": {"validators": ["mandatory"]}, + "stammdaten.address_locality": {"validators": ["mandatory"]}, + "stammdaten.address_region": {"validators": []}, + "stammdaten.address_street": {"validators": ["mandatory"]}, + "stammdaten.birth_date": {"validators": ["mandatory", "iso_date"]}, + "stammdaten.birth_location": {"validators": ["mandatory"]}, + "stammdaten.email": {"validators": ["mandatory", "valid_email"]}, + "stammdaten.fullname": {"validators": ["mandatory"]}, + "stammdaten.nickname": {"validators": ["optional"]}, + "stammdaten.pgp-key": {"validators": ["optional", "valid_uri"]}, + "stammdaten.ssh-key": {"validators": ["optional", "valid_uri"]}, + "timestamp": {"validators": ["mandatory", "iso_timestamp"]}, + "id": {"validators": ["mandatory", "valid_id"]} + } \ No newline at end of file