github.com/thetreep/go-swagger@v0.0.0-20240223100711-35af64f14f01/fixtures/bugs/1536/fixture-1536-2.yaml (about) 1 --- 2 swagger: "2.0" 3 info: 4 title: "gen operation with body param, --skip-flatten mode" 5 version: "0.0.1" 6 description: "repro issue 1537" 7 license: 8 name: "Apache 2.0" 9 url: "http://www.apache.org/licenses/LICENSE-2.0.html" 10 paths: 11 /getSimple: 12 get: 13 operationId: getSimple 14 parameters: 15 - name: simpleBody 16 in: body 17 schema: 18 type: object 19 properties: 20 p1: 21 type: integer 22 responses: 23 200: 24 description: "OK" 25 /getSimpleArray: 26 get: 27 operationId: getSimpleArray 28 parameters: 29 - name: simpleArray 30 in: body 31 schema: 32 type: array 33 items: 34 type: integer 35 responses: 36 200: 37 description: "OK" 38 /getSimpleArrayWithValidation: 39 get: 40 operationId: getSimpleArrayWithValidation 41 parameters: 42 - name: simpleArrayWithValidation 43 in: body 44 schema: 45 type: array 46 items: 47 type: integer 48 maximum: 12 49 responses: 50 200: 51 description: "OK" 52 /getSimpleArrayWithSliceValidation: 53 get: 54 operationId: getSimpleArrayWithSliceValidation 55 parameters: 56 - name: simpleArrayWithSliceValidation 57 in: body 58 schema: 59 type: array 60 items: 61 type: integer 62 enum: 63 - 64 - 1 65 - 2 66 - 3 67 - 68 - 4 69 - 5 70 - 6 71 responses: 72 200: 73 description: "OK" 74 /getNested: 75 get: 76 operationId: getNested 77 parameters: 78 - name: genericNested 79 in: body 80 schema: 81 type: array 82 items: 83 type: array 84 items: 85 type: array 86 items: 87 type: array 88 items: 89 type: object 90 responses: 91 200: 92 description: "OK" 93 /getNestedWithValidations: 94 get: 95 operationId: getNestedWithValidations 96 parameters: 97 - name: genericNestedWithValidations 98 in: body 99 schema: 100 type: array 101 items: 102 type: array 103 items: 104 type: array 105 items: 106 type: array 107 maxItems: 10 108 items: 109 type: object 110 responses: 111 200: 112 description: "OK" 113 /getNestedRequired: 114 get: 115 operationId: getNestedRequired 116 parameters: 117 - name: objectNestedRequired 118 in: body 119 schema: 120 type: array 121 items: 122 type: array 123 items: 124 type: array 125 items: 126 type: array 127 items: 128 type: object 129 required: [pkcs] 130 properties: 131 pkcs: 132 type: string 133 responses: 134 200: 135 description: "OK"