github.com/kaisawind/go-swagger@v0.19.0/fixtures/bugs/1392/fixture-1392-1.yaml (about)

     1  swagger: "2.0"
     2  info:
     3    title: Bug? Demo
     4    description: Description.
     5    version: "0.1.0"
     6  schemes:
     7    - http
     8  produces:
     9    - application/json
    10  consumes:
    11    - application/json
    12  responses:
    13    200:
    14      description: OK
    15      schema:
    16        type: string
    17    400:
    18      description: Bad Request
    19  paths:
    20    /someResource/:
    21      patch:
    22        operationId: PatchSomeResource
    23        consumes:
    24          - application/json
    25        summary: Update the state of multiple stuff and things at once.
    26        parameters:
    27          - in: body
    28            name: massUpdate
    29            schema:
    30              $ref: '#/definitions/BulkUpdateState'
    31        responses:
    32          200:
    33            $ref: '#/responses/200'
    34          400:
    35            $ref: '#/responses/400'
    36        tags:
    37          - SomeResource
    38  definitions:
    39    BulkUpdateState:
    40      type: array
    41      items:
    42        $ref: '#/definitions/UpdateStateRequest'
    43    UpdateStateRequest:
    44      type: object
    45      required:
    46        - ID
    47        - state
    48      properties:
    49        ID:
    50          type: string
    51          x-nullable: false
    52        state:
    53          $ref: '#/definitions/StateEnum'
    54    UpdateRequest:
    55      type: object
    56    StateEnum:
    57      type: string
    58      enum:
    59        - todo
    60        - done
    61        - blocked
    62        - skipped
    63        - unenrolled
    64        - custom