Skip to content

Commit 9ff6378

Browse files
authored
remove result from api-response-collection (#21)
* remove `result` from `api-response-collection` and `api-response-single` `result` shouldn't ever have a default value (let alone an ambiguous one!) which teams are including as part of their response objects. Instead, we'll remove this and enforce that services define their own `result` without flattening.
1 parent 8349bcf commit 9ff6378

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

common.yaml

-9
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,6 @@ components:
4949
allOf:
5050
- $ref: "#/components/schemas/api-response-common"
5151
- properties:
52-
result:
53-
type: array
54-
nullable: true
55-
items: {}
5652
result_info:
5753
$ref: "#/components/schemas/result_info"
5854
messages:
@@ -139,11 +135,6 @@ components:
139135
type: object
140136
allOf:
141137
- $ref: "#/components/schemas/api-response-common"
142-
- properties:
143-
result:
144-
anyOf:
145-
- type: object
146-
- type: string
147138

148139
# Account
149140
account:

0 commit comments

Comments
 (0)