openapi icon indicating copy to clipboard operation
openapi copied to clipboard

Better Error location output

Open JRAndreassen opened this issue 5 years ago • 1 comments

Hi...

First, great work...

I'm having a lot of trouble with parsing yaml files. But, it's really difficult to determine where the error lies. All I get is: error: Yaml(Message("data did not match any variant of untagged enum OpenApi", None)) I've trace'd it, I even created a Manual Deserializer. It parses the top level, but has problems with a sub-level parsing (in "components").

Is there a way to get it to generate a better error. At least the token it barfs on ?

Thanks JR

JRAndreassen avatar Mar 30 '20 21:03 JRAndreassen

After some more digging it is the 'componeneet/securitySchemes' tag that fails some of the API's I'm trying to parse.... progress, but not there

JRAndreassen avatar Mar 31 '20 00:03 JRAndreassen