5458.yaml 731 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. swagger: "2.0"
  2. info:
  3. title: test
  4. version: 1.0.0
  5. paths:
  6. /foo1:
  7. get:
  8. summary: Response without a schema
  9. produces:
  10. - application/json
  11. responses:
  12. 200:
  13. description: Successful response
  14. examples:
  15. application/json:
  16. foo: custom value
  17. /foo2:
  18. get:
  19. summary: Response with schema
  20. produces:
  21. - application/json
  22. responses:
  23. 200:
  24. description: Successful response
  25. schema:
  26. $ref: '#/definitions/Foo'
  27. examples:
  28. application/json:
  29. foo: custom value
  30. definitions:
  31. Foo:
  32. type: object
  33. properties:
  34. foo:
  35. type: string
  36. example: bar