Burp Suite User Forum

Create new post

OpenAPI Parser

Al | Last updated: 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.

PortSwigger Agent | Last updated: Mar 13, 2019 10:18AM UTC

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.

Burp User | Last updated: 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.

Burp User | Last updated: Mar 15, 2019 01:55AM UTC

I installed swagger-cli and ran "swagger-cli validate" and I can now see some errors! Thanks.

Burp User | Last updated: 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?

PortSwigger Agent | Last updated: Mar 22, 2019 10:28AM UTC

Unfortunately I don't have further suggestions for this but you could try contacting the extension author: - alexandre.teyar@gmail.com

Burp User | Last updated: 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 https://www.apimatic.io/dashboard

You must be an existing, logged-in customer to reply to a thread. Please email us for additional support.