File: fixture-342-2.yaml

package info (click to toggle)
golang-github-go-openapi-analysis 0.23.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,548 kB
  • sloc: makefile: 4
file content (38 lines) | stat: -rw-r--r-- 695 bytes parent folder | download | duplicates (5)
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