You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently the output strips nullable: true out, but it doesn't seem right.
The most plausible solution I can think of is the following, but I'd like to hear your thoughts about it.
The approach above, beside being a valid OAS definition, seems to be a legit OAS 3.0.0 workaround to define nullable $ref properties.
// This is OAS invalid since you can't extend `$ref` definitionsconstschema={type: "object"properties: {foo: {$ref: '#/components/schemas/MyReferencedComponent'nullable: true}}}// This seems to be a valid workaroundconstschema={type: "object",properties: {foo: {allOf: [{$ref: "#/components/schemas/MyReferencedComponent"}],nullable: true,},},};
Happy to open a PR if the described use case seems legit.
Cheers!
The text was updated successfully, but these errors were encountered:
Good afternoon!
I'm writing to ask feedback about a possible conversion case that could be not handled by this library:
combiners
+nullable
.Currently the output strips
nullable: true
out, but it doesn't seem right.The most plausible solution I can think of is the following, but I'd like to hear your thoughts about it.
The approach above, beside being a valid OAS definition, seems to be a legit OAS 3.0.0 workaround to define nullable
$ref
properties.Happy to open a PR if the described use case seems legit.
Cheers!
The text was updated successfully, but these errors were encountered: