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
Having multiple anyOf (or oneOf) inside the allOf will make the both conditions to be joined in a single anyOf (oneOf). In other words the condition (firstA OR firstB) AND (secondA OR secondB) is rendered like firstA OR firstB OR secondA OR secondB.
Expected behavior
Actual behavior
Additional context or thoughts
Having different conditions (oneOf & anyOf) under the same allOf will be resulted in a correct Schema.
The text was updated successfully, but these errors were encountered:
Q&A
Example Swagger/OpenAPI definition:
Describe the bug you're encountering
Having multiple
anyOf
(oroneOf
) inside theallOf
will make the both conditions to be joined in a singleanyOf
(oneOf
). In other words the condition(firstA OR firstB) AND (secondA OR secondB)
is rendered likefirstA OR firstB OR secondA OR secondB
.Expected behavior
Actual behavior
Additional context or thoughts
Having different conditions (
oneOf
&anyOf
) under the sameallOf
will be resulted in a correct Schema.The text was updated successfully, but these errors were encountered: