]> git.ipfire.org Git - thirdparty/patchwork.git/commit
docs: Make embedded fields nullable by default
authorStephen Finucane <stephen@that.guru>
Wed, 15 Apr 2020 22:37:17 +0000 (23:37 +0100)
committerStephen Finucane <stephen@that.guru>
Sat, 18 Apr 2020 10:57:28 +0000 (11:57 +0100)
commitb4d77239c20f788fe65d71953b2889ebfa105397
tree43ce336be18094189cad27c2227b2ca168ee9bb4
parent167079a5335b36a60b6cf02e57e69c24216103f3
docs: Make embedded fields nullable by default

As discussed at [1], "subtypes can add restrictions, but they cannot
relax restrictions that are already in place." These fields need to be
marked nullable and then "subclassed" to set non-nullability if
required.

[1] https://github.com/OAI/OpenAPI-Specification/issues/1368

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