...
1swagger: '2.0'
2info:
3 title: issue-342
4 description: |
5 A spec which triggers a panic because of invalid type assertion on parameters
6 version: 0.0.1
7 license:
8 name: MIT
9host: localhost:8081
10basePath: /api/v1
11schemes:
12 - http
13consumes:
14 - application/json
15produces:
16 - application/json
17paths:
18 /fixture:
19 get:
20 tags:
21 - maindata
22 operationID: fixtureOp
23 parameters:
24 # Wrong: invalid ref
25 - name: despicableme
26 in: query
27 required: true
28 $ref: "#/definitions/sample_info/properties/sids"
29 responses:
30 '200':
31
32definitions:
33 sample_info:
34 type: object
35 properties:
36 sid:
37 type: string
38
View as plain text