File tree Expand file tree Collapse file tree 1 file changed +30
-26
lines changed Expand file tree Collapse file tree 1 file changed +30
-26
lines changed Original file line number Diff line number Diff line change 11{
22 "models" : {
3- "Cat" : {
4- "description" : " A representation of a cat" ,
3+ "Cat" : {"$ref" : " #/definitions/cat" },
4+ "Dog" : {"$ref" : " #/definitions/dog" },
5+ "Pet" : {"$ref" : " #/definitions/pet" }
6+ }
7+ },
8+ {
9+ "definitions" : {
10+ "pet" : {
511 "required" : [
6- " huntingSkill "
12+ " name "
713 ],
814 "properties" : {
15+ "name" : {
16+ "type" : " string"
17+ }
18+ }
19+ },
20+ "cat" : {
21+ "description" : " A representation of a cat" ,
22+ "allOf" : [{
23+ "$ref" : " #/definitions/pet" ,
924 "huntingSkill" : {
1025 "type" : " string" ,
1126 "description" : " The measured skill for hunting" ,
1631 " adventerous" ,
1732 " aggressive"
1833 ]
19- }
20- }
34+ },
35+ "required" : [
36+ " huntingSkill"
37+ ]
38+ }]
2139 },
22- "Dog " : {
40+ "dog " : {
2341 "description" : " A representation of a dog" ,
24- "required" : [
25- " packSize"
26- ],
27- "properties" : {
42+ "allOf" : [{
43+ "$ref" : " #/definitions/pet" ,
44+ "required" : [
45+ " packSize"
46+ ],
2847 "packSize" : {
2948 "type" : " integer" ,
3049 "format" : " int32" ,
3150 "description" : " the size of the pack the dog is from" ,
3251 "default" : 0 ,
3352 "min" : 0
3453 }
35- }
36- },
37- "Pet" : {
38- "subTypes" : [
39- " Cat" ,
40- " Dog"
41- ],
42- "discriminator" : " animalType" ,
43- "required" : [
44- " name"
45- ],
46- "properties" : {
47- "name" : {
48- "type" : " string"
49- }
50- }
54+ }]
5155 }
5256 }
5357}
You can’t perform that action at this time.
0 commit comments