...

Text file src/github.com/go-openapi/analysis/fixtures/oaigen/test3-ter-swagger.yaml

Documentation: github.com/go-openapi/analysis/fixtures/oaigen

     1swagger: '2.0'
     2info:
     3  version: 0.1.1
     4  title: test 1
     5  description: recursively following JSON references
     6  contact:
     7    name: Fred
     8
     9schemes:
    10  - http
    11
    12consumes:
    13  - application/json
    14produces:
    15  - application/json
    16
    17paths:
    18  /getAll:
    19    get:
    20      operationId: getAll
    21      parameters:
    22        - name: a
    23          in: body
    24          description: max number of results
    25          required: false
    26          schema:
    27            $ref: '#/definitions/a'
    28      responses:
    29        '200':
    30          description: Success
    31          schema:
    32            $ref: '#/definitions/b1'
    33        '201':
    34          description: Success
    35          schema:
    36            $ref: '#/definitions/b2'
    37        '203':
    38          description: Success
    39          schema:
    40            $ref: '#/definitions/b3'
    41
    42definitions:
    43  a:
    44    type: string
    45  b1:
    46    $ref: './test3-ter-model-schema.json#/definitions/b1'
    47  b2:
    48    $ref: './test3-ter-model-schema.json#/definitions/b2'
    49  b3:
    50    $ref: './test3-ter-model-schema.json#/definitions/b3'
    51
    52
    53

View as plain text