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

     1  swagger: '2.0'
     2  info:
     3    version: "1.0.0"
     4    title: "Test enum serialisation"
     5  paths:
     6  
     7    /example:
     8      put:
     9        operationId: put-enum
    10        parameters:
    11        - name: "something"
    12          in: "body"
    13          description: "PUT enum example"
    14          required: true
    15          schema:
    16            $ref: '#/definitions/MyEnum'
    17        responses:
    18          202:
    19            description: "PUT OK"
    20          500:
    21            description: "Error"
    22  
    23  definitions:
    24  
    25    MyEnum:
    26      type: "string"
    27      enum:
    28      - SOMEVALUE
    29      - SOMEOTHERVALUE