File tree 2 files changed +50
-43
lines changed
rest-get/src/test/resources
2 files changed +50
-43
lines changed Original file line number Diff line number Diff line change 1
1
{
2
- "$id" : " https://virtualan.io/pets_json.schema.json" ,
3
- "$schema" : " https://json-schema.org/draft/2020-12/schema" ,
4
- "title" : " Pet" ,
5
- "description" : " Pet" ,
6
- "required" : [
7
- " id" ,
8
- " name"
9
- ],
2
+ "$schema" : " http://json-schema.org/draft-04/schema#" ,
10
3
"type" : " object" ,
11
4
"properties" : {
5
+ "photoUrls" : {
6
+ "type" : " array" ,
7
+ "items" : [
8
+ {
9
+ "type" : " string"
10
+ }
11
+ ]
12
+ },
12
13
"name" : {
13
14
"type" : " string"
14
15
},
15
16
"id" : {
16
17
"type" : " integer"
17
18
},
18
- "status" : {
19
- "type" : " string"
20
- },
21
- "category" : {
22
- "type" : " object" ,
23
- "$ref" : " #/$defs/category"
24
- },
25
- "tags" : {
26
- "type" : " array" ,
27
- "items" : {
28
- "$ref" : " #/$defs/tag"
29
- }
30
- },
31
- "photoUrls" : {
32
- "type" : " array" ,
33
- "items" : {
34
- "type" : " string"
35
- }
36
- }
37
- },
38
- "$defs" : {
39
19
"category" : {
40
20
"type" : " object" ,
41
21
"properties" : {
42
- "id" : {
43
- "type" : " integer"
44
- },
45
22
"name" : {
46
23
"type" : " string"
47
- }
48
- }
49
- },
50
- "tag" : {
51
- "type" : " object" ,
52
- "properties" : {
24
+ },
53
25
"id" : {
54
26
"type" : " integer"
55
- },
56
- "name" : {
57
- "type" : " string"
58
27
}
59
- }
28
+ },
29
+ "required" : [
30
+ " name" ,
31
+ " id"
32
+ ]
33
+ },
34
+ "status" : {
35
+ "type" : " string"
36
+ },
37
+ "status1" : {
38
+ "type" : " string"
39
+ },
40
+ "tags" : {
41
+ "type" : " array" ,
42
+ "items" : [
43
+ {
44
+ "type" : " object" ,
45
+ "properties" : {
46
+ "name" : {
47
+ "type" : " string"
48
+ },
49
+ "id" : {
50
+ "type" : " integer"
51
+ }
52
+ },
53
+ "required" : [
54
+ " name" ,
55
+ " id"
56
+ ]
57
+ }
58
+ ]
60
59
}
61
- }
60
+ },
61
+ "required" : [
62
+ " photoUrls" ,
63
+ " name" ,
64
+ " id" ,
65
+ " category" ,
66
+ " status" ,
67
+ " tags"
68
+ ]
62
69
}
You can’t perform that action at this time.
0 commit comments