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
That SO answer might be incorrect about mixed element types in arrays.
It appears that the difference between oneOf/anyOf only affects the validation:
anyOf allows inputs that conform to multiple anyOf members;
oneOf requires that the input object matches exactly one union member. After a match is found, we should check that the input does not match any other options.
The generated type would be a union type in both cases.
In fact, we do not do this "exactly one" check, so our implementation of oneOf actually behaves like anyOf.
I suggest adding support
anyOf
to codegen.the difference between
anyOf
andoneOf
is discussed here: https://stackoverflow.com/a/56039838The text was updated successfully, but these errors were encountered: