File: nested_recursive_reference_in_file.spec.yaml

package info (click to toggle)
python-prance 25.4.8.0%2Bds1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 6,140 kB
  • sloc: python: 3,381; makefile: 205
file content (33 lines) | stat: -rw-r--r-- 871 bytes parent folder | download
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
---
openapi: 3.0.3
info:
  title: Test specification for the translating parser
  version: 0.0.0
paths:
  /hosts:
    get:
      responses:
        default:
          description: >-
            A local reference to a real-world like object with a recursive local reference deep in a structure in a
            referenced file
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Response'
components:
  schemas:
    Response:
      type: object
      properties:
        results:
          type: array
          items:
            $ref: "#/components/schemas/ResultsItem"
    ResultsItem:
      type: object
      properties:
        contents:
          $ref: "#/components/schemas/ReferenceObject"
    ReferenceObject:
      $ref: "nested_recursive_reference_in_file_schemas.spec.yaml#/$defs/ComplexObject"