github.com/kaisawind/go-swagger@v0.19.0/fixtures/bugs/163/swagger.yml (about)

     1  swagger: '2.0'
     2  info:
     3    version: '2'
     4    title: Server Rest API
     5  
     6  basePath: /rest/api/2/
     7  schemes:
     8    - https
     9  consumes:
    10    - application/json
    11  produces:
    12    - application/json
    13  paths:
    14    '/search':
    15      get:
    16        operationId: getSearch
    17        # Per docs: https://github.com/swagger-api/swagger-spec/blob/master/versions/2.0.md#parameterObject
    18        # Required. The type of the parameter. Since the parameter is not located at the request body, it is limited to simple types (that is, not an object). The value MUST be one of "string", "number", "integer", "boolean", "array" or "file".
    19        parameters:
    20          - name: stringTypeInQuery
    21            type: string
    22            in: query
    23            default: "qsValue"
    24          - name: numberTypeInQuery
    25            type: number
    26            in: query
    27          - name: integerTypeInQuery
    28            type: integer
    29            in: query
    30          - name: booleanTypeInQuery
    31            type: boolean
    32            in: query
    33  
    34          - name: stringArrayTypeInQuery
    35            type: array
    36            items:
    37              type: string
    38            in: query
    39          - name: numberArrayTypeInQuery
    40            type: array
    41            items:
    42              type: string
    43            in: query
    44          - name: integerArrayTypeInQuery
    45            type: array
    46            items:
    47              type: string
    48            in: query
    49          - name: booleanArrayTypeInQuery
    50            type: array
    51            items:
    52              type: string
    53            in: query
    54  
    55        responses:
    56          '200':
    57            description: Success
    58            schema:
    59              $ref: '#/definitions/SearchResponse'
    60  
    61  
    62  
    63  definitions:
    64    SearchResponse:
    65      type: object
    66      properties:
    67        message:
    68          type: string