File: definitions-3.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 (19 lines) | stat: -rw-r--r-- 473 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
definitions:
  ServerStatus:
    type: string
    enum: [OK, Not OK]

  Server:
    type: object
    properties:
      Name:
        type: string
      Status:
        $ref: '#/definitions/ServerStatus'
      # introduce a circular ref here
      SiblingServer:
        $ref: '#/definitions/Server'
      # introduce a nest ref here
      RemoteProps:
        $ref: 'definitions-31.yaml#/definitions/RemoteProperty'
        # TODO: same with absolute ref (e.g. http://...)