example-object.json 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. {
  2. "openapi": "3.0.0",
  3. "info": {
  4. "title": "Example for response examples value",
  5. "version": "1.0"
  6. },
  7. "paths": {
  8. "/users": {
  9. "post": {
  10. "summary": "Adds a new user",
  11. "requestBody": {
  12. "content": {
  13. "application/json": {
  14. "schema": {
  15. "properties": {
  16. "id": {
  17. "type": "string"
  18. },
  19. "name": {
  20. "type": "string"
  21. }
  22. },
  23. "type": "object",
  24. "example": {
  25. "id": 10,
  26. "name": "Jessica Smith"
  27. }
  28. }
  29. }
  30. }
  31. },
  32. "responses": {
  33. "200": {
  34. "description": "OK"
  35. }
  36. }
  37. }
  38. }
  39. }
  40. }