github.com/rzurga/go-swagger@v0.28.1-0.20211109195225-5d1f453ffa3a/fixtures/bugs/2330/fixture-2330.yaml (about)

     1  
     2  ---
     3    swagger: "2.0"
     4    info:
     5      title: "param body with array of empty objects"
     6      version: "0.0.1"
     7      description: "repro issue 1537"
     8      license:
     9        name: "Apache 2.0"
    10        url: "http://www.apache.org/licenses/LICENSE-2.0.html"
    11  
    12    definitions:
    13     LoginInput:
    14      properties:
    15        login:
    16          type: string
    17        password:
    18          type: string
    19  
    20    responses:
    21      GenericError:
    22        description: "error"
    23        schema:
    24          type: object
    25  
    26    paths:
    27      /login:
    28         post:
    29           operationId: login
    30           parameters:
    31             - in: body
    32               required: true
    33               name: body
    34               schema:
    35                 $ref: '#/definitions/LoginInput'
    36           responses:
    37             200:
    38               description: ''
    39               schema:
    40                 properties:
    41                   token:
    42                     type: string
    43             400:
    44               $ref: '#/responses/GenericError'
    45             401:
    46               $ref: '#/responses/GenericError'
    47             500:
    48               $ref: '#/responses/GenericError'