github.com/rzurga/go-swagger@v0.28.1-0.20211109195225-5d1f453ffa3a/fixtures/bugs/2050/fixture-2050.yaml (about)

     1  ---
     2    swagger: "2.0"
     3    info:
     4      title: "enum with +,-"
     5      version: "0.0.1"
     6      description: "repro issue 2050"
     7      license:
     8        name: "Apache 2.0"
     9        url: "http://www.apache.org/licenses/LICENSE-2.0.html"
    10    definitions:
    11      modelEnum:
    12        type: object
    13        properties:
    14          p0:
    15            type: string
    16            enum:
    17              - '+1'
    18              - '-1'
    19              - '0'
    20          p1:
    21            type: string
    22            enum:
    23              - '+'
    24              - '-'
    25    paths:
    26      /getRecords:
    27        get:
    28          operationId: getRecords
    29          parameters:
    30            - name: records
    31              in: body
    32              required: true
    33              schema:
    34                $ref: '#/definitions/modelEnum'
    35          responses:
    36            200:
    37              description: "OK"