richhollis / swagger-docs

Generates swagger-ui json files for Rails APIs with a simple DSL.
MIT License
749 stars 150 forks source link

Deprecated version of swagger #138

Closed glaksmono closed 8 years ago

glaksmono commented 8 years ago

We're getting this:

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

we're using this:

gem 'swagger-docs', '0.2.8'

any ideas how to fix this?

richhollis commented 8 years ago

I guess swagger have possibly added a deprecation warning for older 1.x version schemas. v2 is not supported by this gem. From this project's README:

This project supports elements of the v1.2 swagger specification. It does not support the v2 specification. If you are looking for support for the newer specification the please see the swagger-blocks project