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
package-lock.json
{
"requires": true,
"lockfileVersion": 1,
"dependencies": {
"@dannywillems/ocaml-bls12-381": {
"version": "3.0.1",
"resolved": "https://gitlab.com/api/v4/projects/16568061/packages/npm/@dannywillems/ocaml-bls12-381/-/@dannywillems/ocaml-bls12-381-3.0.1.tgz",
"integrity": "sha1-p9V04XVhBlFU3Guad1a9XXh38Fc="
},
"@nomadic-labs/secp256k1-wasm": {
"version": "0.3.0",
"resolved": "https://gitlab.com/api/v4/projects/17524462/packages/npm/@nomadic-labs/secp256k1-wasm/-/@nomadic-labs/secp256k1-wasm-0.3.0.tgz",
"integrity": "sha1-e/1LR2wtYFrfa9Ye3LWu1b/fjZc="
},
"hacl-wasm": {
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/hacl-wasm/-/hacl-wasm-1.1.0.tgz",
"integrity": "sha512-HizzJxCJrn9lMRWGgc8HyzpZGSfJ+5oER18L9ZRi/TmSw5FJRa8s2r1B+I8Iw/RX6mNkQzGYXWF/NX+1U6oKUQ=="
}
}
}
Computing file changes ...