6627.yaml 756 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. openapi: 3.0.1
  2. info:
  3. title: XML array schema with array-level example
  4. version: 1.0.0
  5. paths:
  6. /users:
  7. get:
  8. responses:
  9. "200":
  10. description: ''
  11. content:
  12. application/xml:
  13. schema:
  14. $ref: '#/components/schemas/Users'
  15. components:
  16. schemas:
  17. Users:
  18. type: array
  19. example:
  20. - id: 123
  21. name: bob
  22. - id: 456
  23. name: jane
  24. xml:
  25. name: Users
  26. wrapped: true
  27. items:
  28. type: object
  29. xml:
  30. name: User
  31. properties:
  32. id:
  33. type: integer
  34. xml:
  35. attribute: true
  36. name:
  37. type: string
  38. xml:
  39. attribute: true