github.com/kaisawind/go-swagger@v0.19.0/fixtures/bugs/162/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        parameters:
    18          - name: jql
    19            type: string
    20            in: query
    21            required: true
    22        responses:
    23          '200':
    24            description: Success
    25            schema:
    26              $ref: '#/definitions/SearchResponse'
    27  
    28  
    29  
    30  definitions:
    31    NotFound:
    32      type: object
    33    SearchResponse:
    34      type: object
    35      properties:
    36        issue:
    37          $ref: '#/definitions/Issue'
    38  
    39    Issue:
    40      type: object
    41      properties:
    42        assignee:
    43          $ref: '#/definitions/User'
    44  
    45  
    46    # Basic things
    47    User:
    48      type: object
    49      properties:
    50        key:
    51          type: string
    52          description: e.g. ldap username
    53        avatarUrls:
    54          $ref: '#/definitions/AvatarUrls'
    55  
    56  # this is what jira uses
    57    AvatarUrls:
    58      type: object
    59      properties:
    60        '48x48':
    61          type: string
    62        '32x32':
    63          type: string
    64        '24x24':
    65          type: string
    66        '16x16':
    67          type: string