From 52bfa263fdc052bf9c0f9c6886308131b18d0e34 Mon Sep 17 00:00:00 2001 From: Stephen Finucane Date: Thu, 28 Oct 2021 11:38:41 +0100 Subject: [PATCH] requirements: Pin jsonschema The new 4.x release of jsonschema has borked our schemas for reasons I do not yet fully understand (though I have an idea - see inline). Unbork things now and fix our CI, while we work on a longer-term fix. Conflicts: requirements-test.txt Changes: requirements-text.txt NOTE(stephenfin): The conflict is because we're using a slightly older version of openapi-core here which we don't want to update. We also need to modify the file futher to pin openapi-schema-validator to keep pip happy since openapi-schema-validator 0.2.0 requires jsonschema > 4.0. Signed-off-by: Stephen Finucane --- requirements-test.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/requirements-test.txt b/requirements-test.txt index c8ce258b..9f56c60c 100644 --- a/requirements-test.txt +++ b/requirements-test.txt @@ -4,3 +4,10 @@ sqlparse~=0.4.0 python-dateutil~=2.8.0 tblib~=1.7.0 openapi-core~=0.13.4 +# FIXME(stephenfin): We have to pin this to prevent a recurrence of [1]. It +# seems openapi-core needs to gain support for OpenAPI 3.1 before we can fix +# this properly +# +# [1] https://github.com/OAI/OpenAPI-Specification/issues/1368 +jsonschema<4.0 +openapi-schema-validator<0.2.0 -- 2.47.3