From c43374f047f5f29ab45a5e26e6ae93378d76c2fa Mon Sep 17 00:00:00 2001 From: Justas Sadzevicius Date: Thu, 29 Sep 2022 13:15:04 +0300 Subject: [PATCH] Filter out schemas introduced in jsonschema 4.0.0+ See https://github.com/Yelp/bravado-core/issues/388 --- bravado_core/model.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bravado_core/model.py b/bravado_core/model.py index 781f6c26..d849b36f 100644 --- a/bravado_core/model.py +++ b/bravado_core/model.py @@ -880,7 +880,7 @@ def _call_post_process_spec(spec_dict): processed_uris = { uri for uri in spec.resolver.store - if uri == spec.origin_url or re.match(r'http://json-schema.org/draft-\d+/schema', uri) + if uri == spec.origin_url or re.match(r'http(s)?://json-schema.org/draft', uri) } additional_uri = _get_unprocessed_uri(spec, processed_uris) while additional_uri is not None: