-
-
Notifications
You must be signed in to change notification settings - Fork 595
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OpenAPI specifications contains various semantic errors #2492
Comments
Thanks for reporting @maximiliankolb! And yes, as you already found out, the the OpenAPI spec file needs (re-)work. I wasn't aware however that the semantics of the existing file are invalid. Did you try to validate the Swagger 2 doc with an OpenAPI 3 validator maybe? |
I am unsure. If I use https://apitools.dev/swagger-parser/online/, which according to their repo on Github parses swagger 2.0 files, then I also get an error as follows:
This points IMHO towards the same issue as mentioned above. |
Resolved via #3728. We now have tests that validate the generated OpenAPI spec. |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Current Behavior
I am running dependency-track on my local machine. I've downloaded the
swagger.json
file fromhttp://localhost:8081/api/swagger.json
and inserted it into the swagger-editor as follows:docker run --rm -d -p 8079:8080 -v $(pwd):/tmp -e SWAGGER_FILE=/tmp/swagger.json swaggerapi/swagger-editor
. Navigating tohttp://localhost:8079/
shwos the following error:Steps to Reproduce
Expected Behavior
swagger.json conforms to the OpenAPI specification.
Dependency-Track Version
4.6.x
Dependency-Track Distribution
Container Image
Database Server
PostgreSQL
Database Server Version
No response
Browser
Google Chrome
Checklist
The text was updated successfully, but these errors were encountered: