github.com/kaisawind/go-swagger@v0.19.0/fixtures/bugs/1536/fixture-1536-2-responses.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: simpleBody
    30              in: body
    31              schema:
    32                type: array
    33                items:
    34                  type: integer
    35          responses: 
    36            200: 
    37              description: "OK"
    38              schema:
    39                type: array
    40                items:
    41                  type: integer
    42      /getNested: 
    43        get: 
    44          operationId: getNested
    45          parameters:
    46            - name: genericNested
    47              in: body
    48              schema:
    49                type: array
    50                items: 
    51                  type: array
    52                  items:
    53                    type: array
    54                    items: 
    55                      type: array
    56                      items:
    57                        type: object
    58          responses: 
    59            200: 
    60              description: "OK"
    61              schema:
    62                type: array
    63                items: 
    64                  type: array
    65                  items:
    66                    type: array
    67                    items: 
    68                      type: array
    69                      items:
    70                        type: object
    71      /getNestedWithValidations: 
    72        get: 
    73          operationId: getNestedWithValidations
    74          parameters:
    75            - name: genericNestedWithValidations
    76              in: body
    77              schema:
    78                type: array
    79                items: 
    80                  type: array
    81                  items:
    82                    type: array
    83                    items: 
    84                      type: array
    85                      maxItems: 10
    86                      items:
    87                        type: object
    88          responses: 
    89            200: 
    90              description: "OK"
    91              schema:
    92                type: array
    93                items: 
    94                  type: array
    95                  items:
    96                    type: array
    97                    items: 
    98                      type: array
    99                      maxItems: 10
   100                      items:
   101                        type: object
   102      /getNestedRequired: 
   103        get: 
   104          operationId: getNestedRequired
   105          parameters:
   106            - name: objectNestedRequired
   107              in: body
   108              schema:
   109                type: array
   110                items: 
   111                  type: array
   112                  items:
   113                    type: array
   114                    items: 
   115                      type: array
   116                      items:
   117                        type: object
   118                        required: [pkcs]
   119                        properties:
   120                          pkcs:
   121                            type: string
   122          responses: 
   123            200: 
   124              description: "OK"
   125              schema:
   126                type: array
   127                items: 
   128                  type: array
   129                  items:
   130                    type: array
   131                    items: 
   132                      type: array
   133                      items:
   134                        type: object
   135                        required: [pkcs]
   136                        properties:
   137                          pkcs:
   138                            type: string