jsonschema.exceptions.SchemaError: 'Coding[GMFCS]' does not match '^[A-Za-z_][-A-Za-z0-9._]*$'
Failed validating 'pattern' in metaschema['allOf'][0]['properties']['$defs']['additionalProperties']['$dynamicRef']['allOf'][0]['properties']['$anchor']:
{'type': 'string', 'pattern': '^[A-Za-z_][-A-Za-z0-9._]*$'}
On schema['$defs']['Coding[GMFCS]']['$anchor']:
'Coding[GMFCS]'
The problem is the squared brackets in e.g. 'Coding[GMFCS]'. When replacing them with an allowed character, e.g. "_", validation is fine, i.e. 'Coding_GMFCS'.
When testing the downloaded schema json (https://dnpm.bwhealthcloud.de/api/rd/etl/patient-record/schema) there is a SchemaError on some validators, e.g. in python using jsonschema.validate():
The problem is the squared brackets in e.g. 'Coding[GMFCS]'. When replacing them with an allowed character, e.g. "_", validation is fine, i.e. 'Coding_GMFCS'.
Tested with: