Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

OpenAPI Parser

Al Begliomini Mar 13, 2019 03:08AM UTC

I am not able to get the OpenAPI Parser to work. I keep getting an error message saying that "The OpenAPI specification contained in <file name> is ill formed and cannot be parsed". However, the very same file can be imported without any issue in tools like Postman. Any similar experience or suggestions? Thanks.

Paul Johnston Mar 14, 2019 02:35PM UTC Support Center agent

The OpenAPI Parser extension is very strict in what it will accept. Unfortunately, the only workaround is to edit your OpenAPI definition so it complies with the strict requirements.

Al Begliomini Mar 15, 2019 01:19AM UTC
Is there any log in Burp or any other mechanism that would indicate where the error can be in the OpenAPI file? I checked the OpenAPI file with Atom linter-swagger plug-in and also change the format of the file from JSON to YAML with api-spec-converter. Both utilities did not report any error in the OpenAPI file. I am running Burp Suite Professional 2.0. Thanks.

Al Begliomini Mar 15, 2019 01:55AM UTC
I installed swagger-cli and ran "swagger-cli validate" and I can now see some errors! Thanks.

Al Begliomini Mar 21, 2019 06:27PM UTC
OpenAPI Parser still rejects files that have been validated by swagger-cli. From the documentation, it seems that both OpenAPI Parser and swagger-cli use swagger-parser, so it is not clear at this point where the issue is. Any suggestions?

Paul Johnston Mar 22, 2019 04:06PM UTC Support Center agent

Unfortunately I don’t have further suggestions for this but you could try contacting the extension author:


gabriel Dec 06, 2019 02:40PM UTC
You may try this converted (or any other), maybe it works for you. For me it didn't so far

Post Your public answer

Your name
Your email address