]> git.ipfire.org Git - thirdparty/patchwork.git/commit
Convert to OpenAPI 3.1
authorStephen Finucane <stephen@that.guru>
Mon, 10 Oct 2022 17:18:41 +0000 (18:18 +0100)
committerStephen Finucane <stephen@that.guru>
Mon, 10 Oct 2022 18:19:19 +0000 (19:19 +0100)
commit842c20179f2fa3a2688c4201007f822acbafdbe3
tree75010c76bf16adedcac2e2d4a72210ec76cfbea4
parentd5d668eca6ee8e8a3cd1679936271f207f880c68
Convert to OpenAPI 3.1

OpenAPI 3.0 has some unspecified behavior regarding the combination of
reference objects with 'nullable' [1]. Despite what random StackOverflow
answers [2] suggest, combining nullable with '$ref' still doesn't work.
Do what's suggested in the issue reporting this behavior [3] and upgrade
to OpenAPI 3.1, allowing us to work around this.

[1] https://github.com/OAI/OpenAPI-Specification/issues/1368
[2] https://stackoverflow.com/a/48114924/613428
[3] https://github.com/OAI/OpenAPI-Specification/issues/1368#issuecomment-930112844

Signed-off-by: Stephen Finucane <stephen@that.guru>
docs/api/schemas/latest/patchwork.yaml
docs/api/schemas/patchwork.j2
docs/api/schemas/v1.0/patchwork.yaml
docs/api/schemas/v1.1/patchwork.yaml
docs/api/schemas/v1.2/patchwork.yaml
docs/api/schemas/v1.3/patchwork.yaml
patchwork/tests/api/validator.py