question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Generated OpenAPI spec gives $schema errors in the Swagger Editor

See original GitHub issue

Hi,

Somes returns on http://localhost:5600/api/swagger.json

swagger.json isn’t valid -> put it in https://editor.swagger.io/ to see error:

image

Maybe set an abstract type for event.data or a type including all possibles fields?

in any case thanks for the swagger 👍

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:11 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
ErikBjarecommented, Feb 15, 2020

Still waiting for OpenAPI v3 support in flask-restplus

2reactions
ErikBjarecommented, Nov 26, 2018

This is related to the new OpenAPI v3 spec that isn’t supported by flask-restplus yet, see: https://github.com/noirbizarre/flask-restplus/issues/518

Read more comments on GitHub >

github_iconTop Results From Across the Web

[BUG] Error processing OpenAPI json file for python client
It appears that the online OpenAPI validators accept response specifications without a schema field, and the openapi-generator does not. The ...
Read more >
Swagger Editor shows the "Schema error: should NOT have ...
I accidentally mixed up the syntax from Swagger 2.0 with Openapi 3.0.x . In Openapi 3.0.x , definitions are redefined as components.
Read more >
How to validate OpenAPI definitions - Swagger
Reviewer: paste the OpenAPI definition from Pull Request to Swagger Editor to see if errors were introduced. Merge Pull Request.
Read more >
OpenAPI tutorial using Swagger Editor and Swagger UI
“Swagger” was the original name of the OpenAPI specification, but the specification was later changed to “OpenAPI” to reinforce the open, non- ...
Read more >
Generated Swagger.json Does Not Validate with Swagger Editor
We are finding that the swagger.json file that this module generates is not completely accepted by the Swagger Editor and related tools --...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found