misc.json 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. {
  2. "openapi": "3.0.0",
  3. "info": {
  4. "title": "Testing annotations from bugreports",
  5. "version": "1.0.0"
  6. },
  7. "servers": [
  8. {
  9. "url": "{schema}://host.dev",
  10. "description": "OpenApi parameters",
  11. "variables": {
  12. "schema": {
  13. "enum": [
  14. "https",
  15. "http"
  16. ],
  17. "default": "https"
  18. }
  19. }
  20. }
  21. ],
  22. "paths": {
  23. "/api/endpoint": {
  24. "get": {
  25. "parameters": [
  26. {
  27. "name": "filter",
  28. "in": "query",
  29. "content": {
  30. "application/json": {
  31. "mediaType": "application/json",
  32. "schema": {
  33. "type": "object",
  34. "properties": {
  35. "type": {
  36. "type": "string"
  37. },
  38. "color": {
  39. "type": "string"
  40. }
  41. }
  42. }
  43. }
  44. }
  45. }
  46. ],
  47. "responses": {
  48. "200": {
  49. "description": "Success"
  50. }
  51. }
  52. }
  53. }
  54. }
  55. }