Code Review
/
sdc.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
history
|
raw
|
HEAD
push addional code
[sdc.git]
/
openecomp-be
/
lib
/
openecomp-core-lib
/
openecomp-utilities-lib
/
src
/
test
/
resources
/
jsonUtil
/
json_schema
/
schemaWithInvalidDefault.json
1
{
2
"$schema": "http://json-schema.org/draft-04/schema#",
3
"definitions": {
4
"city": {
5
"type": "string",
6
"enum": [
7
"Tel Aviv",
8
"New York",
9
"London"
10
],
11
"default": "Tel Aviv"
12
}
13
},
14
"type": "object",
15
"properties": {
16
"address": {
17
"type": "object",
18
"properties": {
19
"streetAddress": {
20
"type": "string",
21
"default" : 7
22
},
23
"city": {
24
"$ref": "#/definitions/city"
25
}
26
},
27
"required": [
28
"streetAddress",
29
"city"
30
]
31
},
32
"phoneNumber": {
33
"type": "array",
34
"items": {
35
"type": "object",
36
"properties": {
37
"location": {
38
"type": "string"
39
},
40
"code": {
41
"type": "integer",
42
"default": 777
43
}
44
},
45
"required": [
46
"location",
47
"code"
48
]
49
},
50
"default": [
51
{
52
"location": "Home",
53
"code": 1
54
},
55
{
56
"location": "Office",
57
"code": 2
58
}
59
]
60
},
61
"cityOfBirth" : { "$ref" : "#/definitions/city"}
62
},
63
"required": [
64
"address",
65
"phoneNumber"
66
]
67
}