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

     1  swagger: "2.0"
     2  info:
     3    version: "1.0.0"
     4    title: "Another bug"
     5  host: "localhost"
     6  basePath: "/"
     7  tags:
     8    - name: "events"
     9  schemes:
    10    - "http"
    11  definitions:
    12    event:
    13      type: object
    14      required:
    15        - "value"
    16      properties:
    17        value:
    18          description: Problem property
    19          example: 1
    20    events:
    21      type: array
    22      items:
    23        type: object
    24        required: [ a ]
    25        properties:
    26          a:
    27            type: object
    28  
    29  paths:
    30    /events:
    31      post:
    32        tags:
    33          - "events"
    34        summary: "Add event"
    35        operationId: "addEvent"
    36        description: ""
    37        consumes:
    38          - "application/json"
    39        produces:
    40          - "application/json"
    41        parameters:
    42          - in: "body"
    43            name: "body"
    44            description: "Event object."
    45            required: true
    46            schema:
    47              $ref: '#/definitions/event'
    48        responses:
    49          200:
    50            description: "OK"
    51            schema:
    52              $ref: '#/definitions/events'