github.com/thetreep/go-swagger@v0.0.0-20240223100711-35af64f14f01/fixtures/bugs/2597/2597.yaml (about)

     1  swagger: "2.0"
     2  info:
     3    description: 'repro issue #2597'
     4    title: minitems
     5    version: "0.0.0"
     6  paths:
     7    /v1/blah:
     8      patch:
     9        produces:
    10          - application/json
    11        parameters:
    12          - name: newArray
    13            in: body
    14            schema:
    15              $ref: '#/definitions/BlahArray'
    16        responses:
    17          200:
    18            description: ok
    19            schema:
    20      post:
    21        produces:
    22          - application/json
    23        parameters:
    24          - name: newArray
    25            in: body
    26            schema:
    27              $ref: '#/definitions/BlahStruct'
    28        responses:
    29          200:
    30            description: ok
    31            schema:
    32  
    33  definitions:
    34    BlahArray:
    35      description: The array of blah numbers
    36      type: array
    37      items:
    38        type: integer
    39      minItems: 1
    40      uniqueItems: true
    41    BlahComplexArray:
    42      description: The array of blah numbers
    43      type: array
    44      items:
    45        type: object
    46        properties:
    47          a:
    48            type: string
    49      minItems: 1
    50    BlahStruct:
    51      description: The struct containing an array of blah numbers
    52      type: object
    53      required: [b]
    54      properties:
    55        list:
    56          type: array
    57          items:
    58            type: integer
    59          minItems: 1
    60        unique:
    61          type: array
    62          items:
    63            type: integer
    64          uniqueItems: true
    65        b:
    66          type: string
    67          maxLength: 10
    68    BlahMap:
    69      description: this is a map[string]string
    70      type: object
    71      additionalProperties:
    72        type: string
    73      maxProperties: 10
    74    BlahComplexMap:
    75      type: object
    76      additionalProperties:
    77        type: object
    78        properties:
    79          x:
    80            type: string
    81      maxProperties: 12