File: other-invalid-pointers.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 (84 lines) | stat: -rw-r--r-- 1,831 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
---
swagger: "2.0"
schemes:
  - "http"
  - "https"
basePath: "/v1.24"
info:
  title: Edge cases with JSON pointers
  version: "1.24"
  description: |
    Explore edge cases with invalid pointers

paths:
  /invalid:
    get:
      responses:
        401:
          $ref: "#/responses/401ErrorResponse"
        404:
          $ref: "#/responses/404ErrorResponse"
        500:
          $ref: "#/responses/500ErrorResponse"
  
definitions:
  invalidRefInObject:
    type: object
    properties:
      prop1:
        type: integer
      prop2:
        $ref: "#/definitions/noWhere"
  invalidRefInMap:
    type: object
    additionalProperties:
      $ref: "#/definitions/noWhere"
  invalidRefInArray:
    type: array
    items:
      $ref: "#/definitions/noWhere"
  indirectToInvalidRef:
    $ref: "#/definitions/invalidRefInArray"
  invalidRefInTuple:
    type: array
    items:
      - type: integer
      - $ref: "#/definitions/noWhere"
parameters:
  bodyWithRef:
    name: bodyWithRefParam
    in: body
    required: true
    schema:
      $ref: "#/definitions/Error"
  anotherBodyWithRef:
    name: anotherBodyWithRefParam
    in: body
    required: true
    schema:
      $ref: "#/definitions/Error"
  funnyParam:
    name: funnyParam
    in: body
    required: true
    schema:
      $ref: "#/responses/500ErrorResponse/schema"

responses:
  401ErrorResponse:
    description: An unexpected 401 error occurred.
    schema:
      $ref: "#/definitions/Error"
  404ErrorResponse:
    description: An unexpected 404 error occurred.
    schema:
      $ref: "#/definitions/Error"
  500ErrorResponse:
    description: An unexpected server error occurred.
    schema:
      $ref: "#/definitions/Error"
  funnyResponse:
    description: An unexpected server error occurred.
    schema:
      $ref: "#/responses/401ErrorResponse/schema"