-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathopenapi_schema.yaml
More file actions
43 lines (43 loc) · 1.14 KB
/
openapi_schema.yaml
File metadata and controls
43 lines (43 loc) · 1.14 KB
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
openapi: 3.0.0
info:
title: Custom CRD Validation Schema
version: 1.0.0
components:
schemas:
CustomAttribute:
oneOf:
- type: string
minLength: 0
maxLength: 100
default: ""
pattern: ".*"
description: "A string value."
- type: integer
minimum: 0
maximum: 100
default: 0
description: "An integer value."
- type: boolean
default: false
enum: [true, false]
description: "A boolean value."
- type: array
items:
oneOf:
- type: string
- type: integer
- type: boolean
- $ref: "#/components/schemas/CustomAttribute"
default: []
description: "An array of values."
- type: object
properties:
default:
type: object
description:
type: string
properties:
type: object
additionalProperties:
$ref: "#/components/schemas/CustomAttribute"
required: [default, description, properties]