api-docs: Add 'code' field to errors for deleting only org owner.

This commit is contained in:
Lauryn Menard
2023-09-01 16:57:07 +02:00
committed by Tim Abbott
parent cb921300ce
commit 3e369bcf96

View File

@@ -8097,9 +8097,10 @@ paths:
application/json: application/json:
schema: schema:
allOf: allOf:
- $ref: "#/components/schemas/JsonError" - $ref: "#/components/schemas/CodedError"
- example: - example:
{ {
"code": "BAD_REQUEST",
"msg": "Cannot deactivate the only organization owner", "msg": "Cannot deactivate the only organization owner",
"result": "error", "result": "error",
} }
@@ -10624,9 +10625,10 @@ paths:
application/json: application/json:
schema: schema:
allOf: allOf:
- $ref: "#/components/schemas/JsonError" - $ref: "#/components/schemas/CodedError"
- example: - example:
{ {
"code": "BAD_REQUEST",
"msg": "Cannot deactivate the only organization owner", "msg": "Cannot deactivate the only organization owner",
"result": "error", "result": "error",
} }