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

     1  swagger: '2.0'
     2  info:
     3    title: 'x-go-type issues'
     4    version: '1.0'
     5  paths:
     6    /users_arr_ref:
     7      get:
     8        parameters:
     9        - name: bodyUser
    10          in: body
    11          schema:
    12            $ref: '#/definitions/User'
    13        responses:
    14          200:
    15            description: OK
    16            schema:
    17              $ref: '#/definitions/UsersArrayRef'
    18          201:
    19            description: OK
    20            schema:
    21              $ref: '#/definitions/User'
    22    /users_arr_flat:
    23      get:
    24        parameters:
    25        - name: bodyUser
    26          in: body
    27          schema:
    28            type: array
    29            items:
    30              $ref: '#/definitions/User'
    31        responses:
    32          200:
    33            description: OK
    34            schema:
    35              $ref: '#/definitions/UsersArrayFlat'
    36          201:
    37            description: OK
    38            schema:
    39              $ref: '#/definitions/Users'
    40          203:
    41            description: OK
    42            schema:
    43              type: array
    44              items:
    45                $ref: '#/definitions/Users'
    46    /user_obj_ref:
    47      get:
    48        responses:
    49          200:
    50            description: OK
    51            schema:
    52              $ref: '#/definitions/UserObjectRef'
    53    /user_obj_flat:
    54      get:
    55        responses:
    56          200:
    57            description: OK
    58            schema:
    59              $ref: '#/definitions/UserObjectFlat'
    60  definitions:
    61    User:
    62      type: object
    63      properties:
    64        name:
    65          type: string
    66        age:
    67          type: integer
    68      x-go-type:
    69        type: ExtUser
    70        import:
    71          alias: myalias0
    72          package: 'github.com/go-swagger/go-swagger/fixtures/bugs/1719/pkg/models'
    73    Users:
    74      type: array
    75      items:
    76         $ref: '#/definitions/User'
    77    UsersArrayRef:
    78      type: array
    79      items:
    80         $ref: '#/definitions/User'
    81      x-go-type:
    82        type: ExtUsersArrayRef
    83        import:
    84          alias: myalias1
    85          package: 'github.com/go-swagger/go-swagger/fixtures/bugs/1719/pkg/models'
    86    UsersArrayFlat:
    87      type: array
    88      items:
    89        type: object
    90        properties:
    91          name:
    92            type: string
    93          age:
    94            type: integer
    95      x-go-type:
    96        type: ExtUsersArrayFlat
    97        import:
    98          alias: myalias2
    99          package: 'github.com/go-swagger/go-swagger/fixtures/bugs/1719/pkg/models'
   100    UserObjectRef:
   101      $ref: '#/definitions/User'
   102      x-go-type:
   103        type: ExtUser
   104        import:
   105          alias: myalias3
   106          package: 'github.com/go-swagger/go-swagger/fixtures/bugs/1719/pkg/models2'
   107    UserObjectFlat:
   108      type: object
   109      properties:
   110        name:
   111          type: string
   112        age:
   113          type: integer
   114      x-go-type:
   115        type: ExtUser
   116        import:
   117          alias: myalias4
   118          package: 'github.com/go-swagger/go-swagger/fixtures/bugs/1719/pkg/models2'