]> git.ipfire.org Git - thirdparty/patchwork.git/commitdiff
requirements: Pin jsonschema
authorStephen Finucane <stephen@that.guru>
Thu, 28 Oct 2021 10:38:41 +0000 (11:38 +0100)
committerStephen Finucane <stephen@that.guru>
Tue, 10 May 2022 17:26:49 +0000 (18:26 +0100)
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 <stephen@that.guru>
requirements-test.txt

index c8ce258b6517d4c8e4dcb3c7ffdf438ed6a7e358..9f56c60cb3931f34d2ae2e6699d0c01c3d993868 100644 (file)
@@ -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