Advertisement
Guest User

Untitled

a guest
Jul 19th, 2019
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.16 KB | None | 0 0
  1. public Docket api(UserProperties userProperties) {
  2. return new Docket(DocumentationType.SWAGGER_2)
  3. .select()
  4. .apis(RequestHandlerSelectors.any())
  5. .paths(Predicates.not(PathSelectors.regex("/error")))
  6. .paths(Predicates.not(PathSelectors.regex("/oauth/authorize")))
  7. .paths(Predicates.not(PathSelectors.regex("/oauth/check_token")))
  8. .paths(Predicates.not(PathSelectors.regex("/oauth/token_key")))
  9. .paths(Predicates.not(PathSelectors.regex("/oauth/confirm_access")))
  10. .paths(Predicates.not(PathSelectors.regex("/oauth/error")))
  11. .build().apiInfo(apiInfo());
  12. }
  13.  
  14. Swagger schema validation failed.
  15. Data does not match any schemas from 'oneOf' at #/paths//oauth/token/post/parameters/1
  16. Data does not match any schemas from 'oneOf' at #/paths//oauth/token/post/parameters/1
  17. Missing required property: schema at #/
  18. Missing required property: type at #/
  19. Missing required property: $ref at #/paths//oauth/token/post/parameters/1
  20.  
  21. JSON_OBJECT_VALIDATION_FAILED
  22.  
  23. "/oauth/token": {
  24. "get": {
  25. ...
  26. },
  27. "post": {
  28. "tags": [
  29. "token-endpoint"
  30. ],
  31. "summary": "postAccessToken",
  32. "operationId": "postAccessTokenUsingPOST",
  33. "consumes": [
  34. "application/json"
  35. ],
  36. "produces": [
  37. "*/*"
  38. ],
  39. "parameters": [
  40. {
  41. "name": "name",
  42. "in": "query",
  43. "required": false,
  44. "type": "string"
  45. },
  46. {
  47. "name": "parameters",
  48. "in": "query",
  49. "description": "parameters",
  50. "required": true,
  51. "items": {
  52. "type": "object",
  53. "additionalProperties": {
  54. "type": "string"
  55. }
  56. }
  57. }
  58. ],
  59. "responses": {
  60. ...
  61. },
  62. "deprecated": false
  63. }
  64. },
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement