Open alex-zywicki opened 2 years ago
@dedoussis I tested the change to schema.get("type")
and that seems to fix the issue for me.
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 0.8.3
that fixes this.
@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/