Revision cac9e88ee5d2cdddbba16c1c80ad55bbea26e5d9 authored by Nicolas BACQUEY on 07 July 2022, 09:56:30 UTC, committed by Nicolas BACQUEY on 26 July 2022, 12:35:16 UTC
This commit fixes a bug where Null elements in Json schemas would not be
processed correctly when being translated to OpenAPI schemas.

The version of OpenAPI we use does not handle null elements in
disjunctions, so instead we use a `nullable` property on said
disjunctions, and don't convert null elements from Json schemas to
OpenAPI.

The problem was that null elements in disjunctions (i.e. the `Combine`
element kind) can be represented either by an element with the `Null`
kind, or by the following object:
```
{ /* None */
  "none": null }
```
This commit adds the correct processing of the latter representation to
the `convert_element` function.
1 parent db5bca4
History
File Mode Size
bin
Makefile -rw-r--r-- 17 bytes
README.md -rw-r--r-- 6.4 KB
git-gas-diff.sh -rwxr-xr-x 3.5 KB

README.md

back to top