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