From bec5f85d5e7d024831eb1aa24f74cbea031e1854 Mon Sep 17 00:00:00 2001 From: Duncan Dewhurst Date: Fri, 11 Feb 2022 14:14:45 +1300 Subject: [PATCH] schema-strict: remove null type from required fields --- ocdskit/schema.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ocdskit/schema.py b/ocdskit/schema.py index 77b13e7..341c876 100644 --- a/ocdskit/schema.py +++ b/ocdskit/schema.py @@ -246,7 +246,10 @@ def add_validation_properties(schema, unique_items=True, coordinates=False): value['minimum'] = 0 elif key in ['Organization', 'OrganizationReference']: value['required'] = ['id', 'name'] + value['properties']['name']['type'] = "string" + value['properties']['id']['type'] = "string" elif key in ['Amendment', 'RelatedProcess']: value['required'] = ['id'] + value['properties']['id']['type'] = "string" add_validation_properties(value, unique_items=unique_items, coordinates=coordinates)