|
| 1 | +{ |
| 2 | + "openapi": "3.0.0", |
| 3 | + "info": { |
| 4 | + "title": "Titles example (title)", |
| 5 | + "description": "More detailed description of the titles example API", |
| 6 | + "version": "1" |
| 7 | + }, |
| 8 | + "paths": { |
| 9 | + "/inline/object": { |
| 10 | + "get": { |
| 11 | + "summary": "Example with inline schemas, object", |
| 12 | + "responses": { |
| 13 | + "default": { |
| 14 | + "description": "Response description.", |
| 15 | + "content": { |
| 16 | + "*/*": { |
| 17 | + "schema": { |
| 18 | + "title": "Inline object (title)", |
| 19 | + "description": "Detailed description of inline object.", |
| 20 | + "type": "object", |
| 21 | + "properties": { |
| 22 | + "prop": { |
| 23 | + "title": "Inline property in inline object (title)", |
| 24 | + "description": "Detailed description of inline property in inline object.", |
| 25 | + "type": "string" |
| 26 | + } |
| 27 | + } |
| 28 | + } |
| 29 | + } |
| 30 | + } |
| 31 | + } |
| 32 | + } |
| 33 | + } |
| 34 | + }, |
| 35 | + "/inline/array": { |
| 36 | + "get": { |
| 37 | + "summary": "Example with inline schemas, array", |
| 38 | + "responses": { |
| 39 | + "default": { |
| 40 | + "description": "Response description.", |
| 41 | + "content": { |
| 42 | + "*/*": { |
| 43 | + "schema": { |
| 44 | + "title": "Inline array (title)", |
| 45 | + "description": "Detailed description of inline array.", |
| 46 | + "type": "array", |
| 47 | + "items": { |
| 48 | + "title": "Inline item in inline array (title)", |
| 49 | + "description": "Detailed description of inline item in inline array.", |
| 50 | + "type": "string" |
| 51 | + } |
| 52 | + } |
| 53 | + } |
| 54 | + } |
| 55 | + } |
| 56 | + } |
| 57 | + } |
| 58 | + }, |
| 59 | + "/components/object": { |
| 60 | + "get": { |
| 61 | + "summary": "Example with schemas in components, object", |
| 62 | + "responses": { |
| 63 | + "default": { |
| 64 | + "description": "Response description.", |
| 65 | + "content": { |
| 66 | + "*/*": { |
| 67 | + "schema": { "$ref": "#/components/schemas/Object" } |
| 68 | + } |
| 69 | + } |
| 70 | + } |
| 71 | + } |
| 72 | + } |
| 73 | + }, |
| 74 | + "/components/array": { |
| 75 | + "get": { |
| 76 | + "summary": "Example with schemas in components, array", |
| 77 | + "responses": { |
| 78 | + "default": { |
| 79 | + "description": "Response description.", |
| 80 | + "content": { |
| 81 | + "*/*": { |
| 82 | + "schema": { "$ref": "#/components/schemas/ArrayOfString" } |
| 83 | + } |
| 84 | + } |
| 85 | + } |
| 86 | + } |
| 87 | + } |
| 88 | + } |
| 89 | + }, |
| 90 | + "components": { |
| 91 | + "schemas": { |
| 92 | + "String": { |
| 93 | + "title": "Schema String (title)", |
| 94 | + "description": "Detailed description of schema String.", |
| 95 | + "type": "string" |
| 96 | + }, |
| 97 | + "ArrayOfString": { |
| 98 | + "title": "Schema ArrayOfString (title)", |
| 99 | + "description": "Detailed description of schema ArrayOfString.", |
| 100 | + "type": "array", |
| 101 | + "items": { "$ref": "#/components/schemas/String" } |
| 102 | + }, |
| 103 | + "Object": { |
| 104 | + "title": "Schema Object (title)", |
| 105 | + "description": "Detailed description of schema Object.", |
| 106 | + "type": "object", |
| 107 | + "properties": { |
| 108 | + "componentString": { "$ref": "#/components/schemas/String" }, |
| 109 | + "inlineString": { |
| 110 | + "title": "Inline string property in schema Object (title)", |
| 111 | + "description": "Detailed description of inline string property in schema Object.", |
| 112 | + "type": "string" |
| 113 | + }, |
| 114 | + "componentArray": { "$ref": "#/components/schemas/ArrayOfString" }, |
| 115 | + "inlineArray": { |
| 116 | + "title": "Inline array property in schema Object (title)", |
| 117 | + "description": "Detailed description of inline array property in schema Object.", |
| 118 | + "type": "array", |
| 119 | + "items": { |
| 120 | + "title": "Inline item in inline array property in schema Object (title)", |
| 121 | + "description": "Detailed description of inline item in inline array property in schema Object.", |
| 122 | + "type": "string" |
| 123 | + } |
| 124 | + } |
| 125 | + } |
| 126 | + } |
| 127 | + } |
| 128 | + } |
| 129 | +} |
|
0 commit comments