Skip to content
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

Embedded Swagger UI Incompatible with generated json? #5

Open
jmkao opened this issue Jun 15, 2016 · 2 comments
Open

Embedded Swagger UI Incompatible with generated json? #5

jmkao opened this issue Jun 15, 2016 · 2 comments

Comments

@jmkao
Copy link

jmkao commented Jun 15, 2016

The embedded swagger UI reports an error:

{"schemaValidationMessages":[{"level":"error","message":"Deprecated Swagger version.  Please visit http://swagger.io for information on upgrading to Swagger 2.0\""}]}

When pointed at the service.json generated. However, from the changelog, it looks like Swagger-UI 2.1.0 was added recently, in version 1.1.1 (i am using 1.1.3) and did work at that time, so I'm not sure whether this is a bug or potential user error.

@bedag-moo
Copy link

The Swagger team has deprecated version 1.2 of the Swagger Specification, and urges everyone to upgrade though this validation error. The swagger-doclet does not yet support that version of the Swagger Specification (see #4).

In spite of this deprecation warning, all versions of the swagger tooling continue to understand the old specification version. In particular, the bundled swagger-ui is compatible with the generated json.

@Larzenegger
Copy link

It is possible to add validatorUrl: null to the index.html customization, which suppresses the validation remote call and deprecation error message.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants