swh:1:snp:505c374fd75bb208ae4e9a54e64bb310bc49295e
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
Tip revision: 285427db45366c31b54022f57c2ac75fa3e5b88b authored by Marge Bot on 05 April 2024, 12:53:28 UTC
Merge tezos/tezos!12676: RISC-V: Distinguish physical & virtual test environments
Tip revision: 285427d
File Mode Size
.github
.gitlab
_coverage_output
devtools
docs
emacs
manifest
opam
script-inputs
scripts
src
tests_python
tezt
vendors
.dockerignore -rw-r--r-- 918 bytes
.gitattributes -rw-r--r-- 369 bytes
.gitignore -rw-r--r-- 1.0 KB
.gitlab-ci.yml -rw-r--r-- 3.1 KB
.npmrc -rw-r--r-- 125 bytes
.ocamlformat -rw-r--r-- 390 bytes
.pylintrc -rw-r--r-- 17.5 KB
CHANGES.rst -rw-r--r-- 1.3 KB
CODEOWNERS -rw-r--r-- 3.7 KB
Dockerfile -rw-r--r-- 4.6 KB
LICENSE -rw-r--r-- 1.3 KB
Makefile -rw-r--r-- 13.9 KB
README.md -rw-r--r-- 3.1 KB
build.Dockerfile -rw-r--r-- 1.1 KB
contributing.md -rw-r--r-- 2.2 KB
dune -rw-r--r-- 548 bytes
dune-project -rw-r--r-- 9.4 KB
dune-workspace -rw-r--r-- 510 bytes
package-lock.json -rw-r--r-- 871 bytes
package.json -rw-r--r-- 335 bytes
poetry.lock -rw-r--r-- 71.8 KB
pyproject.toml -rw-r--r-- 1.3 KB
rust-toolchain -rw-r--r-- 6 bytes

README.md

back to top