docs-util: fix OAS generation error (#8577)
This commit is contained in:
@@ -106,6 +106,23 @@ servers:
|
||||
- url: https://api.medusa-commerce.com
|
||||
paths: {}
|
||||
components:
|
||||
schemas:
|
||||
Error:
|
||||
title: "Response Error"
|
||||
type: object
|
||||
properties:
|
||||
code:
|
||||
type: string
|
||||
description: A slug code to indicate the type of the error.
|
||||
enum: [invalid_state_error, invalid_request_error, api_error, unknown_error]
|
||||
message:
|
||||
type: string
|
||||
description: Description of the error that occurred.
|
||||
example: "first_name must be a string"
|
||||
type:
|
||||
type: string
|
||||
description: A slug indicating the type of the error.
|
||||
enum: [QueryRunnerAlreadyReleasedError, TransactionAlreadyStartedError, TransactionNotStartedError, conflict, unauthorized, payment_authorization_error, duplicate_error, not_allowed, invalid_data, not_found, database_error, unexpected_state, invalid_argument, unknown_error]
|
||||
responses:
|
||||
default_error:
|
||||
description: Default Error
|
||||
@@ -246,4 +263,4 @@ components:
|
||||
type: apiKey
|
||||
in: cookie
|
||||
name: connect.sid
|
||||
x-displayName: Cookie Session ID
|
||||
x-displayName: Cookie Session ID
|
||||
@@ -47,6 +47,23 @@ servers:
|
||||
- url: https://api.medusa-commerce.com
|
||||
paths: {}
|
||||
components:
|
||||
schemas:
|
||||
Error:
|
||||
title: "Response Error"
|
||||
type: object
|
||||
properties:
|
||||
code:
|
||||
type: string
|
||||
description: A slug code to indicate the type of the error.
|
||||
enum: [invalid_state_error, invalid_request_error, api_error, unknown_error]
|
||||
message:
|
||||
type: string
|
||||
description: Description of the error that occurred.
|
||||
example: "first_name must be a string"
|
||||
type:
|
||||
type: string
|
||||
description: A slug indicating the type of the error.
|
||||
enum: [QueryRunnerAlreadyReleasedError, TransactionAlreadyStartedError, TransactionNotStartedError, conflict, unauthorized, payment_authorization_error, duplicate_error, not_allowed, invalid_data, not_found, database_error, unexpected_state, invalid_argument, unknown_error]
|
||||
responses:
|
||||
default_error:
|
||||
description: Default Error
|
||||
|
||||
Reference in New Issue
Block a user