github.com/rzurga/go-swagger@v0.28.1-0.20211109195225-5d1f453ffa3a/fixtures/enhancements/303/swagger.yml (about)

     1  swagger: '2.0'
     2  info:
     3    version: 1.0.0
     4    title: Test Issue 303
     5  schemes:
     6    - http
     7  paths:
     8    /giveFruit:
     9      get:
    10        operationId: giveFruit
    11        summary: Give some fruit
    12        description: The service "consumes" some fruit and returns successfully if it tastes pretty good :).
    13        parameters:
    14          - name: fruit
    15            in: query
    16            description: |
    17              Fruit types:
    18              * `Apple`
    19              * `Pear`
    20              * `Plum`
    21            required: true
    22            type: string
    23            enum:
    24              - Apple
    25              - Pear
    26              - Plum
    27            x-nullable: false
    28            x-go-enum-ci: true
    29        responses:
    30          200:
    31            description: The fruit tasted good :-P.
    32    /giveFruitBasket:
    33      get:
    34        operationId: giveFruitBasket
    35        summary: Give several kinds of fruit
    36        description: The service accepts several kinds of fruit in a wicker basket as a present :-D.
    37        parameters:
    38          - name: fruit
    39            in: query
    40            description: |
    41              Fruit types:
    42              * `Peach`
    43              * `Apricot`
    44              * `Strawberry`
    45              * `Raspberry`
    46              * `Blueberry`
    47              * `Cranberry`
    48              * `Banana`
    49              * `Pineapple`
    50              * `Orange`
    51              * `Grapefruit`
    52              * `Lemon`
    53              * `Lime`
    54            type: array
    55            items:
    56              type: array
    57              items:
    58                type: string
    59                enum:
    60                  - Peach
    61                  - Apricot
    62                collectionFormat: csv
    63                uniqueItems: true
    64                x-nullable: false
    65                x-go-enum-ci: true
    66              enum:
    67                -
    68                  - Strawberry
    69                  - Raspberry
    70                -
    71                  - Blueberry
    72                  - Cranberry
    73              collectionFormat: tsv
    74              uniqueItems: true
    75              x-nullable: false
    76              x-go-enum-ci: true
    77            enum:
    78              -
    79                -
    80                  - Banana
    81                  - Pineapple
    82              -
    83                -
    84                  - Orange
    85                  - Grapefruit
    86                -
    87                  - Lemon
    88                  - Lime
    89            collectionFormat: pipes
    90            uniqueItems: true
    91            x-nullable: false
    92            x-go-enum-ci: true
    93        responses:
    94          200:
    95            description: A wicker fruit basket?! Excellent! X-D
    96  definitions:
    97    Vegetable:
    98      description: |
    99        Vegetable types:
   100        * `Tomato`
   101        * `Cucumber`
   102        * `Pepper`
   103      type: string
   104      enum:
   105        - Tomato
   106        - Cucumber
   107        - Pepper
   108      x-nullable: false
   109      x-go-enum-ci: true