File: fixture-1341-2.yaml

package info (click to toggle)
golang-github-go-openapi-validate 0.24.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 7,040 kB
  • sloc: sh: 11; makefile: 6
file content (51 lines) | stat: -rw-r--r-- 1,040 bytes parent folder | download | duplicates (3)
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
swagger: '2.0'
info:
  title: Title
  description: some description
  contact:
    name: John Doe
    url: https://www.acme.com/support
    email: support@acme.com
  version: "1.0.0"
paths:
  /:
    get:
      responses:
        200:
          description: Example path
          schema:
            $ref: '#/definitions/ExecuteValues'
        default:
          description: generic error
          schema:
            type: string
definitions:
  ExecuteValues:
    type: object
    properties:
      Value:
        $ref: "#/definitions/ExecuteValue"
      Array:
        type: array
        items:
          $ref: "#/definitions/ExecuteValues"
    example:
      Array:
      - Array:
        - Value:
            Value: value
            ValueType: ExecuteValueString
      - Value:
          Value: true
          ValueType: ExecuteValueBoolean
  ExecuteValue:
    type: object
    discriminator: ValueType
    required:
    - ValueType
    #- Test
    properties:
      ValueType:
        type: string
      Test:
        type: string