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

     1  ---
     2    swagger: "2.0"
     3    info:
     4      title: "tag name conflict"
     5      version: "0.0.1"
     6      description: "repro issue 1683"
     7      license:
     8        name: "Apache 2.0"
     9        url: "http://www.apache.org/licenses/LICENSE-2.0.html"
    10    definitions:
    11      records:
    12        type: array
    13        maxItems: 10
    14        items:
    15          type: object
    16    paths:
    17      /my/route:
    18        get:
    19          operationId: getRecords
    20          summary: get some data
    21          tags: [test]
    22          parameters:
    23          - name: inBody
    24            in: body
    25            required: true
    26            schema:
    27              type: array
    28              items:
    29                $ref: '#/definitions/records'
    30          responses:
    31            200:
    32              description: "OK"
    33              schema:
    34                $ref: '#/definitions/records'
    35      /her/route:
    36        get:
    37          operationId: getOthers
    38          summary: get some other data
    39          tags: [test-dash]
    40          parameters:
    41          - name: inBody
    42            in: body
    43            required: true
    44            schema:
    45              type: array
    46              items:
    47                $ref: '#/definitions/records'
    48          responses:
    49            200:
    50              description: "OK"
    51              schema:
    52                $ref: '#/definitions/records'
    53      /our/route:
    54        get:
    55          operationId: getYetAnother
    56          summary: get yet some other data
    57          tags: [test_underscore]
    58          parameters:
    59          - name: inBody
    60            in: body
    61            required: true
    62            schema:
    63              type: array
    64              items:
    65                $ref: '#/definitions/records'
    66          responses:
    67            200:
    68              description: "OK"
    69              schema:
    70                $ref: '#/definitions/records'