Skip to content

Instantly share code, notes, and snippets.

@nouse
Created July 29, 2015 03:47
Show Gist options
  • Save nouse/96d5ecb3fb4b94f0f90f to your computer and use it in GitHub Desktop.
Save nouse/96d5ecb3fb4b94f0f90f to your computer and use it in GitHub Desktop.
Changes after upgrade to Swagger 2.1
  1. datetime and url types are not supported datetime should change to {type: "string", format: "date-time"}, and url is not fallback to string.

  2. loginEndPoint before is a hash with key url, now is a string

  3. initOAuth method, now requires clientSecret, even with implicit flow

  4. now SwaggerUi should be initiated with validatorUrl: null in development mode

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment