11{
22 "definitions" : {
3- "Cat" : {
4- "description" : " A representation of a cat" ,
5- "allOf" : [
6- { "$ref" : " #/definitions/Pet" },
7- {
8- "properties" : {
9- "huntingSkill" : {
10- "type" : " string" ,
11- "description" : " The measured skill for hunting" ,
12- "default" : " lazy" ,
13- "enum" : [" clueless" , " lazy" , " adventurous" , " aggressive" ]
14- }
15- },
16- "required" : [ " huntingSkill" ]
17- }
18- ]
19- },
20- "Dog" : {
21- "description" : " A representation of a dog" ,
22- "allOf" : [
23- { "$ref" : " #/definitions/Pet" },
24- {
25- "properties" : {
26- "packSize" : {
27- "type" : " integer" ,
28- "format" : " int32" ,
29- "description" : " the size of the pack the dog is from" ,
30- "default" : 0 ,
31- "minimum" : 0
32- }
33- },
34- "required" : [ " name" , " packSize" ]
35- }
36- ]
37- },
38- "Fish" : {
39- "description" : " A representation of a fish" ,
40- "allOf" : [
41- { "$ref" : " #/definitions/Pet" },
42- {
43- "properties" : {
44- "fins" : {
45- "type" : " integer" ,
46- "format" : " int32" ,
47- "description" : " count of fins" ,
48- "minimum" : 0
49- }
50- },
51- "required" : [ " fins" ]
52- }
53- ]
54- },
553 "Pet" : {
564 "discriminator" : " petType" ,
575 "properties" : {
6210 "type" : " string"
6311 }
6412 },
65- "required" : [ " name" , " petType" ]
13+ "required" : [
14+ " name" ,
15+ " petType"
16+ ]
6617 }
18+ },
19+ "Cat" : {
20+ "description" : " A representation of a cat" ,
21+ "allOf" : [
22+ {
23+ "$ref" : " #/definitions/Pet"
24+ },
25+ {
26+ "properties" : {
27+ "huntingSkill" : {
28+ "type" : " string" ,
29+ "description" : " The measured skill for hunting" ,
30+ "default" : " lazy" ,
31+ "enum" : [
32+ " clueless" ,
33+ " lazy" ,
34+ " adventurous" ,
35+ " aggressive"
36+ ]
37+ }
38+ },
39+ "required" : [
40+ " huntingSkill"
41+ ]
42+ }
43+ ]
44+ },
45+ "Dog" : {
46+ "description" : " A representation of a dog" ,
47+ "allOf" : [
48+ {
49+ "$ref" : " #/definitions/Pet"
50+ },
51+ {
52+ "properties" : {
53+ "packSize" : {
54+ "type" : " integer" ,
55+ "format" : " int32" ,
56+ "description" : " the size of the pack the dog is from" ,
57+ "default" : 0 ,
58+ "minimum" : 0
59+ }
60+ },
61+ "required" : [
62+ " packSize"
63+ ]
64+ }
65+ ]
66+ },
67+ "Fish" : {
68+ "description" : " A representation of a fish" ,
69+ "allOf" : [
70+ {
71+ "$ref" : " #/definitions/Pet"
72+ },
73+ {
74+ "properties" : {
75+ "fins" : {
76+ "type" : " integer" ,
77+ "format" : " int32" ,
78+ "description" : " count of fins" ,
79+ "minimum" : 0
80+ }
81+ },
82+ "required" : [
83+ " fins"
84+ ]
85+ }
86+ ]
6787 }
68- }
88+ }
0 commit comments