...
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: a whole schema replaces the parameter
25 - name: wrongme
26 in: query
27 required: true
28 $ref: "#/definitions/sample_info/properties/sid"
29 # Wrong: invalid ref
30 - name: despicableme
31 in: query
32 required: true
33 $ref: "#/definitions/sample_info/properties/sids"
34 responses:
35 '200':
36
37definitions:
38 sample_info:
39 type: object
40 properties:
41 sid:
42 type: string
43
View as plain text