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
Since either a is required or b is required I would expect {a: "string"} or {b: "string"} to be correct examples for this schema.
openapi-sampler produces {a: "string", b: "string"} as an example which is incorrect. The error given by asyncapi parser is must match exactly one schema in oneOf.
If I add the {skipNonRequired: true} option then the example becomes {} which is also incorrect.
The text was updated successfully, but these errors were encountered:
See reproduced example here:
https://codesandbox.io/p/sandbox/openapi-sampler-oneof-bug-ignfcs
I have the following schema:
Since either
a
is required orb
is required I would expect{a: "string"}
or{b: "string"}
to be correct examples for this schema.openapi-sampler
produces{a: "string", b: "string"}
as an example which is incorrect. The error given by asyncapi parser ismust match exactly one schema in oneOf
.If I add the
{skipNonRequired: true}
option then the example becomes{}
which is also incorrect.The text was updated successfully, but these errors were encountered: