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
It doesn't happen the other way round. That is, if you wrap a correct YAML inside a JsonSource and try to use the parseJsonOpenApi method.
I guess, if two different parsers are provided, each one for different formats (modeled in two different case classes), should be this the expected behavior? or it should trigger the error from the first moment saying it's not a proper YAML source?
The text was updated successfully, but these errors were encountered:
Description
I think I found that and unexpected behavior working with
ParseOpenApi
and using theparseYamlOpenApi
object.Can be reproduced like that:
YamlSource
parseYamlOpenApi.parse
function to obtain the proper parser.🔗 This gist can help.
It doesn't happen the other way round. That is, if you wrap a correct YAML inside a
JsonSource
and try to use theparseJsonOpenApi
method.I guess, if two different parsers are provided, each one for different formats (modeled in two different case classes), should be this the expected behavior? or it should trigger the error from the first moment saying it's not a proper YAML source?
The text was updated successfully, but these errors were encountered: