-
Notifications
You must be signed in to change notification settings - Fork 15
Open
Labels
bugSomething isn't workingSomething isn't workingquestionFurther information is requestedFurther information is requested
Description
Description
I think I found that and unexpected behavior working with ParseOpenApi and using the parseYamlOpenApi object.
Can be reproduced like that:
- Create a file which content is a raw string containing a valid JSON OpenAPI schema
- Wrap it inside a
YamlSource - Use it inside
parseYamlOpenApi.parsefunction to obtain the proper parser. - Result: everything goes OK
๐ 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 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?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingquestionFurther information is requestedFurther information is requested