-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexample.schema.yaml
93 lines (93 loc) · 2.26 KB
/
example.schema.yaml
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
85
86
87
88
89
90
91
92
93
$schema: http://json-schema.org/draft-07/schema
$id: http://example.com/root.json
type: object
title: The Root Schema
description: The root schema is the schema that comprises the entire JSON document.
default: {}
required:
- checked
- dimensions
- id
- name
- price
- tags
properties:
checked:
$id: '#/properties/checked'
type: boolean
title: The Checked Schema
description: An explanation about the purpose of this instance.
default: false
examples:
- false
dimensions:
$id: '#/properties/dimensions'
type: object
title: The Dimensions Schema
description: An explanation about the purpose of this instance.
default: {}
examples:
- height: 10
width: 5
required:
- width
- height
properties:
width:
$id: '#/properties/dimensions/properties/width'
type: integer
title: The Width Schema
description: An explanation about the purpose of this instance.
default: 0
examples:
- 5
height:
$id: '#/properties/dimensions/properties/height'
type: integer
title: The Height Schema
description: An explanation about the purpose of this instance.
default: 0
examples:
- 10
id:
$id: '#/properties/id'
type: integer
title: The Id Schema
description: An explanation about the purpose of this instance.
default: 0
examples:
- 1
name:
$id: '#/properties/name'
type: string
title: The Name Schema
description: An explanation about the purpose of this instance.
default: ''
examples:
- A green door
price:
$id: '#/properties/price'
type: number
title: The Price Schema
description: An explanation about the purpose of this instance.
default: 0
examples:
- 12.5
tags:
$id: '#/properties/tags'
type: array
title: The Tags Schema
description: An explanation about the purpose of this instance.
default: []
examples:
- - home
- green
items:
$id: '#/properties/tags/items'
type: string
title: The Items Schema
description: An explanation about the purpose of this instance.
default: ''
examples:
- home
- green