File tree Expand file tree Collapse file tree 4 files changed +33
-0
lines changed
guidelines/sample-server/files Expand file tree Collapse file tree 4 files changed +33
-0
lines changed Original file line number Diff line number Diff line change 8181 "format" : " double"
8282 }
8383 }
84+ },
85+ "ErrorMessage" : {
86+ "description" : " A shared model for error message" ,
87+ "required" : [" error-code" ," reason" ],
88+ "properties" : {
89+ "error-code" : {
90+ "type" : " integer" ,
91+ "format" : " int64"
92+ },
93+ "reason" : {
94+ "description" : " the reason for this error" ,
95+ "type" : " string"
96+ },
97+ "description" : {
98+ "description" : " an optional longer description of this error message" ,
99+ "type" : " string"
100+ }
101+ }
84102 }
85103}
Original file line number Diff line number Diff line change 1616 "schema" : {
1717 "$ref" : " http://localhost:8000/models.json#/Health"
1818 }
19+ },
20+ "404" : {
21+ "$ref" : " http://localhost:8000/responses.json#/NotFoundError"
1922 }
2023 }
2124 }
2225 }
2326}
27+
Original file line number Diff line number Diff line change 1+ {
2+ "NotFoundError" : {
3+ "description" : " Entity not found" ,
4+ "schema" : {
5+ "$ref" : " http://localhost:8080/models.json#/ErrorMessage"
6+ }
7+ }
8+ }
Original file line number Diff line number Diff line change 3636 "$ref" : " http://localhost:8000/models.json#/Health"
3737 }
3838 }
39+ },
40+ "404" : {
41+ "$ref" : " http://localhost:8000/responses.json#/NotFoundError"
3942 }
4043 }
4144 }
You can’t perform that action at this time.
0 commit comments