/
pet.json
102 lines (102 loc) · 2.58 KB
/
pet.json
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
94
95
96
97
98
99
100
101
102
{
"$schema": "http://json-schema.org/schema#",
"title": "pet",
"type": "object",
"properties": {
"userId": {
"type": "string"
},
"id": {
"type": "string"
},
"views": {
"type": "integer"
},
"numbercustom": {
"type": "number",
"minimum": 0,
"maximum": 100,
"multipleOf" : 10,
"exclusiveMaximum": true
},
"name": {
"type": "string",
"minLength": 3,
"maxLength": 30
},
"photoUrls": {
"type": "array"
},
"active": {
"type": "boolean"
},
"color": {
"type": "string",
"examples": [
"black",
"brown",
"gray",
"white"
]
},
"amount":{
"type": "string",
"pattern": "^(0|([1-9]+[0-9]*))(\\.[0-9]{1,2})?$",
"minLength": 1,
"description": "A Monetary Amount",
"examples": [
"0",
"0.00",
"0.05",
"19.95",
"255.5",
"120000"
]
},
"tags": {
"$id": "#/properties/tags",
"type": "array",
"title": "The Tags Schema",
"items": {
"$id": "#/properties/tags/items",
"type": "string",
"title": "The Items Schema",
"default": "",
"examples": [
"home",
"green"
],
"pattern": "^(.*)$"
}
},
"createdAt": {
"type": "string",
"title": "Date and time together, for example, 2018-11-13T20:20:39+00:00",
"format": "date-time"
},
"answerTime": {
"type": "string",
"title": "New in draft 7 Time, for example, 20:20:39+00:00",
"format": "time"
},
"email": {
"type": "string",
"title": "Internet email address, see RFC 5322, section 3.4.1",
"format": "email"
},
"hostname": {
"type": "string",
"title": "Internet host name, see RFC 1034, section 3.1.",
"format": "hostname"
},
"cpf": {
"type": "string",
"title": "CPF",
"format": "cpf"
}
},
"required": [
"name",
"photoUrls"
]
}