-
-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Payload validator fails with oneOf in payload #196
Comments
@dedoussis I tested the change to |
Hi @alex-zywicki, apologies for the delay. This is indeed a bug, but the fix is a bit more complex than the one you propose. Will look into raising a PR. |
Have released version |
@alex-zywicki Would it be possible to confirm that the new version fixes the issue you encountered? If so, this thread can be closed I guess. |
WIth a message payload that contains a oneOf
When passing an array of string I get this exception:
I'm not 100% sure if changing to
schema.get("type")
would be correct, but theoneOf
case needs to be handled somehow.From what I can tell based on https://www.asyncapi.com/docs/specifications/v2.2.0#messageObject this is a valid payload and it seems to validate correctly on https://studio.asyncapi.com/
The text was updated successfully, but these errors were encountered: