diff --git a/app/Console/Commands/OpenApiYaml.php b/app/Console/Commands/OpenApiYaml.php index 06ea62e50eaf..5c22ad0c8487 100644 --- a/app/Console/Commands/OpenApiYaml.php +++ b/app/Console/Commands/OpenApiYaml.php @@ -79,9 +79,18 @@ class OpenApiYaml extends Command } } - - Storage::disk('base')->append('/openapi/api-docs.yaml', file_get_contents($path.'/components.yaml')); + + Storage::disk('base')->append('/openapi/api-docs.yaml', file_get_contents($path.'/components/responses.yaml')); + + $directory = new DirectoryIterator($path . '/components/responses/'); + + foreach ($directory as $file) { + if ($file->isFile() && ! $file->isDot()) { + Storage::disk('base')->append('/openapi/api-docs.yaml', file_get_contents("{$path}/components/responses/{$file->getFilename()}")); + } + } + Storage::disk('base')->append('/openapi/api-docs.yaml', file_get_contents($path.'/components/schemas.yaml')); //iterate schemas @@ -94,6 +103,7 @@ class OpenApiYaml extends Command } } + // Storage::disk('base')->append('/openapi/api-docs.yaml', file_get_contents($path.'/components/schemas/account.yaml')); Storage::disk('base')->append('/openapi/api-docs.yaml', file_get_contents($path.'/misc/misc.yaml')); } diff --git a/openapi/api-docs.yaml b/openapi/api-docs.yaml index 8cc1473948d5..e198184e4d84 100644 --- a/openapi/api-docs.yaml +++ b/openapi/api-docs.yaml @@ -52,11 +52,7 @@ paths: schema: $ref: '#/components/schemas/Client' 401: - description: 'Authentication error' - content: - application/json: - schema: - $ref: '#components/schemas/AuthenticationError' + $ref: '#/components/responses/401' 403: $ref: '#/components/responses/403' 422: @@ -95,11 +91,7 @@ paths: 404: description: "No file exists for the given record" 401: - description: 'Authentication error' - content: - application/json: - schema: - $ref: '#components/schemas/AuthenticationError' + $ref: '#/components/responses/401' 403: $ref: '#/components/responses/403' 422: @@ -154,11 +146,7 @@ paths: schema: $ref: '#/components/schemas/Client' 401: - description: 'Authentication error' - content: - application/json: - schema: - $ref: '#components/schemas/AuthenticationError' + $ref: '#/components/responses/401' 403: $ref: '#/components/responses/403' 422: @@ -204,21 +192,13 @@ paths: schema: $ref: "#/components/schemas/CompanyUser" 401: - description: 'Authentication error' - content: - application/json: - schema: - $ref: '#components/schemas/AuthenticationError' + $ref: '#/components/responses/401' 403: $ref: '#/components/responses/403' 422: $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/yodlee/refresh: post: tags: @@ -244,21 +224,13 @@ paths: schema: $ref: "#/components/schemas/Credit" 401: - description: 'Authentication error' - content: - application/json: - schema: - $ref: '#components/schemas/AuthenticationError' + $ref: '#/components/responses/401' 403: $ref: '#/components/responses/403' 422: $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/bank_integrations: get: tags: @@ -294,21 +266,13 @@ paths: schema: $ref: "#/components/schemas/BankIntegration" 401: - description: 'Authentication error' - content: - application/json: - schema: - $ref: '#components/schemas/AuthenticationError' + $ref: '#/components/responses/401' 403: $ref: '#/components/responses/403' 422: $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' post: tags: - bank_integrations @@ -334,21 +298,13 @@ paths: schema: $ref: "#/components/schemas/BankIntegration" 401: - description: 'Authentication error' - content: - application/json: - schema: - $ref: '#components/schemas/AuthenticationError' + $ref: '#/components/responses/401' 403: $ref: '#/components/responses/403' 422: $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/bank_integrations/{id}": get: tags: @@ -383,21 +339,13 @@ paths: schema: $ref: "#/components/schemas/BankIntegration" 401: - description: 'Authentication error' - content: - application/json: - schema: - $ref: '#components/schemas/AuthenticationError' + $ref: '#/components/responses/401' 403: $ref: '#/components/responses/403' 422: $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' put: tags: - bank_integrations @@ -431,21 +379,13 @@ paths: schema: $ref: "#/components/schemas/BankIntegration" 401: - description: 'Authentication error' - content: - application/json: - schema: - $ref: '#components/schemas/AuthenticationError' + $ref: '#/components/responses/401' 403: $ref: '#/components/responses/403' 422: $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' delete: tags: - bank_integrations @@ -475,21 +415,13 @@ paths: X-RateLimit-Limit: $ref: "#/components/headers/X-RateLimit-Limit" 401: - description: 'Authentication error' - content: - application/json: - schema: - $ref: '#components/schemas/AuthenticationError' + $ref: '#/components/responses/401' 403: $ref: '#/components/responses/403' 422: $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/bank_integrations/{id}/edit": get: tags: @@ -524,21 +456,13 @@ paths: schema: $ref: "#/components/schemas/BankIntegration" 401: - description: 'Authentication error' - content: - application/json: - schema: - $ref: '#components/schemas/AuthenticationError' + $ref: '#/components/responses/401' 403: $ref: '#/components/responses/403' 422: $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/bank_integrations/create: get: tags: @@ -565,21 +489,13 @@ paths: schema: $ref: "#/components/schemas/BankIntegration" 401: - description: 'Authentication error' - content: - application/json: - schema: - $ref: '#components/schemas/AuthenticationError' + $ref: '#/components/responses/401' 403: $ref: '#/components/responses/403' 422: $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/bank_integrations/bulk: post: tags: @@ -612,18 +528,14 @@ paths: $ref: "#/components/headers/X-RateLimit-Remaining" X-RateLimit-Limit: $ref: "#/components/headers/X-RateLimit-Limit" + 401: + $ref: '#/components/responses/401' + 403: + $ref: '#/components/responses/403' 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/bank_integrations/refresh_accounts: post: tags: @@ -649,18 +561,14 @@ paths: application/json: schema: $ref: "#/components/schemas/BankIntegration" + 401: + $ref: '#/components/responses/401' + 403: + $ref: '#/components/responses/403' 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/bank_integrations/remove_account/account_id: post: tags: @@ -686,18 +594,14 @@ paths: application/json: schema: $ref: "#/components/schemas/BankIntegration" + 401: + $ref: '#/components/responses/401' + 403: + $ref: '#/components/responses/403' 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/bank_integrations/get_transactions/account_id: post: tags: @@ -723,18 +627,14 @@ paths: application/json: schema: $ref: "#/components/schemas/BankIntegration" + 401: + $ref: '#/components/responses/401' + 403: + $ref: '#/components/responses/403' 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/bank_transactions: get: tags: @@ -769,18 +669,14 @@ paths: application/json: schema: $ref: "#/components/schemas/BankTransaction" + 401: + $ref: '#/components/responses/401' + 403: + $ref: '#/components/responses/403' 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' post: tags: - bank_transactions @@ -805,18 +701,14 @@ paths: application/json: schema: $ref: "#/components/schemas/BankTransaction" + 401: + $ref: '#/components/responses/401' + 403: + $ref: '#/components/responses/403' 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/bank_transactions/{id}": get: tags: @@ -850,18 +742,14 @@ paths: application/json: schema: $ref: "#/components/schemas/BankTransaction" + 401: + $ref: '#/components/responses/401' + 403: + $ref: '#/components/responses/403' 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' put: tags: - bank_transactions @@ -894,18 +782,14 @@ paths: application/json: schema: $ref: "#/components/schemas/BankTransaction" + 401: + $ref: '#/components/responses/401' + 403: + $ref: '#/components/responses/403' 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' delete: tags: - bank_transactions @@ -934,18 +818,14 @@ paths: $ref: "#/components/headers/X-RateLimit-Remaining" X-RateLimit-Limit: $ref: "#/components/headers/X-RateLimit-Limit" + 401: + $ref: '#/components/responses/401' + 403: + $ref: '#/components/responses/403' 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/bank_transactions/{id}/edit": get: tags: @@ -979,18 +859,14 @@ paths: application/json: schema: $ref: "#/components/schemas/BankTransaction" + 401: + $ref: '#/components/responses/401' + 403: + $ref: '#/components/responses/403' 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/bank_transactions/create: get: tags: @@ -1016,18 +892,14 @@ paths: application/json: schema: $ref: "#/components/schemas/BankTransaction" + 401: + $ref: '#/components/responses/401' + 403: + $ref: '#/components/responses/403' 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/bank_transations/bulk: post: tags: @@ -1060,18 +932,14 @@ paths: $ref: "#/components/headers/X-RateLimit-Remaining" X-RateLimit-Limit: $ref: "#/components/headers/X-RateLimit-Limit" + 401: + $ref: '#/components/responses/401' + 403: + $ref: '#/components/responses/403' 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/bank_transations/match: post: tags: @@ -1104,18 +972,14 @@ paths: $ref: "#/components/headers/X-RateLimit-Remaining" X-RateLimit-Limit: $ref: "#/components/headers/X-RateLimit-Limit" + 401: + $ref: '#/components/responses/401' + 403: + $ref: '#/components/responses/403' 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/bank_transaction_rules: get: tags: @@ -1150,18 +1014,14 @@ paths: application/json: schema: $ref: "#/components/schemas/BankTransactionRule" + 401: + $ref: '#/components/responses/401' + 403: + $ref: '#/components/responses/403' 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' post: tags: - bank_transaction_rules @@ -1186,18 +1046,14 @@ paths: application/json: schema: $ref: "#/components/schemas/BankTransactionRule" + 401: + $ref: '#/components/responses/401' + 403: + $ref: '#/components/responses/403' 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/bank_transaction_rules/{id}": get: tags: @@ -1231,18 +1087,14 @@ paths: application/json: schema: $ref: "#/components/schemas/BankTransactionRule" + 401: + $ref: '#/components/responses/401' + 403: + $ref: '#/components/responses/403' 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' put: tags: - bank_transaction_rules @@ -1275,18 +1127,14 @@ paths: application/json: schema: $ref: "#/components/schemas/BankTransactionRule" + 401: + $ref: '#/components/responses/401' + 403: + $ref: '#/components/responses/403' 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' delete: tags: - bank_transaction_rules @@ -1315,18 +1163,14 @@ paths: $ref: "#/components/headers/X-RateLimit-Remaining" X-RateLimit-Limit: $ref: "#/components/headers/X-RateLimit-Limit" + 401: + $ref: '#/components/responses/401' + 403: + $ref: '#/components/responses/403' 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/bank_transaction_rules/{id}/edit": get: tags: @@ -1360,18 +1204,14 @@ paths: application/json: schema: $ref: "#/components/schemas/BankTransactionRule" + 401: + $ref: '#/components/responses/401' + 403: + $ref: '#/components/responses/403' 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/bank_transaction_rules/create: get: tags: @@ -1397,18 +1237,14 @@ paths: application/json: schema: $ref: "#/components/schemas/BankTransactionRule" + 401: + $ref: '#/components/responses/401' + 403: + $ref: '#/components/responses/403' 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/bank_transation_rules/bulk: post: tags: @@ -1441,18 +1277,14 @@ paths: $ref: "#/components/headers/X-RateLimit-Remaining" X-RateLimit-Limit: $ref: "#/components/headers/X-RateLimit-Limit" + 401: + $ref: '#/components/responses/401' + 403: + $ref: '#/components/responses/403' 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/charts/totals: post: tags: @@ -1484,17 +1316,9 @@ paths: X-RateLimit-Limit: $ref: "#/components/headers/X-RateLimit-Limit" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/client_gateway_tokens: get: @@ -1522,18 +1346,14 @@ paths: application/json: schema: $ref: "#/components/schemas/ClientGatewayToken" + 401: + $ref: '#/components/responses/401' + 403: + $ref: '#/components/responses/403' 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' post: tags: - client_gateway_tokens @@ -1558,18 +1378,14 @@ paths: application/json: schema: $ref: "#/components/schemas/ClientGatewayToken" + 401: + $ref: '#/components/responses/401' + 403: + $ref: '#/components/responses/403' 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/client_gateway_tokens/{id}": get: tags: @@ -1603,18 +1419,14 @@ paths: application/json: schema: $ref: "#/components/schemas/ClientGatewayToken" + 401: + $ref: '#/components/responses/401' + 403: + $ref: '#/components/responses/403' 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' put: tags: - client_gateway_tokens @@ -1647,18 +1459,14 @@ paths: application/json: schema: $ref: "#/components/schemas/ClientGatewayToken" + 401: + $ref: '#/components/responses/401' + 403: + $ref: '#/components/responses/403' 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' delete: tags: - client_gateway_tokens @@ -1687,18 +1495,14 @@ paths: $ref: "#/components/headers/X-RateLimit-Remaining" X-RateLimit-Limit: $ref: "#/components/headers/X-RateLimit-Limit" + 401: + $ref: '#/components/responses/401' + 403: + $ref: '#/components/responses/403' 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/client_gateway_tokens/{id}/edit": get: tags: @@ -1732,18 +1536,14 @@ paths: application/json: schema: $ref: "#/components/schemas/ClientGatewayToken" + 401: + $ref: '#/components/responses/401' + 403: + $ref: '#/components/responses/403' 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/client_gateway_tokens/create: get: tags: @@ -1769,18 +1569,14 @@ paths: application/json: schema: $ref: "#/components/schemas/ClientGatewayToken" + 401: + $ref: '#/components/responses/401' + 403: + $ref: '#/components/responses/403' 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/companies: get: @@ -1807,18 +1603,14 @@ paths: application/json: schema: $ref: "#/components/schemas/Company" + 401: + $ref: '#/components/responses/401' + 403: + $ref: '#/components/responses/403' 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' post: tags: - companies @@ -1843,18 +1635,14 @@ paths: application/json: schema: $ref: "#/components/schemas/Company" + 401: + $ref: '#/components/responses/401' + 403: + $ref: '#/components/responses/403' 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/companies/create: get: tags: @@ -1880,18 +1668,14 @@ paths: application/json: schema: $ref: "#/components/schemas/Company" + 401: + $ref: '#/components/responses/401' + 403: + $ref: '#/components/responses/403' 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/companies/{id}": get: tags: @@ -1925,18 +1709,14 @@ paths: application/json: schema: $ref: "#/components/schemas/Company" + 401: + $ref: '#/components/responses/401' + 403: + $ref: '#/components/responses/403' 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' put: tags: - companies @@ -1969,18 +1749,14 @@ paths: application/json: schema: $ref: "#/components/schemas/Company" + 401: + $ref: '#/components/responses/401' + 403: + $ref: '#/components/responses/403' 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' delete: tags: - companies @@ -2009,18 +1785,14 @@ paths: $ref: "#/components/headers/X-RateLimit-Remaining" X-RateLimit-Limit: $ref: "#/components/headers/X-RateLimit-Limit" + 401: + $ref: '#/components/responses/401' + 403: + $ref: '#/components/responses/403' 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/companies/{id}/edit": get: tags: @@ -2054,18 +1826,14 @@ paths: application/json: schema: $ref: "#/components/schemas/Company" + 401: + $ref: '#/components/responses/401' + 403: + $ref: '#/components/responses/403' 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/companies/{id}/upload": put: tags: @@ -2099,18 +1867,14 @@ paths: application/json: schema: $ref: "#/components/schemas/Company" + 401: + $ref: '#/components/responses/401' + 403: + $ref: '#/components/responses/403' 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/companies/{company}/default": post: tags: @@ -2144,18 +1908,14 @@ paths: application/json: schema: $ref: "#/components/schemas/Company" + 401: + $ref: '#/components/responses/401' + 403: + $ref: '#/components/responses/403' 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/company_gateways: get: tags: @@ -2181,18 +1941,14 @@ paths: application/json: schema: $ref: "#/components/schemas/CompanyGateway" + 401: + $ref: '#/components/responses/401' + 403: + $ref: '#/components/responses/403' 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' post: tags: - company_gateways @@ -2218,17 +1974,9 @@ paths: schema: $ref: "#/components/schemas/CompanyGateway" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/company_gateways/create: get: tags: @@ -2254,18 +2002,14 @@ paths: application/json: schema: $ref: "#/components/schemas/CompanyGateway" + 401: + $ref: '#/components/responses/401' + 403: + $ref: '#/components/responses/403' 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/company_gateways/{id}": get: tags: @@ -2299,18 +2043,14 @@ paths: application/json: schema: $ref: "#/components/schemas/CompanyGateway" + 401: + $ref: '#/components/responses/401' + 403: + $ref: '#/components/responses/403' 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' put: tags: - company_gateways @@ -2343,18 +2083,14 @@ paths: application/json: schema: $ref: "#/components/schemas/CompanyGateway" + 401: + $ref: '#/components/responses/401' + 403: + $ref: '#/components/responses/403' 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' delete: tags: - company_gateways @@ -2383,18 +2119,14 @@ paths: $ref: "#/components/headers/X-RateLimit-Remaining" X-RateLimit-Limit: $ref: "#/components/headers/X-RateLimit-Limit" + 401: + $ref: '#/components/responses/401' + 403: + $ref: '#/components/responses/403' 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/company_gateways/{id}/edit": get: tags: @@ -2428,18 +2160,14 @@ paths: application/json: schema: $ref: "#/components/schemas/CompanyGateway" + 401: + $ref: '#/components/responses/401' + 403: + $ref: '#/components/responses/403' 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/company_gateways/bulk: post: tags: @@ -2476,18 +2204,14 @@ paths: application/json: schema: $ref: "#/components/schemas/CompanyGateway" + 401: + $ref: '#/components/responses/401' + 403: + $ref: '#/components/responses/403' 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/company_ledger: get: tags: @@ -2513,18 +2237,14 @@ paths: application/json: schema: $ref: "#/components/schemas/CompanyLedger" + 401: + $ref: '#/components/responses/401' + 403: + $ref: '#/components/responses/403' 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/company_users: post: tags: @@ -2548,18 +2268,14 @@ paths: application/json: schema: $ref: "#/components/schemas/CompanyUser" + 401: + $ref: '#/components/responses/401' + 403: + $ref: '#/components/responses/403' 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/connected_account: post: tags: @@ -2587,18 +2303,14 @@ paths: application/json: schema: $ref: "#/components/schemas/User" + 401: + $ref: '#/components/responses/401' + 403: + $ref: '#/components/responses/403' 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/credits: get: tags: @@ -2624,18 +2336,14 @@ paths: application/json: schema: $ref: "#/components/schemas/Credit" + 401: + $ref: '#/components/responses/401' + 403: + $ref: '#/components/responses/403' 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' post: tags: - credits @@ -2660,18 +2368,14 @@ paths: application/json: schema: $ref: "#/components/schemas/Credit" + 401: + $ref: '#/components/responses/401' + 403: + $ref: '#/components/responses/403' 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/credits/create: get: tags: @@ -2697,18 +2401,14 @@ paths: application/json: schema: $ref: "#/components/schemas/Credit" + 401: + $ref: '#/components/responses/401' + 403: + $ref: '#/components/responses/403' 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/credits/{id}": get: tags: @@ -2742,18 +2442,14 @@ paths: application/json: schema: $ref: "#/components/schemas/Credit" + 401: + $ref: '#/components/responses/401' + 403: + $ref: '#/components/responses/403' 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' put: tags: - Credits @@ -2786,18 +2482,14 @@ paths: application/json: schema: $ref: "#/components/schemas/Credit" + 401: + $ref: '#/components/responses/401' + 403: + $ref: '#/components/responses/403' 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' delete: tags: - credits @@ -2826,18 +2518,14 @@ paths: $ref: "#/components/headers/X-RateLimit-Remaining" X-RateLimit-Limit: $ref: "#/components/headers/X-RateLimit-Limit" + 401: + $ref: '#/components/responses/401' + 403: + $ref: '#/components/responses/403' 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/credits/{id}/edit": get: tags: @@ -2871,18 +2559,14 @@ paths: application/json: schema: $ref: "#/components/schemas/Invoice" + 401: + $ref: '#/components/responses/401' + 403: + $ref: '#/components/responses/403' 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/credits/bulk: post: tags: @@ -2915,18 +2599,14 @@ paths: $ref: "#/components/headers/X-RateLimit-Remaining" X-RateLimit-Limit: $ref: "#/components/headers/X-RateLimit-Limit" + 401: + $ref: '#/components/responses/401' + 403: + $ref: '#/components/responses/403' 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/credit/{invitation_key}/download": get: tags: @@ -2956,18 +2636,14 @@ paths: $ref: "#/components/headers/X-RateLimit-Remaining" X-RateLimit-Limit: $ref: "#/components/headers/X-RateLimit-Limit" + 401: + $ref: '#/components/responses/401' + 403: + $ref: '#/components/responses/403' 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/credits/{id}/upload": put: tags: @@ -3001,18 +2677,14 @@ paths: application/json: schema: $ref: "#/components/schemas/Credit" + 401: + $ref: '#/components/responses/401' + 403: + $ref: '#/components/responses/403' 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/designs: get: tags: @@ -3039,18 +2711,14 @@ paths: application/json: schema: $ref: "#/components/schemas/Design" + 401: + $ref: '#/components/responses/401' + 403: + $ref: '#/components/responses/403' 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' post: tags: - designs @@ -3075,18 +2743,14 @@ paths: application/json: schema: $ref: "#/components/schemas/Design" + 401: + $ref: '#/components/responses/401' + 403: + $ref: '#/components/responses/403' 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/designs/{id}": get: tags: @@ -3120,18 +2784,14 @@ paths: application/json: schema: $ref: "#/components/schemas/Design" + 401: + $ref: '#/components/responses/401' + 403: + $ref: '#/components/responses/403' 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' put: tags: - designs @@ -3164,18 +2824,14 @@ paths: application/json: schema: $ref: "#/components/schemas/Design" + 401: + $ref: '#/components/responses/401' + 403: + $ref: '#/components/responses/403' 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' delete: tags: - designs @@ -3205,17 +2861,9 @@ paths: X-RateLimit-Limit: $ref: "#/components/headers/X-RateLimit-Limit" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/designs/{id}/edit": get: tags: @@ -3250,17 +2898,9 @@ paths: schema: $ref: "#/components/schemas/Design" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/designs/create: get: tags: @@ -3287,17 +2927,9 @@ paths: schema: $ref: "#/components/schemas/Design" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/designs/bulk: post: tags: @@ -3335,17 +2967,9 @@ paths: schema: $ref: "#/components/schemas/Design" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/documents: get: tags: @@ -3373,17 +2997,9 @@ paths: schema: $ref: "#/components/schemas/Document" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/emails: post: tags: @@ -3431,17 +3047,9 @@ paths: schema: $ref: "#/components/schemas/Template" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/expense_categories: get: tags: @@ -3466,17 +3074,9 @@ paths: schema: $ref: "#/components/schemas/ExpenseCategory" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' post: tags: - expense_categories @@ -3502,17 +3102,9 @@ paths: schema: $ref: "#/components/schemas/ExpenseCategory" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/expense_categories/create: get: tags: @@ -3538,17 +3130,9 @@ paths: schema: $ref: "#/components/schemas/ExpenseCategory" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/expense_categories/{id}": get: tags: @@ -3582,17 +3166,9 @@ paths: schema: $ref: "#/components/schemas/ExpenseCategory" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' put: tags: - expense_categories @@ -3625,17 +3201,9 @@ paths: schema: $ref: "#/components/schemas/ExpenseCategory" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' delete: tags: - expense_categories @@ -3664,17 +3232,9 @@ paths: X-RateLimit-Limit: $ref: "#/components/headers/X-RateLimit-Limit" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/expense_categories/{id}/edit": get: tags: @@ -3708,17 +3268,9 @@ paths: schema: $ref: "#/components/schemas/ExpenseCategory" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/expense_categories/bulk: post: tags: @@ -3756,17 +3308,9 @@ paths: schema: $ref: "#/components/schemas/Webhook" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/expenses: get: tags: @@ -3794,17 +3338,9 @@ paths: schema: $ref: "#/components/schemas/Expense" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' post: tags: - expenses @@ -3830,17 +3366,9 @@ paths: schema: $ref: "#/components/schemas/Expense" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/expenses/{id}": get: tags: @@ -3875,17 +3403,9 @@ paths: schema: $ref: "#/components/schemas/Expense" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' put: tags: - expenses @@ -3919,17 +3439,9 @@ paths: schema: $ref: "#/components/schemas/Expense" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' delete: tags: - expenses @@ -3959,17 +3471,9 @@ paths: X-RateLimit-Limit: $ref: "#/components/headers/X-RateLimit-Limit" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/expenses/{id}/edit": get: tags: @@ -4004,17 +3508,9 @@ paths: schema: $ref: "#/components/schemas/Expense" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/expenses/create: get: tags: @@ -4041,17 +3537,9 @@ paths: schema: $ref: "#/components/schemas/Expense" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/expenses/bulk: post: tags: @@ -4089,17 +3577,9 @@ paths: schema: $ref: "#/components/schemas/Expense" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/expenses/{id}/upload": put: tags: @@ -4134,17 +3614,9 @@ paths: schema: $ref: "#/components/schemas/Expense" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/export: post: tags: @@ -4165,17 +3637,9 @@ paths: X-RateLimit-Limit: $ref: "#/components/headers/X-RateLimit-Limit" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/group_settings: get: tags: @@ -4202,17 +3666,9 @@ paths: schema: $ref: "#/components/schemas/GroupSetting" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' post: tags: - group_settings @@ -4238,17 +3694,9 @@ paths: schema: $ref: "#/components/schemas/GroupSetting" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/group_settings/create: get: tags: @@ -4275,17 +3723,9 @@ paths: schema: $ref: "#/components/schemas/GroupSetting" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/group_settings/{id}": get: tags: @@ -4320,17 +3760,9 @@ paths: schema: $ref: "#/components/schemas/GroupSetting" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' put: tags: - group_settings @@ -4364,17 +3796,9 @@ paths: schema: $ref: "#/components/schemas/GroupSetting" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' delete: tags: - group_settings @@ -4404,17 +3828,9 @@ paths: X-RateLimit-Limit: $ref: "#/components/headers/X-RateLimit-Limit" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/group_settings/{id}/edit": get: tags: @@ -4449,17 +3865,9 @@ paths: schema: $ref: "#/components/schemas/GroupSetting" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/group_settings/bulk: post: tags: @@ -4493,17 +3901,9 @@ paths: X-RateLimit-Limit: $ref: "#/components/headers/X-RateLimit-Limit" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/group_settings/{id}/upload": put: tags: @@ -4538,17 +3938,9 @@ paths: schema: $ref: "#/components/schemas/Invoice" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/preimport: post: tags: @@ -4579,17 +3971,9 @@ paths: X-RateLimit-Limit: $ref: "#/components/headers/X-RateLimit-Limit" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/import_json: post: tags: @@ -4610,17 +3994,9 @@ paths: X-RateLimit-Limit: $ref: "#/components/headers/X-RateLimit-Limit" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/apple/confirm_purchase: post: tags: @@ -4643,17 +4019,9 @@ paths: X-RateLimit-Limit: $ref: "#/components/headers/X-RateLimit-Limit" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/apple/process_webhook: post: tags: @@ -4676,17 +4044,9 @@ paths: X-RateLimit-Limit: $ref: "#/components/headers/X-RateLimit-Limit" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/invoices: get: tags: @@ -4713,17 +4073,9 @@ paths: schema: $ref: "#/components/schemas/Invoice" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' post: tags: - invoices @@ -4755,17 +4107,9 @@ paths: schema: $ref: "#/components/schemas/Invoice" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/invoices/create: get: tags: @@ -4792,17 +4136,9 @@ paths: schema: $ref: "#/components/schemas/Invoice" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/invoices/{id}": get: tags: @@ -4837,17 +4173,9 @@ paths: schema: $ref: "#/components/schemas/Invoice" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' put: tags: - invoices @@ -4881,17 +4209,9 @@ paths: schema: $ref: "#/components/schemas/Invoice" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' delete: tags: - invoices @@ -4921,17 +4241,9 @@ paths: X-RateLimit-Limit: $ref: "#/components/headers/X-RateLimit-Limit" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/invoices/{id}/edit": get: tags: @@ -4966,17 +4278,9 @@ paths: schema: $ref: "#/components/schemas/Invoice" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/invoices/bulk: post: tags: @@ -5010,17 +4314,9 @@ paths: X-RateLimit-Limit: $ref: "#/components/headers/X-RateLimit-Limit" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/invoices/{id}/{action}": get: tags: @@ -5063,17 +4359,9 @@ paths: schema: $ref: "#/components/schemas/Invoice" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/invoice/{invitation_key}/download": get: tags: @@ -5104,17 +4392,9 @@ paths: X-RateLimit-Limit: $ref: "#/components/headers/X-RateLimit-Limit" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/invoices/{id}/delivery_note": get: tags: @@ -5145,17 +4425,9 @@ paths: X-RateLimit-Limit: $ref: "#/components/headers/X-RateLimit-Limit" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/invoices/{id}/upload": put: tags: @@ -5190,17 +4462,9 @@ paths: schema: $ref: "#/components/schemas/Invoice" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/claim_license: get: tags: @@ -5237,17 +4501,9 @@ paths: X-RateLimit-Limit: $ref: "#/components/headers/X-RateLimit-Limit" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/logout: post: tags: @@ -5271,17 +4527,9 @@ paths: X-RateLimit-Limit: $ref: "#/components/headers/X-RateLimit-Limit" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/migration/purge/{company}": post: tags: @@ -5311,17 +4559,9 @@ paths: X-RateLimit-Limit: $ref: "#/components/headers/X-RateLimit-Limit" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/migration/purge_save_settings/{company}": post: tags: @@ -5351,17 +4591,9 @@ paths: X-RateLimit-Limit: $ref: "#/components/headers/X-RateLimit-Limit" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/migration/start: post: tags: @@ -5392,17 +4624,9 @@ paths: X-RateLimit-Limit: $ref: "#/components/headers/X-RateLimit-Limit" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/one_time_token: post: tags: @@ -5423,17 +4647,9 @@ paths: X-RateLimit-Limit: $ref: "#/components/headers/X-RateLimit-Limit" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/payments: get: tags: @@ -5460,17 +4676,9 @@ paths: schema: $ref: "#/components/schemas/Payment" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' post: tags: - payments @@ -5503,17 +4711,9 @@ paths: schema: $ref: "#/components/schemas/Payment" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/payments/create: get: tags: @@ -5540,17 +4740,9 @@ paths: schema: $ref: "#/components/schemas/Payment" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/payments/{id}": get: tags: @@ -5585,17 +4777,9 @@ paths: schema: $ref: "#/components/schemas/Payment" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' put: tags: - payments @@ -5629,17 +4813,9 @@ paths: schema: $ref: "#/components/schemas/Payment" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' delete: tags: - payments @@ -5669,17 +4845,9 @@ paths: X-RateLimit-Limit: $ref: "#/components/headers/X-RateLimit-Limit" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/payments/{id}/edit": get: tags: @@ -5714,17 +4882,9 @@ paths: schema: $ref: "#/components/schemas/Payment" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/payments/bulk: post: tags: @@ -5762,17 +4922,9 @@ paths: schema: $ref: "#/components/schemas/Payment" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/payments/{id}/{action}": get: tags: @@ -5815,17 +4967,9 @@ paths: schema: $ref: "#/components/schemas/Payment" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/payments/refund: post: tags: @@ -5859,17 +5003,9 @@ paths: schema: $ref: "#/components/schemas/Payment" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/payments/{id}/upload": put: tags: @@ -5904,17 +5040,9 @@ paths: schema: $ref: "#/components/schemas/Payment" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/payment_terms: get: tags: @@ -5942,17 +5070,9 @@ paths: schema: $ref: "#/components/schemas/PaymentTerm" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' post: tags: - payment_terms @@ -5985,17 +5105,9 @@ paths: schema: $ref: "#/components/schemas/PaymentTerm" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/payment_terms/create: get: tags: @@ -6022,17 +5134,9 @@ paths: schema: $ref: "#/components/schemas/Payment" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/payment_terms/{id}": get: tags: @@ -6067,17 +5171,9 @@ paths: schema: $ref: "#/components/schemas/PaymentTerm" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' put: tags: - payment_terms @@ -6111,17 +5207,9 @@ paths: schema: $ref: "#/components/schemas/PaymentTerm" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' delete: tags: - payment_termss @@ -6151,17 +5239,9 @@ paths: X-RateLimit-Limit: $ref: "#/components/headers/X-RateLimit-Limit" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/payment_terms/{id}/edit": get: tags: @@ -6196,17 +5276,9 @@ paths: schema: $ref: "#/components/schemas/PaymentTerm" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/payment_terms/bulk: post: tags: @@ -6244,17 +5316,9 @@ paths: schema: $ref: "#/components/schemas/PaymentTerm" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/ping: get: tags: @@ -6319,17 +5383,9 @@ paths: schema: $ref: "#/components/schemas/Credit" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/preview: post: tags: @@ -6350,17 +5406,9 @@ paths: X-RateLimit-Limit: $ref: "#/components/headers/X-RateLimit-Limit" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/preview/purchase_order: post: tags: @@ -6381,17 +5429,9 @@ paths: X-RateLimit-Limit: $ref: "#/components/headers/X-RateLimit-Limit" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/projects: get: @@ -6420,17 +5460,9 @@ paths: schema: $ref: "#/components/schemas/Project" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' post: tags: - projects @@ -6456,17 +5488,9 @@ paths: schema: $ref: "#/components/schemas/Project" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/projects/{id}": get: tags: @@ -6501,17 +5525,9 @@ paths: schema: $ref: "#/components/schemas/Project" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' put: tags: - projects @@ -6545,17 +5561,9 @@ paths: schema: $ref: "#/components/schemas/Project" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' delete: tags: - projects @@ -6585,17 +5593,9 @@ paths: X-RateLimit-Limit: $ref: "#/components/headers/X-RateLimit-Limit" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/projects/{id}/edit": get: tags: @@ -6630,17 +5630,9 @@ paths: schema: $ref: "#/components/schemas/Project" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/projects/create: get: tags: @@ -6667,17 +5659,9 @@ paths: schema: $ref: "#/components/schemas/Project" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/projects/bulk: post: tags: @@ -6715,17 +5699,9 @@ paths: schema: $ref: "#/components/schemas/Project" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/projects/{id}/upload": put: tags: @@ -6760,17 +5736,9 @@ paths: schema: $ref: "#/components/schemas/Project" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/purchase_orders: get: tags: @@ -6797,17 +5765,9 @@ paths: schema: $ref: "#/components/schemas/Credit" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' post: tags: - purhcase_orders @@ -6833,17 +5793,9 @@ paths: schema: $ref: "#/components/schemas/Credit" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/purchase_orders/create: get: tags: @@ -6870,17 +5822,9 @@ paths: schema: $ref: "#/components/schemas/Credit" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/purchase_orders/{id}": get: tags: @@ -6915,17 +5859,9 @@ paths: schema: $ref: "#/components/schemas/Credit" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' delete: tags: - purchase_orders @@ -6955,17 +5891,9 @@ paths: X-RateLimit-Limit: $ref: "#/components/headers/X-RateLimit-Limit" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/purchase_orders/{id}/edit": get: tags: @@ -7000,17 +5928,9 @@ paths: schema: $ref: "#/components/schemas/Invoice" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/purchase_order/{id}": put: tags: @@ -7045,17 +5965,9 @@ paths: schema: $ref: "#/components/schemas/Credit" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/purchase_orders/bulk: post: tags: @@ -7089,17 +6001,9 @@ paths: X-RateLimit-Limit: $ref: "#/components/headers/X-RateLimit-Limit" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/purchase_orders/{id}/{action}": get: tags: @@ -7142,17 +6046,9 @@ paths: schema: $ref: "#/components/schemas/Invoice" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/purchase_orders/{id}/upload": put: tags: @@ -7187,17 +6083,9 @@ paths: schema: $ref: "#/components/schemas/Vendor" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/purchase_order/{invitation_key}/download": get: tags: @@ -7228,17 +6116,9 @@ paths: X-RateLimit-Limit: $ref: "#/components/headers/X-RateLimit-Limit" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/quotes: get: tags: @@ -7265,17 +6145,9 @@ paths: schema: $ref: "#/components/schemas/Quote" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' post: tags: - quotes @@ -7301,17 +6173,9 @@ paths: schema: $ref: "#/components/schemas/Quote" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/quotes/create: get: tags: @@ -7338,17 +6202,9 @@ paths: schema: $ref: "#/components/schemas/Quote" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/quotes/{id}": get: tags: @@ -7383,17 +6239,9 @@ paths: schema: $ref: "#/components/schemas/Quote" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' put: tags: - quotes @@ -7427,17 +6275,9 @@ paths: schema: $ref: "#/components/schemas/Quote" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' delete: tags: - quotes @@ -7467,17 +6307,9 @@ paths: X-RateLimit-Limit: $ref: "#/components/headers/X-RateLimit-Limit" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/quotes/{id}/edit": get: tags: @@ -7512,17 +6344,9 @@ paths: schema: $ref: "#/components/schemas/Quote" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/quotes/bulk: post: tags: @@ -7560,17 +6384,9 @@ paths: schema: $ref: "#/components/schemas/Quote" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/quotes/{id}/{action}": get: tags: @@ -7613,17 +6429,9 @@ paths: schema: $ref: "#/components/schemas/Quote" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/quote/{invitation_key}/download": get: tags: @@ -7654,17 +6462,9 @@ paths: X-RateLimit-Limit: $ref: "#/components/headers/X-RateLimit-Limit" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/quotes/{id}/upload": put: tags: @@ -7699,17 +6499,9 @@ paths: schema: $ref: "#/components/schemas/Quote" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/recurring_expenses: get: tags: @@ -7737,17 +6529,9 @@ paths: schema: $ref: "#/components/schemas/RecurringExpense" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' post: tags: - recurring_expenses @@ -7773,17 +6557,9 @@ paths: schema: $ref: "#/components/schemas/RecurringExpense" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/recurring_expenses/{id}": get: tags: @@ -7818,17 +6594,9 @@ paths: schema: $ref: "#/components/schemas/RecurringExpense" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' put: tags: - recurring_expenses @@ -7862,17 +6630,9 @@ paths: schema: $ref: "#/components/schemas/RecurringExpense" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' delete: tags: - recurring_expenses @@ -7902,17 +6662,9 @@ paths: X-RateLimit-Limit: $ref: "#/components/headers/X-RateLimit-Limit" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/recurring_expenses/{id}/edit": get: tags: @@ -7947,17 +6699,9 @@ paths: schema: $ref: "#/components/schemas/RecurringExpense" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/recurring_expenses/create: get: tags: @@ -7984,17 +6728,9 @@ paths: schema: $ref: "#/components/schemas/RecurringExpense" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/recurring_expenses/bulk: post: tags: @@ -8032,17 +6768,9 @@ paths: schema: $ref: "#/components/schemas/RecurringExpense" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/recurring_expenses/{id}/upload": put: tags: @@ -8077,17 +6805,9 @@ paths: schema: $ref: "#/components/schemas/RecurringExpense" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/recurring_invoices: get: tags: @@ -8114,17 +6834,9 @@ paths: schema: $ref: "#/components/schemas/RecurringInvoice" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' post: tags: - recurring_invoices @@ -8150,17 +6862,9 @@ paths: schema: $ref: "#/components/schemas/RecurringInvoice" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/recurring_invoices/create: get: tags: @@ -8187,17 +6891,9 @@ paths: schema: $ref: "#/components/schemas/RecurringInvoice" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/recurring_invoices/{id}": get: tags: @@ -8232,17 +6928,9 @@ paths: schema: $ref: "#/components/schemas/RecurringInvoice" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' put: tags: - recurring_invoices @@ -8276,17 +6964,9 @@ paths: schema: $ref: "#/components/schemas/RecurringInvoice" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' delete: tags: - recurring_invoices @@ -8316,17 +6996,9 @@ paths: X-RateLimit-Limit: $ref: "#/components/headers/X-RateLimit-Limit" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/recurring_invoices/{id}/edit": get: tags: @@ -8361,17 +7033,9 @@ paths: schema: $ref: "#/components/schemas/RecurringInvoice" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/recurring_invoice/{invitation_key}/download": get: tags: @@ -8402,17 +7066,9 @@ paths: X-RateLimit-Limit: $ref: "#/components/headers/X-RateLimit-Limit" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/recurring_invoices/bulk: post: tags: @@ -8450,17 +7106,9 @@ paths: schema: $ref: "#/components/schemas/RecurringInvoice" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/recurring_invoices/{id}/{action}": get: tags: @@ -8503,17 +7151,9 @@ paths: schema: $ref: "#/components/schemas/RecurringInvoice" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/recurring_invoices/{id}/upload": put: tags: @@ -8548,17 +7188,9 @@ paths: schema: $ref: "#/components/schemas/RecurringInvoice" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/recurring_quotes: get: tags: @@ -8585,17 +7217,9 @@ paths: schema: $ref: "#/components/schemas/RecurringQuote" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' post: tags: - recurring_quotes @@ -8621,17 +7245,9 @@ paths: schema: $ref: "#/components/schemas/RecurringQuote" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/recurring_quotes/create: get: tags: @@ -8658,17 +7274,9 @@ paths: schema: $ref: "#/components/schemas/RecurringQuote" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/recurring_quotes/{id}": get: tags: @@ -8703,17 +7311,9 @@ paths: schema: $ref: "#/components/schemas/RecurringQuote" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' put: tags: - recurring_quotes @@ -8747,17 +7347,9 @@ paths: schema: $ref: "#/components/schemas/RecurringQuote" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' delete: tags: - recurring_quotes @@ -8787,17 +7379,9 @@ paths: X-RateLimit-Limit: $ref: "#/components/headers/X-RateLimit-Limit" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/recurring_quotes/{id}/edit": get: tags: @@ -8832,17 +7416,9 @@ paths: schema: $ref: "#/components/schemas/RecurringQuote" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/recurring_quotes/bulk: post: tags: @@ -8880,17 +7456,9 @@ paths: schema: $ref: "#/components/schemas/RecurringQuote" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/recurring_quotes/{id}/{action}": get: tags: @@ -8933,17 +7501,9 @@ paths: schema: $ref: "#/components/schemas/RecurringQuote" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/reports/contacts: post: tags: @@ -8970,17 +7530,9 @@ paths: X-RateLimit-Limit: $ref: "#/components/headers/X-RateLimit-Limit" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/reports/clients: post: tags: @@ -9007,17 +7559,9 @@ paths: X-RateLimit-Limit: $ref: "#/components/headers/X-RateLimit-Limit" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/reports/credit: post: tags: @@ -9044,17 +7588,9 @@ paths: X-RateLimit-Limit: $ref: "#/components/headers/X-RateLimit-Limit" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/reports/documents: post: tags: @@ -9081,17 +7617,9 @@ paths: X-RateLimit-Limit: $ref: "#/components/headers/X-RateLimit-Limit" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/reports/expense: post: tags: @@ -9118,17 +7646,9 @@ paths: X-RateLimit-Limit: $ref: "#/components/headers/X-RateLimit-Limit" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/reports/invoice_items: post: tags: @@ -9155,17 +7675,9 @@ paths: X-RateLimit-Limit: $ref: "#/components/headers/X-RateLimit-Limit" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/reports/invoices: post: tags: @@ -9192,17 +7704,9 @@ paths: X-RateLimit-Limit: $ref: "#/components/headers/X-RateLimit-Limit" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/reports/payments: post: tags: @@ -9229,17 +7733,9 @@ paths: X-RateLimit-Limit: $ref: "#/components/headers/X-RateLimit-Limit" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/reports/products: post: tags: @@ -9266,17 +7762,9 @@ paths: X-RateLimit-Limit: $ref: "#/components/headers/X-RateLimit-Limit" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/reports/product_sales: post: tags: @@ -9303,17 +7791,9 @@ paths: X-RateLimit-Limit: $ref: "#/components/headers/X-RateLimit-Limit" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/reports/profitloss: post: tags: @@ -9340,17 +7820,9 @@ paths: X-RateLimit-Limit: $ref: "#/components/headers/X-RateLimit-Limit" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/reports/quote_items: post: tags: @@ -9377,17 +7849,9 @@ paths: X-RateLimit-Limit: $ref: "#/components/headers/X-RateLimit-Limit" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/reports/quotes: post: tags: @@ -9414,17 +7878,9 @@ paths: X-RateLimit-Limit: $ref: "#/components/headers/X-RateLimit-Limit" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/reports/recurring_invoices: post: tags: @@ -9451,17 +7907,9 @@ paths: X-RateLimit-Limit: $ref: "#/components/headers/X-RateLimit-Limit" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/reports/tasks: post: tags: @@ -9488,17 +7936,9 @@ paths: X-RateLimit-Limit: $ref: "#/components/headers/X-RateLimit-Limit" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/self-update: post: tags: @@ -9515,17 +7955,9 @@ paths: 200: description: "Success/failure response" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/statics: get: tags: @@ -9548,17 +7980,9 @@ paths: X-RateLimit-Limit: $ref: "#/components/headers/X-RateLimit-Limit" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/subscriptions: get: tags: @@ -9585,17 +8009,9 @@ paths: schema: $ref: "#/components/schemas/Subscription" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' post: tags: - subscriptions @@ -9621,17 +8037,9 @@ paths: schema: $ref: "#/components/schemas/Subscription" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/subscriptions/create: get: tags: @@ -9658,17 +8066,9 @@ paths: schema: $ref: "#/components/schemas/Subscription" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/subscriptions/{id}": get: tags: @@ -9703,17 +8103,9 @@ paths: schema: $ref: "#/components/schemas/Subscription" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' put: tags: - subscriptions @@ -9747,17 +8139,9 @@ paths: schema: $ref: "#/components/schemas/Subscription" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' delete: tags: - subscriptions @@ -9787,17 +8171,9 @@ paths: X-RateLimit-Limit: $ref: "#/components/headers/X-RateLimit-Limit" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/subscriptions/{id}/edit": get: tags: @@ -9832,17 +8208,9 @@ paths: schema: $ref: "#/components/schemas/Subscription" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/subscriptions/bulk: post: tags: @@ -9880,17 +8248,9 @@ paths: schema: $ref: "#/components/schemas/Subscription" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/support/messages/send: post: tags: @@ -9931,11 +8291,7 @@ paths: type: string example: true default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/system_logs: get: tags: @@ -9962,17 +8318,9 @@ paths: schema: $ref: "#/components/schemas/SystemLog" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/system_logs/{id}": get: tags: @@ -10007,17 +8355,9 @@ paths: schema: $ref: "#/components/schemas/SystemLog" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/tasks: get: tags: @@ -10045,17 +8385,9 @@ paths: schema: $ref: "#/components/schemas/Task" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' post: tags: - tasks @@ -10081,17 +8413,9 @@ paths: schema: $ref: "#/components/schemas/Task" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/tasks/{id}": get: tags: @@ -10126,17 +8450,9 @@ paths: schema: $ref: "#/components/schemas/Task" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' put: tags: - tasks @@ -10170,17 +8486,9 @@ paths: schema: $ref: "#/components/schemas/Task" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' delete: tags: - tasks @@ -10210,17 +8518,9 @@ paths: X-RateLimit-Limit: $ref: "#/components/headers/X-RateLimit-Limit" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/tasks/{id}/edit": get: tags: @@ -10255,17 +8555,9 @@ paths: schema: $ref: "#/components/schemas/Task" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/tasks/create: get: tags: @@ -10292,17 +8584,9 @@ paths: schema: $ref: "#/components/schemas/Task" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/tasks/bulk: post: tags: @@ -10340,17 +8624,9 @@ paths: schema: $ref: "#/components/schemas/Task" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/tasks/{id}/upload": put: tags: @@ -10385,17 +8661,9 @@ paths: schema: $ref: "#/components/schemas/Task" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/tasks/stort: post: tags: @@ -10418,17 +8686,9 @@ paths: X-RateLimit-Limit: $ref: "#/components/headers/X-RateLimit-Limit" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/task_schedulers/: get: tags: @@ -10449,11 +8709,7 @@ paths: X-RateLimit-Limit: $ref: "#/components/headers/X-RateLimit-Limit" default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' post: tags: - task_schedulers @@ -10480,17 +8736,9 @@ paths: X-RateLimit-Limit: $ref: "#/components/headers/X-RateLimit-Limit" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/invoices/task_schedulers: get: tags: @@ -10517,17 +8765,9 @@ paths: schema: $ref: "#/components/schemas/TaskSchedulerSchema" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/task_schedulers/{id}": get: tags: @@ -10556,11 +8796,7 @@ paths: X-RateLimit-Limit: $ref: "#/components/headers/X-RateLimit-Limit" default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' put: tags: - task_schedulers @@ -10595,17 +8831,9 @@ paths: X-RateLimit-Limit: $ref: "#/components/headers/X-RateLimit-Limit" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' delete: tags: - task_schedulers @@ -10633,11 +8861,7 @@ paths: X-RateLimit-Limit: $ref: "#/components/headers/X-RateLimit-Limit" default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/task_schedulers/bulk: post: tags: @@ -10675,17 +8899,9 @@ paths: schema: $ref: "#/components/schemas/TaskSchedulerSchema" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/task_statuses: get: tags: @@ -10713,17 +8929,9 @@ paths: schema: $ref: "#/components/schemas/TaskStatus" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' post: tags: - task_status @@ -10756,17 +8964,9 @@ paths: schema: $ref: "#/components/schemas/TaskStatus" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/task_statuses/create: get: tags: @@ -10793,17 +8993,9 @@ paths: schema: $ref: "#/components/schemas/TaskStatus" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/task_statuses/{id}": get: tags: @@ -10838,17 +9030,9 @@ paths: schema: $ref: "#/components/schemas/TaskStatus" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' put: tags: - task_status @@ -10882,17 +9066,9 @@ paths: schema: $ref: "#/components/schemas/TaskStatus" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' delete: tags: - task_statuss @@ -10922,17 +9098,9 @@ paths: X-RateLimit-Limit: $ref: "#/components/headers/X-RateLimit-Limit" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/task_statuses/{id}/edit": get: tags: @@ -10967,17 +9135,9 @@ paths: schema: $ref: "#/components/schemas/TaskStatus" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/task_statuses/bulk: post: tags: @@ -11015,17 +9175,9 @@ paths: schema: $ref: "#/components/schemas/TaskStatus" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/tax_rates: get: tags: @@ -11050,17 +9202,9 @@ paths: schema: $ref: "#/components/schemas/TaxRate" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/tax_rates/create: get: tags: @@ -11086,17 +9230,9 @@ paths: schema: $ref: "#/components/schemas/TaxRate" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/tax_rates/{id}": get: tags: @@ -11130,17 +9266,9 @@ paths: schema: $ref: "#/components/schemas/TaxRate" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' put: tags: - tax_rates @@ -11173,17 +9301,9 @@ paths: schema: $ref: "#/components/schemas/TaxRate" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' delete: tags: - tax_rates @@ -11212,17 +9332,9 @@ paths: X-RateLimit-Limit: $ref: "#/components/headers/X-RateLimit-Limit" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/tax_rates/{id}/edit": get: tags: @@ -11256,17 +9368,9 @@ paths: schema: $ref: "#/components/schemas/TaxRate" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/tax_rates/bulk: post: tags: @@ -11304,17 +9408,9 @@ paths: schema: $ref: "#/components/schemas/Webhook" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/templates: post: tags: @@ -11353,17 +9449,9 @@ paths: schema: $ref: "#/components/schemas/Template" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/tokens: get: tags: @@ -11391,17 +9479,9 @@ paths: schema: $ref: "#/components/schemas/CompanyToken" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' post: tags: - tokens @@ -11427,17 +9507,9 @@ paths: schema: $ref: "#/components/schemas/CompanyToken" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/tokens/{id}": get: tags: @@ -11472,17 +9544,9 @@ paths: schema: $ref: "#/components/schemas/CompanyToken" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' put: tags: - tokens @@ -11516,17 +9580,9 @@ paths: schema: $ref: "#/components/schemas/CompanyToken" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' delete: tags: - tokens @@ -11556,17 +9612,9 @@ paths: X-RateLimit-Limit: $ref: "#/components/headers/X-RateLimit-Limit" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/tokens/{id}/edit": get: tags: @@ -11601,17 +9649,9 @@ paths: schema: $ref: "#/components/schemas/CompanyToken" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/tokens/create: get: tags: @@ -11638,17 +9678,9 @@ paths: schema: $ref: "#/components/schemas/CompanyToken" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/tokens/bulk: post: tags: @@ -11686,17 +9718,9 @@ paths: schema: $ref: "#/components/schemas/CompanyToken" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/users: get: tags: @@ -11723,17 +9747,9 @@ paths: schema: $ref: "#/components/schemas/User" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' post: tags: - users @@ -11759,17 +9775,9 @@ paths: schema: $ref: "#/components/schemas/User" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/users/create: get: tags: @@ -11796,17 +9804,9 @@ paths: schema: $ref: "#/components/schemas/User" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/users/{id}": get: tags: @@ -11841,17 +9841,9 @@ paths: schema: $ref: "#/components/schemas/User" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' put: tags: - users @@ -11885,17 +9877,9 @@ paths: schema: $ref: "#/components/schemas/User" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' delete: tags: - users @@ -11933,17 +9917,9 @@ paths: X-RateLimit-Limit: $ref: "#/components/headers/X-RateLimit-Limit" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/users/{id}/edit": get: tags: @@ -11978,17 +9954,9 @@ paths: schema: $ref: "#/components/schemas/User" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/users/bulk: post: tags: @@ -12026,17 +9994,9 @@ paths: schema: $ref: "#/components/schemas/User" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/users/{user}/detach_from_company": delete: tags: @@ -12067,17 +10027,9 @@ paths: X-RateLimit-Limit: $ref: "#/components/headers/X-RateLimit-Limit" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/users/{user}/invite": post: tags: @@ -12108,17 +10060,9 @@ paths: X-RateLimit-Limit: $ref: "#/components/headers/X-RateLimit-Limit" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/users/{user}/reconfirm": post: tags: @@ -12149,17 +10093,9 @@ paths: X-RateLimit-Limit: $ref: "#/components/headers/X-RateLimit-Limit" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/vendors: get: tags: @@ -12187,17 +10123,9 @@ paths: schema: $ref: "#/components/schemas/Vendor" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' post: tags: - vendors @@ -12223,17 +10151,9 @@ paths: schema: $ref: "#/components/schemas/Vendor" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/vendors/{id}": get: tags: @@ -12268,17 +10188,9 @@ paths: schema: $ref: "#/components/schemas/Vendor" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' put: tags: - vendors @@ -12312,17 +10224,9 @@ paths: schema: $ref: "#/components/schemas/Vendor" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' delete: tags: - vendors @@ -12352,17 +10256,9 @@ paths: X-RateLimit-Limit: $ref: "#/components/headers/X-RateLimit-Limit" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/vendors/{id}/edit": get: tags: @@ -12397,17 +10293,9 @@ paths: schema: $ref: "#/components/schemas/Vendor" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/vendors/create: get: tags: @@ -12434,17 +10322,9 @@ paths: schema: $ref: "#/components/schemas/Vendor" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/vendors/bulk: post: tags: @@ -12482,17 +10362,9 @@ paths: schema: $ref: "#/components/schemas/Vendor" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/vendors/{id}/upload": put: tags: @@ -12527,17 +10399,9 @@ paths: schema: $ref: "#/components/schemas/Vendor" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/webcron: get: tags: @@ -12558,17 +10422,9 @@ paths: X-RateLimit-Limit: $ref: "#/components/headers/X-RateLimit-Limit" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/webhooks: get: tags: @@ -12596,17 +10452,9 @@ paths: schema: $ref: "#/components/schemas/Webhook" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' post: tags: - webhooks @@ -12632,17 +10480,9 @@ paths: schema: $ref: "#/components/schemas/Webhook" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/webhooks/{id}": get: tags: @@ -12677,17 +10517,9 @@ paths: schema: $ref: "#/components/schemas/Webhook" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' put: tags: - webhooks @@ -12721,17 +10553,9 @@ paths: schema: $ref: "#/components/schemas/Webhook" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' delete: tags: - Webhooks @@ -12761,17 +10585,9 @@ paths: X-RateLimit-Limit: $ref: "#/components/headers/X-RateLimit-Limit" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/webhooks/{id}/edit": get: tags: @@ -12806,17 +10622,9 @@ paths: schema: $ref: "#/components/schemas/Webhook" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/webhooks/create: get: tags: @@ -12843,17 +10651,9 @@ paths: schema: $ref: "#/components/schemas/Webhook" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/webhooks/bulk: post: tags: @@ -12891,17 +10691,9 @@ paths: schema: $ref: "#/components/schemas/Webhook" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/products: get: @@ -12932,29 +10724,13 @@ paths: schema: $ref: "#/components/schemas/Product" 401: - description: "Authentication error" - content: - application/json: - schema: - $ref: "#components/schemas/AuthenticationError" + $ref: '#/components/responses/401' 403: - description: "Authorization error" - content: - application/json: - schema: - $ref: "#components/schemas/AuthorizationError" + $ref: '#/components/responses/403' 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' post: tags: - products @@ -12979,18 +10755,14 @@ paths: application/json: schema: $ref: "#/components/schemas/Product" + 401: + $ref: '#/components/responses/401' + 403: + $ref: '#/components/responses/403' 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/products/{id}": get: tags: @@ -13025,29 +10797,13 @@ paths: schema: $ref: "#/components/schemas/Product" 401: - description: "Authentication error" - content: - application/json: - schema: - $ref: "#components/schemas/AuthenticationError" + $ref: '#/components/responses/401' 403: - description: "Authorization error" - content: - application/json: - schema: - $ref: "#components/schemas/AuthorizationError" + $ref: '#/components/responses/403' 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' put: tags: - products @@ -13081,29 +10837,13 @@ paths: schema: $ref: "#/components/schemas/Product" 401: - description: "Authentication error" - content: - application/json: - schema: - $ref: "#components/schemas/AuthenticationError" + $ref: '#/components/responses/401' 403: - description: "Authorization error" - content: - application/json: - schema: - $ref: "#components/schemas/AuthorizationError" + $ref: '#/components/responses/403' 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' delete: tags: - products @@ -13133,29 +10873,13 @@ paths: X-RateLimit-Limit: $ref: "#/components/headers/X-RateLimit-Limit" 401: - description: "Authentication error" - content: - application/json: - schema: - $ref: "#components/schemas/AuthenticationError" + $ref: '#/components/responses/401' 403: - description: "Authorization error" - content: - application/json: - schema: - $ref: "#components/schemas/AuthorizationError" + $ref: '#/components/responses/403' 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/products/{id}/edit": get: tags: @@ -13190,29 +10914,13 @@ paths: schema: $ref: "#/components/schemas/Product" 401: - description: "Authentication error" - content: - application/json: - schema: - $ref: "#components/schemas/AuthenticationError" + $ref: '#/components/responses/401' 403: - description: "Authorization error" - content: - application/json: - schema: - $ref: "#components/schemas/AuthorizationError" + $ref: '#/components/responses/403' 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/products/create": get: tags: @@ -13239,29 +10947,13 @@ paths: schema: $ref: "#/components/schemas/Product" 401: - description: "Authentication error" - content: - application/json: - schema: - $ref: "#components/schemas/AuthenticationError" + $ref: '#/components/responses/401' 403: - description: "Authorization error" - content: - application/json: - schema: - $ref: "#components/schemas/AuthorizationError" + $ref: '#/components/responses/403' 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/products/bulk: post: @@ -13300,29 +10992,13 @@ paths: schema: $ref: "#/components/schemas/Product" 401: - description: "Authentication error" - content: - application/json: - schema: - $ref: "#components/schemas/AuthenticationError" + $ref: '#/components/responses/401' 403: - description: "Authorization error" - content: - application/json: - schema: - $ref: "#components/schemas/AuthorizationError" + $ref: '#/components/responses/403' 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/products/{id}/upload": put: @@ -13372,29 +11048,13 @@ paths: schema: $ref: "#/components/schemas/Product" 401: - description: "Authentication error" - content: - application/json: - schema: - $ref: "#components/schemas/AuthenticationError" + $ref: '#/components/responses/401' 403: - description: "Authorization error" - content: - application/json: - schema: - $ref: "#components/schemas/AuthorizationError" + $ref: '#/components/responses/403' 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/clients: get: @@ -13481,11 +11141,7 @@ paths: schema: $ref: '#/components/schemas/Client' 401: - description: 'Authentication error' - content: - application/json: - schema: - $ref: '#components/schemas/AuthenticationError' + $ref: '#/components/responses/401' 403: $ref: '#/components/responses/403' 422: @@ -13517,11 +11173,7 @@ paths: schema: $ref: '#/components/schemas/Client' 401: - description: 'Authentication error' - content: - application/json: - schema: - $ref: '#components/schemas/AuthenticationError' + $ref: '#/components/responses/401' 403: $ref: '#/components/responses/403' 422: @@ -13562,11 +11214,7 @@ paths: schema: $ref: '#/components/schemas/Client' 401: - description: 'Authentication error' - content: - application/json: - schema: - $ref: '#components/schemas/AuthenticationError' + $ref: '#/components/responses/401' 403: $ref: '#/components/responses/403' 422: @@ -13606,11 +11254,7 @@ paths: schema: $ref: '#/components/schemas/Client' 401: - description: 'Authentication error' - content: - application/json: - schema: - $ref: '#components/schemas/AuthenticationError' + $ref: '#/components/responses/401' 403: $ref: '#/components/responses/403' 422: @@ -13646,11 +11290,7 @@ paths: X-RateLimit-Limit: $ref: '#/components/headers/X-RateLimit-Limit' 401: - description: 'Authentication error' - content: - application/json: - schema: - $ref: '#components/schemas/AuthenticationError' + $ref: '#/components/responses/401' 403: $ref: '#/components/responses/403' 422: @@ -13691,11 +11331,7 @@ paths: schema: $ref: '#/components/schemas/Client' 401: - description: 'Authentication error' - content: - application/json: - schema: - $ref: '#components/schemas/AuthenticationError' + $ref: '#/components/responses/401' 403: $ref: '#/components/responses/403' 422: @@ -13728,11 +11364,7 @@ paths: schema: $ref: '#/components/schemas/Client' 401: - description: 'Authentication error' - content: - application/json: - schema: - $ref: '#components/schemas/AuthenticationError' + $ref: '#/components/responses/401' 403: $ref: '#/components/responses/403' 422: @@ -13776,11 +11408,7 @@ paths: schema: $ref: '#/components/schemas/Client' 401: - description: 'Authentication error' - content: - application/json: - schema: - $ref: '#components/schemas/AuthenticationError' + $ref: '#/components/responses/401' 403: $ref: '#/components/responses/403' 422: @@ -13836,11 +11464,7 @@ paths: schema: $ref: '#/components/schemas/Client' 401: - description: 'Authentication error' - content: - application/json: - schema: - $ref: '#components/schemas/AuthenticationError' + $ref: '#/components/responses/401' 403: $ref: '#/components/responses/403' 422: @@ -13877,11 +11501,7 @@ paths: X-RateLimit-Limit: $ref: '#/components/headers/X-RateLimit-Limit' 401: - description: 'Authentication error' - content: - application/json: - schema: - $ref: '#components/schemas/AuthenticationError' + $ref: '#/components/responses/401' 403: $ref: '#/components/responses/403' 422: @@ -13926,11 +11546,7 @@ paths: X-RateLimit-Limit: $ref: '#/components/headers/X-RateLimit-Limit' 401: - description: 'Authentication error' - content: - application/json: - schema: - $ref: '#components/schemas/AuthenticationError' + $ref: '#/components/responses/401' 403: $ref: '#/components/responses/403' 422: @@ -14204,8 +11820,33 @@ components: type: apiKey in: header name: X-API-TOKEN - schemas: + responses: + 403: + description: 'Authorization error' + content: + application/json: + schema: + $ref: '#components/schemas/AuthorizationError' + default: + description: 'Unexpected Error' + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + 422: + description: 'Validation error' + content: + application/json: + schema: + $ref: '#/components/schemas/ValidationError' + 401: + description: 'Authentication error' + content: + application/json: + schema: + $ref: '#components/schemas/AuthenticationError' + schemas: BankTransactionRule: properties: id: diff --git a/openapi/components/responses.yaml b/openapi/components/responses.yaml new file mode 100644 index 000000000000..0a28634fc9d8 --- /dev/null +++ b/openapi/components/responses.yaml @@ -0,0 +1 @@ + responses: \ No newline at end of file diff --git a/openapi/components/responses/401.yaml b/openapi/components/responses/401.yaml index 69425b37899f..6d28c573cdb9 100644 --- a/openapi/components/responses/401.yaml +++ b/openapi/components/responses/401.yaml @@ -1,5 +1,6 @@ -description: 'Authentication error' -content: - application/json: - schema: - $ref: '#components/schemas/AuthenticationError' \ No newline at end of file + 401: + description: 'Authentication error' + content: + application/json: + schema: + $ref: '#components/schemas/AuthenticationError' \ No newline at end of file diff --git a/openapi/components/responses/403.yaml b/openapi/components/responses/403.yaml index 19061bac43d1..4006e9873bab 100644 --- a/openapi/components/responses/403.yaml +++ b/openapi/components/responses/403.yaml @@ -1,5 +1,6 @@ -description: 'Authorization error' -content: - application/json: - schema: - $ref: '#components/schemas/AuthorizationError' \ No newline at end of file + 403: + description: 'Authorization error' + content: + application/json: + schema: + $ref: '#components/schemas/AuthorizationError' \ No newline at end of file diff --git a/openapi/components/responses/422.yaml b/openapi/components/responses/422.yaml index ef144eae1cd2..9f501539dda8 100644 --- a/openapi/components/responses/422.yaml +++ b/openapi/components/responses/422.yaml @@ -1,5 +1,6 @@ -description: 'Validation error' -content: - application/json: - schema: - $ref: '#/components/schemas/ValidationError' \ No newline at end of file + 422: + description: 'Validation error' + content: + application/json: + schema: + $ref: '#/components/schemas/ValidationError' \ No newline at end of file diff --git a/openapi/components/responses/default.yaml b/openapi/components/responses/default.yaml index a3bf73e8979e..e88a677ff25e 100644 --- a/openapi/components/responses/default.yaml +++ b/openapi/components/responses/default.yaml @@ -1,5 +1,6 @@ -description: 'Unexpected Error' -content: - application/json: - schema: - $ref: '#/components/schemas/Error' \ No newline at end of file + default: + description: 'Unexpected Error' + content: + application/json: + schema: + $ref: '#/components/schemas/Error' \ No newline at end of file diff --git a/openapi/components/schemas.yaml b/openapi/components/schemas.yaml index 6b5e699ddcbb..575dea7f8a21 100644 --- a/openapi/components/schemas.yaml +++ b/openapi/components/schemas.yaml @@ -1,5 +1,4 @@ schemas: - BankTransactionRule: properties: id: diff --git a/openapi/paths.yaml b/openapi/paths.yaml index 245d6784c4e2..747691ef9e50 100644 --- a/openapi/paths.yaml +++ b/openapi/paths.yaml @@ -28,11 +28,7 @@ paths: schema: $ref: '#/components/schemas/Client' 401: - description: 'Authentication error' - content: - application/json: - schema: - $ref: '#components/schemas/AuthenticationError' + $ref: '#/components/responses/401' 403: $ref: '#/components/responses/403' 422: @@ -71,11 +67,7 @@ paths: 404: description: "No file exists for the given record" 401: - description: 'Authentication error' - content: - application/json: - schema: - $ref: '#components/schemas/AuthenticationError' + $ref: '#/components/responses/401' 403: $ref: '#/components/responses/403' 422: @@ -130,11 +122,7 @@ paths: schema: $ref: '#/components/schemas/Client' 401: - description: 'Authentication error' - content: - application/json: - schema: - $ref: '#components/schemas/AuthenticationError' + $ref: '#/components/responses/401' 403: $ref: '#/components/responses/403' 422: @@ -180,21 +168,13 @@ paths: schema: $ref: "#/components/schemas/CompanyUser" 401: - description: 'Authentication error' - content: - application/json: - schema: - $ref: '#components/schemas/AuthenticationError' + $ref: '#/components/responses/401' 403: $ref: '#/components/responses/403' 422: $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/yodlee/refresh: post: tags: @@ -220,21 +200,13 @@ paths: schema: $ref: "#/components/schemas/Credit" 401: - description: 'Authentication error' - content: - application/json: - schema: - $ref: '#components/schemas/AuthenticationError' + $ref: '#/components/responses/401' 403: $ref: '#/components/responses/403' 422: $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/bank_integrations: get: tags: @@ -270,21 +242,13 @@ paths: schema: $ref: "#/components/schemas/BankIntegration" 401: - description: 'Authentication error' - content: - application/json: - schema: - $ref: '#components/schemas/AuthenticationError' + $ref: '#/components/responses/401' 403: $ref: '#/components/responses/403' 422: $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' post: tags: - bank_integrations @@ -310,21 +274,13 @@ paths: schema: $ref: "#/components/schemas/BankIntegration" 401: - description: 'Authentication error' - content: - application/json: - schema: - $ref: '#components/schemas/AuthenticationError' + $ref: '#/components/responses/401' 403: $ref: '#/components/responses/403' 422: $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/bank_integrations/{id}": get: tags: @@ -359,21 +315,13 @@ paths: schema: $ref: "#/components/schemas/BankIntegration" 401: - description: 'Authentication error' - content: - application/json: - schema: - $ref: '#components/schemas/AuthenticationError' + $ref: '#/components/responses/401' 403: $ref: '#/components/responses/403' 422: $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' put: tags: - bank_integrations @@ -407,21 +355,13 @@ paths: schema: $ref: "#/components/schemas/BankIntegration" 401: - description: 'Authentication error' - content: - application/json: - schema: - $ref: '#components/schemas/AuthenticationError' + $ref: '#/components/responses/401' 403: $ref: '#/components/responses/403' 422: $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' delete: tags: - bank_integrations @@ -451,21 +391,13 @@ paths: X-RateLimit-Limit: $ref: "#/components/headers/X-RateLimit-Limit" 401: - description: 'Authentication error' - content: - application/json: - schema: - $ref: '#components/schemas/AuthenticationError' + $ref: '#/components/responses/401' 403: $ref: '#/components/responses/403' 422: $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/bank_integrations/{id}/edit": get: tags: @@ -500,21 +432,13 @@ paths: schema: $ref: "#/components/schemas/BankIntegration" 401: - description: 'Authentication error' - content: - application/json: - schema: - $ref: '#components/schemas/AuthenticationError' + $ref: '#/components/responses/401' 403: $ref: '#/components/responses/403' 422: $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/bank_integrations/create: get: tags: @@ -541,21 +465,13 @@ paths: schema: $ref: "#/components/schemas/BankIntegration" 401: - description: 'Authentication error' - content: - application/json: - schema: - $ref: '#components/schemas/AuthenticationError' + $ref: '#/components/responses/401' 403: $ref: '#/components/responses/403' 422: $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/bank_integrations/bulk: post: tags: @@ -588,18 +504,14 @@ paths: $ref: "#/components/headers/X-RateLimit-Remaining" X-RateLimit-Limit: $ref: "#/components/headers/X-RateLimit-Limit" + 401: + $ref: '#/components/responses/401' + 403: + $ref: '#/components/responses/403' 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/bank_integrations/refresh_accounts: post: tags: @@ -625,18 +537,14 @@ paths: application/json: schema: $ref: "#/components/schemas/BankIntegration" + 401: + $ref: '#/components/responses/401' + 403: + $ref: '#/components/responses/403' 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/bank_integrations/remove_account/account_id: post: tags: @@ -662,18 +570,14 @@ paths: application/json: schema: $ref: "#/components/schemas/BankIntegration" + 401: + $ref: '#/components/responses/401' + 403: + $ref: '#/components/responses/403' 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/bank_integrations/get_transactions/account_id: post: tags: @@ -699,18 +603,14 @@ paths: application/json: schema: $ref: "#/components/schemas/BankIntegration" + 401: + $ref: '#/components/responses/401' + 403: + $ref: '#/components/responses/403' 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/bank_transactions: get: tags: @@ -745,18 +645,14 @@ paths: application/json: schema: $ref: "#/components/schemas/BankTransaction" + 401: + $ref: '#/components/responses/401' + 403: + $ref: '#/components/responses/403' 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' post: tags: - bank_transactions @@ -781,18 +677,14 @@ paths: application/json: schema: $ref: "#/components/schemas/BankTransaction" + 401: + $ref: '#/components/responses/401' + 403: + $ref: '#/components/responses/403' 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/bank_transactions/{id}": get: tags: @@ -826,18 +718,14 @@ paths: application/json: schema: $ref: "#/components/schemas/BankTransaction" + 401: + $ref: '#/components/responses/401' + 403: + $ref: '#/components/responses/403' 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' put: tags: - bank_transactions @@ -870,18 +758,14 @@ paths: application/json: schema: $ref: "#/components/schemas/BankTransaction" + 401: + $ref: '#/components/responses/401' + 403: + $ref: '#/components/responses/403' 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' delete: tags: - bank_transactions @@ -910,18 +794,14 @@ paths: $ref: "#/components/headers/X-RateLimit-Remaining" X-RateLimit-Limit: $ref: "#/components/headers/X-RateLimit-Limit" + 401: + $ref: '#/components/responses/401' + 403: + $ref: '#/components/responses/403' 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/bank_transactions/{id}/edit": get: tags: @@ -955,18 +835,14 @@ paths: application/json: schema: $ref: "#/components/schemas/BankTransaction" + 401: + $ref: '#/components/responses/401' + 403: + $ref: '#/components/responses/403' 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/bank_transactions/create: get: tags: @@ -992,18 +868,14 @@ paths: application/json: schema: $ref: "#/components/schemas/BankTransaction" + 401: + $ref: '#/components/responses/401' + 403: + $ref: '#/components/responses/403' 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/bank_transations/bulk: post: tags: @@ -1036,18 +908,14 @@ paths: $ref: "#/components/headers/X-RateLimit-Remaining" X-RateLimit-Limit: $ref: "#/components/headers/X-RateLimit-Limit" + 401: + $ref: '#/components/responses/401' + 403: + $ref: '#/components/responses/403' 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/bank_transations/match: post: tags: @@ -1080,18 +948,14 @@ paths: $ref: "#/components/headers/X-RateLimit-Remaining" X-RateLimit-Limit: $ref: "#/components/headers/X-RateLimit-Limit" + 401: + $ref: '#/components/responses/401' + 403: + $ref: '#/components/responses/403' 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/bank_transaction_rules: get: tags: @@ -1126,18 +990,14 @@ paths: application/json: schema: $ref: "#/components/schemas/BankTransactionRule" + 401: + $ref: '#/components/responses/401' + 403: + $ref: '#/components/responses/403' 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' post: tags: - bank_transaction_rules @@ -1162,18 +1022,14 @@ paths: application/json: schema: $ref: "#/components/schemas/BankTransactionRule" + 401: + $ref: '#/components/responses/401' + 403: + $ref: '#/components/responses/403' 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/bank_transaction_rules/{id}": get: tags: @@ -1207,18 +1063,14 @@ paths: application/json: schema: $ref: "#/components/schemas/BankTransactionRule" + 401: + $ref: '#/components/responses/401' + 403: + $ref: '#/components/responses/403' 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' put: tags: - bank_transaction_rules @@ -1251,18 +1103,14 @@ paths: application/json: schema: $ref: "#/components/schemas/BankTransactionRule" + 401: + $ref: '#/components/responses/401' + 403: + $ref: '#/components/responses/403' 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' delete: tags: - bank_transaction_rules @@ -1291,18 +1139,14 @@ paths: $ref: "#/components/headers/X-RateLimit-Remaining" X-RateLimit-Limit: $ref: "#/components/headers/X-RateLimit-Limit" + 401: + $ref: '#/components/responses/401' + 403: + $ref: '#/components/responses/403' 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/bank_transaction_rules/{id}/edit": get: tags: @@ -1336,18 +1180,14 @@ paths: application/json: schema: $ref: "#/components/schemas/BankTransactionRule" + 401: + $ref: '#/components/responses/401' + 403: + $ref: '#/components/responses/403' 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/bank_transaction_rules/create: get: tags: @@ -1373,18 +1213,14 @@ paths: application/json: schema: $ref: "#/components/schemas/BankTransactionRule" + 401: + $ref: '#/components/responses/401' + 403: + $ref: '#/components/responses/403' 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/bank_transation_rules/bulk: post: tags: @@ -1417,18 +1253,14 @@ paths: $ref: "#/components/headers/X-RateLimit-Remaining" X-RateLimit-Limit: $ref: "#/components/headers/X-RateLimit-Limit" + 401: + $ref: '#/components/responses/401' + 403: + $ref: '#/components/responses/403' 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/charts/totals: post: tags: @@ -1460,17 +1292,9 @@ paths: X-RateLimit-Limit: $ref: "#/components/headers/X-RateLimit-Limit" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/client_gateway_tokens: get: @@ -1498,18 +1322,14 @@ paths: application/json: schema: $ref: "#/components/schemas/ClientGatewayToken" + 401: + $ref: '#/components/responses/401' + 403: + $ref: '#/components/responses/403' 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' post: tags: - client_gateway_tokens @@ -1534,18 +1354,14 @@ paths: application/json: schema: $ref: "#/components/schemas/ClientGatewayToken" + 401: + $ref: '#/components/responses/401' + 403: + $ref: '#/components/responses/403' 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/client_gateway_tokens/{id}": get: tags: @@ -1579,18 +1395,14 @@ paths: application/json: schema: $ref: "#/components/schemas/ClientGatewayToken" + 401: + $ref: '#/components/responses/401' + 403: + $ref: '#/components/responses/403' 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' put: tags: - client_gateway_tokens @@ -1623,18 +1435,14 @@ paths: application/json: schema: $ref: "#/components/schemas/ClientGatewayToken" + 401: + $ref: '#/components/responses/401' + 403: + $ref: '#/components/responses/403' 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' delete: tags: - client_gateway_tokens @@ -1663,18 +1471,14 @@ paths: $ref: "#/components/headers/X-RateLimit-Remaining" X-RateLimit-Limit: $ref: "#/components/headers/X-RateLimit-Limit" + 401: + $ref: '#/components/responses/401' + 403: + $ref: '#/components/responses/403' 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/client_gateway_tokens/{id}/edit": get: tags: @@ -1708,18 +1512,14 @@ paths: application/json: schema: $ref: "#/components/schemas/ClientGatewayToken" + 401: + $ref: '#/components/responses/401' + 403: + $ref: '#/components/responses/403' 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/client_gateway_tokens/create: get: tags: @@ -1745,18 +1545,14 @@ paths: application/json: schema: $ref: "#/components/schemas/ClientGatewayToken" + 401: + $ref: '#/components/responses/401' + 403: + $ref: '#/components/responses/403' 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/companies: get: @@ -1783,18 +1579,14 @@ paths: application/json: schema: $ref: "#/components/schemas/Company" + 401: + $ref: '#/components/responses/401' + 403: + $ref: '#/components/responses/403' 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' post: tags: - companies @@ -1819,18 +1611,14 @@ paths: application/json: schema: $ref: "#/components/schemas/Company" + 401: + $ref: '#/components/responses/401' + 403: + $ref: '#/components/responses/403' 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/companies/create: get: tags: @@ -1856,18 +1644,14 @@ paths: application/json: schema: $ref: "#/components/schemas/Company" + 401: + $ref: '#/components/responses/401' + 403: + $ref: '#/components/responses/403' 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/companies/{id}": get: tags: @@ -1901,18 +1685,14 @@ paths: application/json: schema: $ref: "#/components/schemas/Company" + 401: + $ref: '#/components/responses/401' + 403: + $ref: '#/components/responses/403' 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' put: tags: - companies @@ -1945,18 +1725,14 @@ paths: application/json: schema: $ref: "#/components/schemas/Company" + 401: + $ref: '#/components/responses/401' + 403: + $ref: '#/components/responses/403' 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' delete: tags: - companies @@ -1985,18 +1761,14 @@ paths: $ref: "#/components/headers/X-RateLimit-Remaining" X-RateLimit-Limit: $ref: "#/components/headers/X-RateLimit-Limit" + 401: + $ref: '#/components/responses/401' + 403: + $ref: '#/components/responses/403' 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/companies/{id}/edit": get: tags: @@ -2030,18 +1802,14 @@ paths: application/json: schema: $ref: "#/components/schemas/Company" + 401: + $ref: '#/components/responses/401' + 403: + $ref: '#/components/responses/403' 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/companies/{id}/upload": put: tags: @@ -2075,18 +1843,14 @@ paths: application/json: schema: $ref: "#/components/schemas/Company" + 401: + $ref: '#/components/responses/401' + 403: + $ref: '#/components/responses/403' 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/companies/{company}/default": post: tags: @@ -2120,18 +1884,14 @@ paths: application/json: schema: $ref: "#/components/schemas/Company" + 401: + $ref: '#/components/responses/401' + 403: + $ref: '#/components/responses/403' 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/company_gateways: get: tags: @@ -2157,18 +1917,14 @@ paths: application/json: schema: $ref: "#/components/schemas/CompanyGateway" + 401: + $ref: '#/components/responses/401' + 403: + $ref: '#/components/responses/403' 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' post: tags: - company_gateways @@ -2194,17 +1950,9 @@ paths: schema: $ref: "#/components/schemas/CompanyGateway" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/company_gateways/create: get: tags: @@ -2230,18 +1978,14 @@ paths: application/json: schema: $ref: "#/components/schemas/CompanyGateway" + 401: + $ref: '#/components/responses/401' + 403: + $ref: '#/components/responses/403' 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/company_gateways/{id}": get: tags: @@ -2275,18 +2019,14 @@ paths: application/json: schema: $ref: "#/components/schemas/CompanyGateway" + 401: + $ref: '#/components/responses/401' + 403: + $ref: '#/components/responses/403' 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' put: tags: - company_gateways @@ -2319,18 +2059,14 @@ paths: application/json: schema: $ref: "#/components/schemas/CompanyGateway" + 401: + $ref: '#/components/responses/401' + 403: + $ref: '#/components/responses/403' 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' delete: tags: - company_gateways @@ -2359,18 +2095,14 @@ paths: $ref: "#/components/headers/X-RateLimit-Remaining" X-RateLimit-Limit: $ref: "#/components/headers/X-RateLimit-Limit" + 401: + $ref: '#/components/responses/401' + 403: + $ref: '#/components/responses/403' 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/company_gateways/{id}/edit": get: tags: @@ -2404,18 +2136,14 @@ paths: application/json: schema: $ref: "#/components/schemas/CompanyGateway" + 401: + $ref: '#/components/responses/401' + 403: + $ref: '#/components/responses/403' 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/company_gateways/bulk: post: tags: @@ -2452,18 +2180,14 @@ paths: application/json: schema: $ref: "#/components/schemas/CompanyGateway" + 401: + $ref: '#/components/responses/401' + 403: + $ref: '#/components/responses/403' 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/company_ledger: get: tags: @@ -2489,18 +2213,14 @@ paths: application/json: schema: $ref: "#/components/schemas/CompanyLedger" + 401: + $ref: '#/components/responses/401' + 403: + $ref: '#/components/responses/403' 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/company_users: post: tags: @@ -2524,18 +2244,14 @@ paths: application/json: schema: $ref: "#/components/schemas/CompanyUser" + 401: + $ref: '#/components/responses/401' + 403: + $ref: '#/components/responses/403' 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/connected_account: post: tags: @@ -2563,18 +2279,14 @@ paths: application/json: schema: $ref: "#/components/schemas/User" + 401: + $ref: '#/components/responses/401' + 403: + $ref: '#/components/responses/403' 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/credits: get: tags: @@ -2600,18 +2312,14 @@ paths: application/json: schema: $ref: "#/components/schemas/Credit" + 401: + $ref: '#/components/responses/401' + 403: + $ref: '#/components/responses/403' 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' post: tags: - credits @@ -2636,18 +2344,14 @@ paths: application/json: schema: $ref: "#/components/schemas/Credit" + 401: + $ref: '#/components/responses/401' + 403: + $ref: '#/components/responses/403' 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/credits/create: get: tags: @@ -2673,18 +2377,14 @@ paths: application/json: schema: $ref: "#/components/schemas/Credit" + 401: + $ref: '#/components/responses/401' + 403: + $ref: '#/components/responses/403' 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/credits/{id}": get: tags: @@ -2718,18 +2418,14 @@ paths: application/json: schema: $ref: "#/components/schemas/Credit" + 401: + $ref: '#/components/responses/401' + 403: + $ref: '#/components/responses/403' 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' put: tags: - Credits @@ -2762,18 +2458,14 @@ paths: application/json: schema: $ref: "#/components/schemas/Credit" + 401: + $ref: '#/components/responses/401' + 403: + $ref: '#/components/responses/403' 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' delete: tags: - credits @@ -2802,18 +2494,14 @@ paths: $ref: "#/components/headers/X-RateLimit-Remaining" X-RateLimit-Limit: $ref: "#/components/headers/X-RateLimit-Limit" + 401: + $ref: '#/components/responses/401' + 403: + $ref: '#/components/responses/403' 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/credits/{id}/edit": get: tags: @@ -2847,18 +2535,14 @@ paths: application/json: schema: $ref: "#/components/schemas/Invoice" + 401: + $ref: '#/components/responses/401' + 403: + $ref: '#/components/responses/403' 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/credits/bulk: post: tags: @@ -2891,18 +2575,14 @@ paths: $ref: "#/components/headers/X-RateLimit-Remaining" X-RateLimit-Limit: $ref: "#/components/headers/X-RateLimit-Limit" + 401: + $ref: '#/components/responses/401' + 403: + $ref: '#/components/responses/403' 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/credit/{invitation_key}/download": get: tags: @@ -2932,18 +2612,14 @@ paths: $ref: "#/components/headers/X-RateLimit-Remaining" X-RateLimit-Limit: $ref: "#/components/headers/X-RateLimit-Limit" + 401: + $ref: '#/components/responses/401' + 403: + $ref: '#/components/responses/403' 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/credits/{id}/upload": put: tags: @@ -2977,18 +2653,14 @@ paths: application/json: schema: $ref: "#/components/schemas/Credit" + 401: + $ref: '#/components/responses/401' + 403: + $ref: '#/components/responses/403' 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/designs: get: tags: @@ -3015,18 +2687,14 @@ paths: application/json: schema: $ref: "#/components/schemas/Design" + 401: + $ref: '#/components/responses/401' + 403: + $ref: '#/components/responses/403' 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' post: tags: - designs @@ -3051,18 +2719,14 @@ paths: application/json: schema: $ref: "#/components/schemas/Design" + 401: + $ref: '#/components/responses/401' + 403: + $ref: '#/components/responses/403' 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/designs/{id}": get: tags: @@ -3096,18 +2760,14 @@ paths: application/json: schema: $ref: "#/components/schemas/Design" + 401: + $ref: '#/components/responses/401' + 403: + $ref: '#/components/responses/403' 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' put: tags: - designs @@ -3140,18 +2800,14 @@ paths: application/json: schema: $ref: "#/components/schemas/Design" + 401: + $ref: '#/components/responses/401' + 403: + $ref: '#/components/responses/403' 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' delete: tags: - designs @@ -3181,17 +2837,9 @@ paths: X-RateLimit-Limit: $ref: "#/components/headers/X-RateLimit-Limit" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/designs/{id}/edit": get: tags: @@ -3226,17 +2874,9 @@ paths: schema: $ref: "#/components/schemas/Design" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/designs/create: get: tags: @@ -3263,17 +2903,9 @@ paths: schema: $ref: "#/components/schemas/Design" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/designs/bulk: post: tags: @@ -3311,17 +2943,9 @@ paths: schema: $ref: "#/components/schemas/Design" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/documents: get: tags: @@ -3349,17 +2973,9 @@ paths: schema: $ref: "#/components/schemas/Document" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/emails: post: tags: @@ -3407,17 +3023,9 @@ paths: schema: $ref: "#/components/schemas/Template" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/expense_categories: get: tags: @@ -3442,17 +3050,9 @@ paths: schema: $ref: "#/components/schemas/ExpenseCategory" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' post: tags: - expense_categories @@ -3478,17 +3078,9 @@ paths: schema: $ref: "#/components/schemas/ExpenseCategory" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/expense_categories/create: get: tags: @@ -3514,17 +3106,9 @@ paths: schema: $ref: "#/components/schemas/ExpenseCategory" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/expense_categories/{id}": get: tags: @@ -3558,17 +3142,9 @@ paths: schema: $ref: "#/components/schemas/ExpenseCategory" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' put: tags: - expense_categories @@ -3601,17 +3177,9 @@ paths: schema: $ref: "#/components/schemas/ExpenseCategory" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' delete: tags: - expense_categories @@ -3640,17 +3208,9 @@ paths: X-RateLimit-Limit: $ref: "#/components/headers/X-RateLimit-Limit" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/expense_categories/{id}/edit": get: tags: @@ -3684,17 +3244,9 @@ paths: schema: $ref: "#/components/schemas/ExpenseCategory" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/expense_categories/bulk: post: tags: @@ -3732,17 +3284,9 @@ paths: schema: $ref: "#/components/schemas/Webhook" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/expenses: get: tags: @@ -3770,17 +3314,9 @@ paths: schema: $ref: "#/components/schemas/Expense" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' post: tags: - expenses @@ -3806,17 +3342,9 @@ paths: schema: $ref: "#/components/schemas/Expense" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/expenses/{id}": get: tags: @@ -3851,17 +3379,9 @@ paths: schema: $ref: "#/components/schemas/Expense" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' put: tags: - expenses @@ -3895,17 +3415,9 @@ paths: schema: $ref: "#/components/schemas/Expense" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' delete: tags: - expenses @@ -3935,17 +3447,9 @@ paths: X-RateLimit-Limit: $ref: "#/components/headers/X-RateLimit-Limit" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/expenses/{id}/edit": get: tags: @@ -3980,17 +3484,9 @@ paths: schema: $ref: "#/components/schemas/Expense" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/expenses/create: get: tags: @@ -4017,17 +3513,9 @@ paths: schema: $ref: "#/components/schemas/Expense" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/expenses/bulk: post: tags: @@ -4065,17 +3553,9 @@ paths: schema: $ref: "#/components/schemas/Expense" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/expenses/{id}/upload": put: tags: @@ -4110,17 +3590,9 @@ paths: schema: $ref: "#/components/schemas/Expense" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/export: post: tags: @@ -4141,17 +3613,9 @@ paths: X-RateLimit-Limit: $ref: "#/components/headers/X-RateLimit-Limit" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/group_settings: get: tags: @@ -4178,17 +3642,9 @@ paths: schema: $ref: "#/components/schemas/GroupSetting" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' post: tags: - group_settings @@ -4214,17 +3670,9 @@ paths: schema: $ref: "#/components/schemas/GroupSetting" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/group_settings/create: get: tags: @@ -4251,17 +3699,9 @@ paths: schema: $ref: "#/components/schemas/GroupSetting" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/group_settings/{id}": get: tags: @@ -4296,17 +3736,9 @@ paths: schema: $ref: "#/components/schemas/GroupSetting" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' put: tags: - group_settings @@ -4340,17 +3772,9 @@ paths: schema: $ref: "#/components/schemas/GroupSetting" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' delete: tags: - group_settings @@ -4380,17 +3804,9 @@ paths: X-RateLimit-Limit: $ref: "#/components/headers/X-RateLimit-Limit" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/group_settings/{id}/edit": get: tags: @@ -4425,17 +3841,9 @@ paths: schema: $ref: "#/components/schemas/GroupSetting" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/group_settings/bulk: post: tags: @@ -4469,17 +3877,9 @@ paths: X-RateLimit-Limit: $ref: "#/components/headers/X-RateLimit-Limit" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/group_settings/{id}/upload": put: tags: @@ -4514,17 +3914,9 @@ paths: schema: $ref: "#/components/schemas/Invoice" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/preimport: post: tags: @@ -4555,17 +3947,9 @@ paths: X-RateLimit-Limit: $ref: "#/components/headers/X-RateLimit-Limit" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/import_json: post: tags: @@ -4586,17 +3970,9 @@ paths: X-RateLimit-Limit: $ref: "#/components/headers/X-RateLimit-Limit" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/apple/confirm_purchase: post: tags: @@ -4619,17 +3995,9 @@ paths: X-RateLimit-Limit: $ref: "#/components/headers/X-RateLimit-Limit" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/apple/process_webhook: post: tags: @@ -4652,17 +4020,9 @@ paths: X-RateLimit-Limit: $ref: "#/components/headers/X-RateLimit-Limit" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/invoices: get: tags: @@ -4689,17 +4049,9 @@ paths: schema: $ref: "#/components/schemas/Invoice" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' post: tags: - invoices @@ -4731,17 +4083,9 @@ paths: schema: $ref: "#/components/schemas/Invoice" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/invoices/create: get: tags: @@ -4768,17 +4112,9 @@ paths: schema: $ref: "#/components/schemas/Invoice" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/invoices/{id}": get: tags: @@ -4813,17 +4149,9 @@ paths: schema: $ref: "#/components/schemas/Invoice" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' put: tags: - invoices @@ -4857,17 +4185,9 @@ paths: schema: $ref: "#/components/schemas/Invoice" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' delete: tags: - invoices @@ -4897,17 +4217,9 @@ paths: X-RateLimit-Limit: $ref: "#/components/headers/X-RateLimit-Limit" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/invoices/{id}/edit": get: tags: @@ -4942,17 +4254,9 @@ paths: schema: $ref: "#/components/schemas/Invoice" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/invoices/bulk: post: tags: @@ -4986,17 +4290,9 @@ paths: X-RateLimit-Limit: $ref: "#/components/headers/X-RateLimit-Limit" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/invoices/{id}/{action}": get: tags: @@ -5039,17 +4335,9 @@ paths: schema: $ref: "#/components/schemas/Invoice" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/invoice/{invitation_key}/download": get: tags: @@ -5080,17 +4368,9 @@ paths: X-RateLimit-Limit: $ref: "#/components/headers/X-RateLimit-Limit" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/invoices/{id}/delivery_note": get: tags: @@ -5121,17 +4401,9 @@ paths: X-RateLimit-Limit: $ref: "#/components/headers/X-RateLimit-Limit" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/invoices/{id}/upload": put: tags: @@ -5166,17 +4438,9 @@ paths: schema: $ref: "#/components/schemas/Invoice" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/claim_license: get: tags: @@ -5213,17 +4477,9 @@ paths: X-RateLimit-Limit: $ref: "#/components/headers/X-RateLimit-Limit" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/logout: post: tags: @@ -5247,17 +4503,9 @@ paths: X-RateLimit-Limit: $ref: "#/components/headers/X-RateLimit-Limit" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/migration/purge/{company}": post: tags: @@ -5287,17 +4535,9 @@ paths: X-RateLimit-Limit: $ref: "#/components/headers/X-RateLimit-Limit" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/migration/purge_save_settings/{company}": post: tags: @@ -5327,17 +4567,9 @@ paths: X-RateLimit-Limit: $ref: "#/components/headers/X-RateLimit-Limit" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/migration/start: post: tags: @@ -5368,17 +4600,9 @@ paths: X-RateLimit-Limit: $ref: "#/components/headers/X-RateLimit-Limit" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/one_time_token: post: tags: @@ -5399,17 +4623,9 @@ paths: X-RateLimit-Limit: $ref: "#/components/headers/X-RateLimit-Limit" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/payments: get: tags: @@ -5436,17 +4652,9 @@ paths: schema: $ref: "#/components/schemas/Payment" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' post: tags: - payments @@ -5479,17 +4687,9 @@ paths: schema: $ref: "#/components/schemas/Payment" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/payments/create: get: tags: @@ -5516,17 +4716,9 @@ paths: schema: $ref: "#/components/schemas/Payment" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/payments/{id}": get: tags: @@ -5561,17 +4753,9 @@ paths: schema: $ref: "#/components/schemas/Payment" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' put: tags: - payments @@ -5605,17 +4789,9 @@ paths: schema: $ref: "#/components/schemas/Payment" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' delete: tags: - payments @@ -5645,17 +4821,9 @@ paths: X-RateLimit-Limit: $ref: "#/components/headers/X-RateLimit-Limit" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/payments/{id}/edit": get: tags: @@ -5690,17 +4858,9 @@ paths: schema: $ref: "#/components/schemas/Payment" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/payments/bulk: post: tags: @@ -5738,17 +4898,9 @@ paths: schema: $ref: "#/components/schemas/Payment" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/payments/{id}/{action}": get: tags: @@ -5791,17 +4943,9 @@ paths: schema: $ref: "#/components/schemas/Payment" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/payments/refund: post: tags: @@ -5835,17 +4979,9 @@ paths: schema: $ref: "#/components/schemas/Payment" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/payments/{id}/upload": put: tags: @@ -5880,17 +5016,9 @@ paths: schema: $ref: "#/components/schemas/Payment" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/payment_terms: get: tags: @@ -5918,17 +5046,9 @@ paths: schema: $ref: "#/components/schemas/PaymentTerm" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' post: tags: - payment_terms @@ -5961,17 +5081,9 @@ paths: schema: $ref: "#/components/schemas/PaymentTerm" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/payment_terms/create: get: tags: @@ -5998,17 +5110,9 @@ paths: schema: $ref: "#/components/schemas/Payment" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/payment_terms/{id}": get: tags: @@ -6043,17 +5147,9 @@ paths: schema: $ref: "#/components/schemas/PaymentTerm" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' put: tags: - payment_terms @@ -6087,17 +5183,9 @@ paths: schema: $ref: "#/components/schemas/PaymentTerm" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' delete: tags: - payment_termss @@ -6127,17 +5215,9 @@ paths: X-RateLimit-Limit: $ref: "#/components/headers/X-RateLimit-Limit" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/payment_terms/{id}/edit": get: tags: @@ -6172,17 +5252,9 @@ paths: schema: $ref: "#/components/schemas/PaymentTerm" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/payment_terms/bulk: post: tags: @@ -6220,17 +5292,9 @@ paths: schema: $ref: "#/components/schemas/PaymentTerm" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/ping: get: tags: @@ -6295,17 +5359,9 @@ paths: schema: $ref: "#/components/schemas/Credit" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/preview: post: tags: @@ -6326,17 +5382,9 @@ paths: X-RateLimit-Limit: $ref: "#/components/headers/X-RateLimit-Limit" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/preview/purchase_order: post: tags: @@ -6357,17 +5405,9 @@ paths: X-RateLimit-Limit: $ref: "#/components/headers/X-RateLimit-Limit" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/projects: get: @@ -6396,17 +5436,9 @@ paths: schema: $ref: "#/components/schemas/Project" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' post: tags: - projects @@ -6432,17 +5464,9 @@ paths: schema: $ref: "#/components/schemas/Project" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/projects/{id}": get: tags: @@ -6477,17 +5501,9 @@ paths: schema: $ref: "#/components/schemas/Project" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' put: tags: - projects @@ -6521,17 +5537,9 @@ paths: schema: $ref: "#/components/schemas/Project" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' delete: tags: - projects @@ -6561,17 +5569,9 @@ paths: X-RateLimit-Limit: $ref: "#/components/headers/X-RateLimit-Limit" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/projects/{id}/edit": get: tags: @@ -6606,17 +5606,9 @@ paths: schema: $ref: "#/components/schemas/Project" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/projects/create: get: tags: @@ -6643,17 +5635,9 @@ paths: schema: $ref: "#/components/schemas/Project" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/projects/bulk: post: tags: @@ -6691,17 +5675,9 @@ paths: schema: $ref: "#/components/schemas/Project" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/projects/{id}/upload": put: tags: @@ -6736,17 +5712,9 @@ paths: schema: $ref: "#/components/schemas/Project" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/purchase_orders: get: tags: @@ -6773,17 +5741,9 @@ paths: schema: $ref: "#/components/schemas/Credit" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' post: tags: - purhcase_orders @@ -6809,17 +5769,9 @@ paths: schema: $ref: "#/components/schemas/Credit" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/purchase_orders/create: get: tags: @@ -6846,17 +5798,9 @@ paths: schema: $ref: "#/components/schemas/Credit" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/purchase_orders/{id}": get: tags: @@ -6891,17 +5835,9 @@ paths: schema: $ref: "#/components/schemas/Credit" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' delete: tags: - purchase_orders @@ -6931,17 +5867,9 @@ paths: X-RateLimit-Limit: $ref: "#/components/headers/X-RateLimit-Limit" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/purchase_orders/{id}/edit": get: tags: @@ -6976,17 +5904,9 @@ paths: schema: $ref: "#/components/schemas/Invoice" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/purchase_order/{id}": put: tags: @@ -7021,17 +5941,9 @@ paths: schema: $ref: "#/components/schemas/Credit" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/purchase_orders/bulk: post: tags: @@ -7065,17 +5977,9 @@ paths: X-RateLimit-Limit: $ref: "#/components/headers/X-RateLimit-Limit" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/purchase_orders/{id}/{action}": get: tags: @@ -7118,17 +6022,9 @@ paths: schema: $ref: "#/components/schemas/Invoice" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/purchase_orders/{id}/upload": put: tags: @@ -7163,17 +6059,9 @@ paths: schema: $ref: "#/components/schemas/Vendor" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/purchase_order/{invitation_key}/download": get: tags: @@ -7204,17 +6092,9 @@ paths: X-RateLimit-Limit: $ref: "#/components/headers/X-RateLimit-Limit" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/quotes: get: tags: @@ -7241,17 +6121,9 @@ paths: schema: $ref: "#/components/schemas/Quote" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' post: tags: - quotes @@ -7277,17 +6149,9 @@ paths: schema: $ref: "#/components/schemas/Quote" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/quotes/create: get: tags: @@ -7314,17 +6178,9 @@ paths: schema: $ref: "#/components/schemas/Quote" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/quotes/{id}": get: tags: @@ -7359,17 +6215,9 @@ paths: schema: $ref: "#/components/schemas/Quote" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' put: tags: - quotes @@ -7403,17 +6251,9 @@ paths: schema: $ref: "#/components/schemas/Quote" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' delete: tags: - quotes @@ -7443,17 +6283,9 @@ paths: X-RateLimit-Limit: $ref: "#/components/headers/X-RateLimit-Limit" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/quotes/{id}/edit": get: tags: @@ -7488,17 +6320,9 @@ paths: schema: $ref: "#/components/schemas/Quote" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/quotes/bulk: post: tags: @@ -7536,17 +6360,9 @@ paths: schema: $ref: "#/components/schemas/Quote" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/quotes/{id}/{action}": get: tags: @@ -7589,17 +6405,9 @@ paths: schema: $ref: "#/components/schemas/Quote" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/quote/{invitation_key}/download": get: tags: @@ -7630,17 +6438,9 @@ paths: X-RateLimit-Limit: $ref: "#/components/headers/X-RateLimit-Limit" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/quotes/{id}/upload": put: tags: @@ -7675,17 +6475,9 @@ paths: schema: $ref: "#/components/schemas/Quote" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/recurring_expenses: get: tags: @@ -7713,17 +6505,9 @@ paths: schema: $ref: "#/components/schemas/RecurringExpense" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' post: tags: - recurring_expenses @@ -7749,17 +6533,9 @@ paths: schema: $ref: "#/components/schemas/RecurringExpense" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/recurring_expenses/{id}": get: tags: @@ -7794,17 +6570,9 @@ paths: schema: $ref: "#/components/schemas/RecurringExpense" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' put: tags: - recurring_expenses @@ -7838,17 +6606,9 @@ paths: schema: $ref: "#/components/schemas/RecurringExpense" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' delete: tags: - recurring_expenses @@ -7878,17 +6638,9 @@ paths: X-RateLimit-Limit: $ref: "#/components/headers/X-RateLimit-Limit" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/recurring_expenses/{id}/edit": get: tags: @@ -7923,17 +6675,9 @@ paths: schema: $ref: "#/components/schemas/RecurringExpense" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/recurring_expenses/create: get: tags: @@ -7960,17 +6704,9 @@ paths: schema: $ref: "#/components/schemas/RecurringExpense" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/recurring_expenses/bulk: post: tags: @@ -8008,17 +6744,9 @@ paths: schema: $ref: "#/components/schemas/RecurringExpense" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/recurring_expenses/{id}/upload": put: tags: @@ -8053,17 +6781,9 @@ paths: schema: $ref: "#/components/schemas/RecurringExpense" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/recurring_invoices: get: tags: @@ -8090,17 +6810,9 @@ paths: schema: $ref: "#/components/schemas/RecurringInvoice" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' post: tags: - recurring_invoices @@ -8126,17 +6838,9 @@ paths: schema: $ref: "#/components/schemas/RecurringInvoice" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/recurring_invoices/create: get: tags: @@ -8163,17 +6867,9 @@ paths: schema: $ref: "#/components/schemas/RecurringInvoice" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/recurring_invoices/{id}": get: tags: @@ -8208,17 +6904,9 @@ paths: schema: $ref: "#/components/schemas/RecurringInvoice" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' put: tags: - recurring_invoices @@ -8252,17 +6940,9 @@ paths: schema: $ref: "#/components/schemas/RecurringInvoice" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' delete: tags: - recurring_invoices @@ -8292,17 +6972,9 @@ paths: X-RateLimit-Limit: $ref: "#/components/headers/X-RateLimit-Limit" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/recurring_invoices/{id}/edit": get: tags: @@ -8337,17 +7009,9 @@ paths: schema: $ref: "#/components/schemas/RecurringInvoice" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/recurring_invoice/{invitation_key}/download": get: tags: @@ -8378,17 +7042,9 @@ paths: X-RateLimit-Limit: $ref: "#/components/headers/X-RateLimit-Limit" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/recurring_invoices/bulk: post: tags: @@ -8426,17 +7082,9 @@ paths: schema: $ref: "#/components/schemas/RecurringInvoice" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/recurring_invoices/{id}/{action}": get: tags: @@ -8479,17 +7127,9 @@ paths: schema: $ref: "#/components/schemas/RecurringInvoice" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/recurring_invoices/{id}/upload": put: tags: @@ -8524,17 +7164,9 @@ paths: schema: $ref: "#/components/schemas/RecurringInvoice" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/recurring_quotes: get: tags: @@ -8561,17 +7193,9 @@ paths: schema: $ref: "#/components/schemas/RecurringQuote" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' post: tags: - recurring_quotes @@ -8597,17 +7221,9 @@ paths: schema: $ref: "#/components/schemas/RecurringQuote" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/recurring_quotes/create: get: tags: @@ -8634,17 +7250,9 @@ paths: schema: $ref: "#/components/schemas/RecurringQuote" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/recurring_quotes/{id}": get: tags: @@ -8679,17 +7287,9 @@ paths: schema: $ref: "#/components/schemas/RecurringQuote" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' put: tags: - recurring_quotes @@ -8723,17 +7323,9 @@ paths: schema: $ref: "#/components/schemas/RecurringQuote" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' delete: tags: - recurring_quotes @@ -8763,17 +7355,9 @@ paths: X-RateLimit-Limit: $ref: "#/components/headers/X-RateLimit-Limit" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/recurring_quotes/{id}/edit": get: tags: @@ -8808,17 +7392,9 @@ paths: schema: $ref: "#/components/schemas/RecurringQuote" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/recurring_quotes/bulk: post: tags: @@ -8856,17 +7432,9 @@ paths: schema: $ref: "#/components/schemas/RecurringQuote" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/recurring_quotes/{id}/{action}": get: tags: @@ -8909,17 +7477,9 @@ paths: schema: $ref: "#/components/schemas/RecurringQuote" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/reports/contacts: post: tags: @@ -8946,17 +7506,9 @@ paths: X-RateLimit-Limit: $ref: "#/components/headers/X-RateLimit-Limit" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/reports/clients: post: tags: @@ -8983,17 +7535,9 @@ paths: X-RateLimit-Limit: $ref: "#/components/headers/X-RateLimit-Limit" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/reports/credit: post: tags: @@ -9020,17 +7564,9 @@ paths: X-RateLimit-Limit: $ref: "#/components/headers/X-RateLimit-Limit" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/reports/documents: post: tags: @@ -9057,17 +7593,9 @@ paths: X-RateLimit-Limit: $ref: "#/components/headers/X-RateLimit-Limit" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/reports/expense: post: tags: @@ -9094,17 +7622,9 @@ paths: X-RateLimit-Limit: $ref: "#/components/headers/X-RateLimit-Limit" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/reports/invoice_items: post: tags: @@ -9131,17 +7651,9 @@ paths: X-RateLimit-Limit: $ref: "#/components/headers/X-RateLimit-Limit" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/reports/invoices: post: tags: @@ -9168,17 +7680,9 @@ paths: X-RateLimit-Limit: $ref: "#/components/headers/X-RateLimit-Limit" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/reports/payments: post: tags: @@ -9205,17 +7709,9 @@ paths: X-RateLimit-Limit: $ref: "#/components/headers/X-RateLimit-Limit" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/reports/products: post: tags: @@ -9242,17 +7738,9 @@ paths: X-RateLimit-Limit: $ref: "#/components/headers/X-RateLimit-Limit" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/reports/product_sales: post: tags: @@ -9279,17 +7767,9 @@ paths: X-RateLimit-Limit: $ref: "#/components/headers/X-RateLimit-Limit" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/reports/profitloss: post: tags: @@ -9316,17 +7796,9 @@ paths: X-RateLimit-Limit: $ref: "#/components/headers/X-RateLimit-Limit" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/reports/quote_items: post: tags: @@ -9353,17 +7825,9 @@ paths: X-RateLimit-Limit: $ref: "#/components/headers/X-RateLimit-Limit" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/reports/quotes: post: tags: @@ -9390,17 +7854,9 @@ paths: X-RateLimit-Limit: $ref: "#/components/headers/X-RateLimit-Limit" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/reports/recurring_invoices: post: tags: @@ -9427,17 +7883,9 @@ paths: X-RateLimit-Limit: $ref: "#/components/headers/X-RateLimit-Limit" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/reports/tasks: post: tags: @@ -9464,17 +7912,9 @@ paths: X-RateLimit-Limit: $ref: "#/components/headers/X-RateLimit-Limit" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/self-update: post: tags: @@ -9491,17 +7931,9 @@ paths: 200: description: "Success/failure response" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/statics: get: tags: @@ -9524,17 +7956,9 @@ paths: X-RateLimit-Limit: $ref: "#/components/headers/X-RateLimit-Limit" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/subscriptions: get: tags: @@ -9561,17 +7985,9 @@ paths: schema: $ref: "#/components/schemas/Subscription" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' post: tags: - subscriptions @@ -9597,17 +8013,9 @@ paths: schema: $ref: "#/components/schemas/Subscription" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/subscriptions/create: get: tags: @@ -9634,17 +8042,9 @@ paths: schema: $ref: "#/components/schemas/Subscription" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/subscriptions/{id}": get: tags: @@ -9679,17 +8079,9 @@ paths: schema: $ref: "#/components/schemas/Subscription" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' put: tags: - subscriptions @@ -9723,17 +8115,9 @@ paths: schema: $ref: "#/components/schemas/Subscription" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' delete: tags: - subscriptions @@ -9763,17 +8147,9 @@ paths: X-RateLimit-Limit: $ref: "#/components/headers/X-RateLimit-Limit" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/subscriptions/{id}/edit": get: tags: @@ -9808,17 +8184,9 @@ paths: schema: $ref: "#/components/schemas/Subscription" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/subscriptions/bulk: post: tags: @@ -9856,17 +8224,9 @@ paths: schema: $ref: "#/components/schemas/Subscription" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/support/messages/send: post: tags: @@ -9907,11 +8267,7 @@ paths: type: string example: true default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/system_logs: get: tags: @@ -9938,17 +8294,9 @@ paths: schema: $ref: "#/components/schemas/SystemLog" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/system_logs/{id}": get: tags: @@ -9983,17 +8331,9 @@ paths: schema: $ref: "#/components/schemas/SystemLog" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/tasks: get: tags: @@ -10021,17 +8361,9 @@ paths: schema: $ref: "#/components/schemas/Task" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' post: tags: - tasks @@ -10057,17 +8389,9 @@ paths: schema: $ref: "#/components/schemas/Task" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/tasks/{id}": get: tags: @@ -10102,17 +8426,9 @@ paths: schema: $ref: "#/components/schemas/Task" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' put: tags: - tasks @@ -10146,17 +8462,9 @@ paths: schema: $ref: "#/components/schemas/Task" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' delete: tags: - tasks @@ -10186,17 +8494,9 @@ paths: X-RateLimit-Limit: $ref: "#/components/headers/X-RateLimit-Limit" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/tasks/{id}/edit": get: tags: @@ -10231,17 +8531,9 @@ paths: schema: $ref: "#/components/schemas/Task" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/tasks/create: get: tags: @@ -10268,17 +8560,9 @@ paths: schema: $ref: "#/components/schemas/Task" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/tasks/bulk: post: tags: @@ -10316,17 +8600,9 @@ paths: schema: $ref: "#/components/schemas/Task" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/tasks/{id}/upload": put: tags: @@ -10361,17 +8637,9 @@ paths: schema: $ref: "#/components/schemas/Task" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/tasks/stort: post: tags: @@ -10394,17 +8662,9 @@ paths: X-RateLimit-Limit: $ref: "#/components/headers/X-RateLimit-Limit" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/task_schedulers/: get: tags: @@ -10425,11 +8685,7 @@ paths: X-RateLimit-Limit: $ref: "#/components/headers/X-RateLimit-Limit" default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' post: tags: - task_schedulers @@ -10456,17 +8712,9 @@ paths: X-RateLimit-Limit: $ref: "#/components/headers/X-RateLimit-Limit" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/invoices/task_schedulers: get: tags: @@ -10493,17 +8741,9 @@ paths: schema: $ref: "#/components/schemas/TaskSchedulerSchema" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/task_schedulers/{id}": get: tags: @@ -10532,11 +8772,7 @@ paths: X-RateLimit-Limit: $ref: "#/components/headers/X-RateLimit-Limit" default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' put: tags: - task_schedulers @@ -10571,17 +8807,9 @@ paths: X-RateLimit-Limit: $ref: "#/components/headers/X-RateLimit-Limit" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' delete: tags: - task_schedulers @@ -10609,11 +8837,7 @@ paths: X-RateLimit-Limit: $ref: "#/components/headers/X-RateLimit-Limit" default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/task_schedulers/bulk: post: tags: @@ -10651,17 +8875,9 @@ paths: schema: $ref: "#/components/schemas/TaskSchedulerSchema" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/task_statuses: get: tags: @@ -10689,17 +8905,9 @@ paths: schema: $ref: "#/components/schemas/TaskStatus" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' post: tags: - task_status @@ -10732,17 +8940,9 @@ paths: schema: $ref: "#/components/schemas/TaskStatus" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/task_statuses/create: get: tags: @@ -10769,17 +8969,9 @@ paths: schema: $ref: "#/components/schemas/TaskStatus" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/task_statuses/{id}": get: tags: @@ -10814,17 +9006,9 @@ paths: schema: $ref: "#/components/schemas/TaskStatus" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' put: tags: - task_status @@ -10858,17 +9042,9 @@ paths: schema: $ref: "#/components/schemas/TaskStatus" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' delete: tags: - task_statuss @@ -10898,17 +9074,9 @@ paths: X-RateLimit-Limit: $ref: "#/components/headers/X-RateLimit-Limit" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/task_statuses/{id}/edit": get: tags: @@ -10943,17 +9111,9 @@ paths: schema: $ref: "#/components/schemas/TaskStatus" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/task_statuses/bulk: post: tags: @@ -10991,17 +9151,9 @@ paths: schema: $ref: "#/components/schemas/TaskStatus" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/tax_rates: get: tags: @@ -11026,17 +9178,9 @@ paths: schema: $ref: "#/components/schemas/TaxRate" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/tax_rates/create: get: tags: @@ -11062,17 +9206,9 @@ paths: schema: $ref: "#/components/schemas/TaxRate" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/tax_rates/{id}": get: tags: @@ -11106,17 +9242,9 @@ paths: schema: $ref: "#/components/schemas/TaxRate" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' put: tags: - tax_rates @@ -11149,17 +9277,9 @@ paths: schema: $ref: "#/components/schemas/TaxRate" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' delete: tags: - tax_rates @@ -11188,17 +9308,9 @@ paths: X-RateLimit-Limit: $ref: "#/components/headers/X-RateLimit-Limit" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/tax_rates/{id}/edit": get: tags: @@ -11232,17 +9344,9 @@ paths: schema: $ref: "#/components/schemas/TaxRate" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/tax_rates/bulk: post: tags: @@ -11280,17 +9384,9 @@ paths: schema: $ref: "#/components/schemas/Webhook" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/templates: post: tags: @@ -11329,17 +9425,9 @@ paths: schema: $ref: "#/components/schemas/Template" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/tokens: get: tags: @@ -11367,17 +9455,9 @@ paths: schema: $ref: "#/components/schemas/CompanyToken" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' post: tags: - tokens @@ -11403,17 +9483,9 @@ paths: schema: $ref: "#/components/schemas/CompanyToken" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/tokens/{id}": get: tags: @@ -11448,17 +9520,9 @@ paths: schema: $ref: "#/components/schemas/CompanyToken" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' put: tags: - tokens @@ -11492,17 +9556,9 @@ paths: schema: $ref: "#/components/schemas/CompanyToken" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' delete: tags: - tokens @@ -11532,17 +9588,9 @@ paths: X-RateLimit-Limit: $ref: "#/components/headers/X-RateLimit-Limit" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/tokens/{id}/edit": get: tags: @@ -11577,17 +9625,9 @@ paths: schema: $ref: "#/components/schemas/CompanyToken" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/tokens/create: get: tags: @@ -11614,17 +9654,9 @@ paths: schema: $ref: "#/components/schemas/CompanyToken" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/tokens/bulk: post: tags: @@ -11662,17 +9694,9 @@ paths: schema: $ref: "#/components/schemas/CompanyToken" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/users: get: tags: @@ -11699,17 +9723,9 @@ paths: schema: $ref: "#/components/schemas/User" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' post: tags: - users @@ -11735,17 +9751,9 @@ paths: schema: $ref: "#/components/schemas/User" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/users/create: get: tags: @@ -11772,17 +9780,9 @@ paths: schema: $ref: "#/components/schemas/User" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/users/{id}": get: tags: @@ -11817,17 +9817,9 @@ paths: schema: $ref: "#/components/schemas/User" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' put: tags: - users @@ -11861,17 +9853,9 @@ paths: schema: $ref: "#/components/schemas/User" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' delete: tags: - users @@ -11909,17 +9893,9 @@ paths: X-RateLimit-Limit: $ref: "#/components/headers/X-RateLimit-Limit" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/users/{id}/edit": get: tags: @@ -11954,17 +9930,9 @@ paths: schema: $ref: "#/components/schemas/User" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/users/bulk: post: tags: @@ -12002,17 +9970,9 @@ paths: schema: $ref: "#/components/schemas/User" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/users/{user}/detach_from_company": delete: tags: @@ -12043,17 +10003,9 @@ paths: X-RateLimit-Limit: $ref: "#/components/headers/X-RateLimit-Limit" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/users/{user}/invite": post: tags: @@ -12084,17 +10036,9 @@ paths: X-RateLimit-Limit: $ref: "#/components/headers/X-RateLimit-Limit" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/users/{user}/reconfirm": post: tags: @@ -12125,17 +10069,9 @@ paths: X-RateLimit-Limit: $ref: "#/components/headers/X-RateLimit-Limit" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/vendors: get: tags: @@ -12163,17 +10099,9 @@ paths: schema: $ref: "#/components/schemas/Vendor" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' post: tags: - vendors @@ -12199,17 +10127,9 @@ paths: schema: $ref: "#/components/schemas/Vendor" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/vendors/{id}": get: tags: @@ -12244,17 +10164,9 @@ paths: schema: $ref: "#/components/schemas/Vendor" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' put: tags: - vendors @@ -12288,17 +10200,9 @@ paths: schema: $ref: "#/components/schemas/Vendor" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' delete: tags: - vendors @@ -12328,17 +10232,9 @@ paths: X-RateLimit-Limit: $ref: "#/components/headers/X-RateLimit-Limit" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/vendors/{id}/edit": get: tags: @@ -12373,17 +10269,9 @@ paths: schema: $ref: "#/components/schemas/Vendor" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/vendors/create: get: tags: @@ -12410,17 +10298,9 @@ paths: schema: $ref: "#/components/schemas/Vendor" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/vendors/bulk: post: tags: @@ -12458,17 +10338,9 @@ paths: schema: $ref: "#/components/schemas/Vendor" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/vendors/{id}/upload": put: tags: @@ -12503,17 +10375,9 @@ paths: schema: $ref: "#/components/schemas/Vendor" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/webcron: get: tags: @@ -12534,17 +10398,9 @@ paths: X-RateLimit-Limit: $ref: "#/components/headers/X-RateLimit-Limit" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/webhooks: get: tags: @@ -12572,17 +10428,9 @@ paths: schema: $ref: "#/components/schemas/Webhook" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' post: tags: - webhooks @@ -12608,17 +10456,9 @@ paths: schema: $ref: "#/components/schemas/Webhook" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/webhooks/{id}": get: tags: @@ -12653,17 +10493,9 @@ paths: schema: $ref: "#/components/schemas/Webhook" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' put: tags: - webhooks @@ -12697,17 +10529,9 @@ paths: schema: $ref: "#/components/schemas/Webhook" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' delete: tags: - Webhooks @@ -12737,17 +10561,9 @@ paths: X-RateLimit-Limit: $ref: "#/components/headers/X-RateLimit-Limit" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/webhooks/{id}/edit": get: tags: @@ -12782,17 +10598,9 @@ paths: schema: $ref: "#/components/schemas/Webhook" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/webhooks/create: get: tags: @@ -12819,17 +10627,9 @@ paths: schema: $ref: "#/components/schemas/Webhook" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/webhooks/bulk: post: tags: @@ -12867,14 +10667,6 @@ paths: schema: $ref: "#/components/schemas/Webhook" 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' diff --git a/openapi/paths/clients.yaml b/openapi/paths/clients.yaml index 261abd6dc9b7..55efd92ea611 100644 --- a/openapi/paths/clients.yaml +++ b/openapi/paths/clients.yaml @@ -83,11 +83,7 @@ schema: $ref: '#/components/schemas/Client' 401: - description: 'Authentication error' - content: - application/json: - schema: - $ref: '#components/schemas/AuthenticationError' + $ref: '#/components/responses/401' 403: $ref: '#/components/responses/403' 422: @@ -119,11 +115,7 @@ schema: $ref: '#/components/schemas/Client' 401: - description: 'Authentication error' - content: - application/json: - schema: - $ref: '#components/schemas/AuthenticationError' + $ref: '#/components/responses/401' 403: $ref: '#/components/responses/403' 422: @@ -164,11 +156,7 @@ schema: $ref: '#/components/schemas/Client' 401: - description: 'Authentication error' - content: - application/json: - schema: - $ref: '#components/schemas/AuthenticationError' + $ref: '#/components/responses/401' 403: $ref: '#/components/responses/403' 422: @@ -208,11 +196,7 @@ schema: $ref: '#/components/schemas/Client' 401: - description: 'Authentication error' - content: - application/json: - schema: - $ref: '#components/schemas/AuthenticationError' + $ref: '#/components/responses/401' 403: $ref: '#/components/responses/403' 422: @@ -248,11 +232,7 @@ X-RateLimit-Limit: $ref: '#/components/headers/X-RateLimit-Limit' 401: - description: 'Authentication error' - content: - application/json: - schema: - $ref: '#components/schemas/AuthenticationError' + $ref: '#/components/responses/401' 403: $ref: '#/components/responses/403' 422: @@ -293,11 +273,7 @@ schema: $ref: '#/components/schemas/Client' 401: - description: 'Authentication error' - content: - application/json: - schema: - $ref: '#components/schemas/AuthenticationError' + $ref: '#/components/responses/401' 403: $ref: '#/components/responses/403' 422: @@ -330,11 +306,7 @@ schema: $ref: '#/components/schemas/Client' 401: - description: 'Authentication error' - content: - application/json: - schema: - $ref: '#components/schemas/AuthenticationError' + $ref: '#/components/responses/401' 403: $ref: '#/components/responses/403' 422: @@ -378,11 +350,7 @@ schema: $ref: '#/components/schemas/Client' 401: - description: 'Authentication error' - content: - application/json: - schema: - $ref: '#components/schemas/AuthenticationError' + $ref: '#/components/responses/401' 403: $ref: '#/components/responses/403' 422: @@ -438,11 +406,7 @@ schema: $ref: '#/components/schemas/Client' 401: - description: 'Authentication error' - content: - application/json: - schema: - $ref: '#components/schemas/AuthenticationError' + $ref: '#/components/responses/401' 403: $ref: '#/components/responses/403' 422: @@ -479,11 +443,7 @@ X-RateLimit-Limit: $ref: '#/components/headers/X-RateLimit-Limit' 401: - description: 'Authentication error' - content: - application/json: - schema: - $ref: '#components/schemas/AuthenticationError' + $ref: '#/components/responses/401' 403: $ref: '#/components/responses/403' 422: @@ -528,11 +488,7 @@ X-RateLimit-Limit: $ref: '#/components/headers/X-RateLimit-Limit' 401: - description: 'Authentication error' - content: - application/json: - schema: - $ref: '#components/schemas/AuthenticationError' + $ref: '#/components/responses/401' 403: $ref: '#/components/responses/403' 422: diff --git a/openapi/paths/products.yaml b/openapi/paths/products.yaml index 2cecf78a3a1d..209b3d4fbf3a 100644 --- a/openapi/paths/products.yaml +++ b/openapi/paths/products.yaml @@ -27,29 +27,13 @@ schema: $ref: "#/components/schemas/Product" 401: - description: "Authentication error" - content: - application/json: - schema: - $ref: "#components/schemas/AuthenticationError" + $ref: '#/components/responses/401' 403: - description: "Authorization error" - content: - application/json: - schema: - $ref: "#components/schemas/AuthorizationError" + $ref: '#/components/responses/403' 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' post: tags: - products @@ -74,18 +58,14 @@ application/json: schema: $ref: "#/components/schemas/Product" + 401: + $ref: '#/components/responses/401' + 403: + $ref: '#/components/responses/403' 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/products/{id}": get: tags: @@ -120,29 +100,13 @@ schema: $ref: "#/components/schemas/Product" 401: - description: "Authentication error" - content: - application/json: - schema: - $ref: "#components/schemas/AuthenticationError" + $ref: '#/components/responses/401' 403: - description: "Authorization error" - content: - application/json: - schema: - $ref: "#components/schemas/AuthorizationError" + $ref: '#/components/responses/403' 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' put: tags: - products @@ -176,29 +140,13 @@ schema: $ref: "#/components/schemas/Product" 401: - description: "Authentication error" - content: - application/json: - schema: - $ref: "#components/schemas/AuthenticationError" + $ref: '#/components/responses/401' 403: - description: "Authorization error" - content: - application/json: - schema: - $ref: "#components/schemas/AuthorizationError" + $ref: '#/components/responses/403' 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' delete: tags: - products @@ -228,29 +176,13 @@ X-RateLimit-Limit: $ref: "#/components/headers/X-RateLimit-Limit" 401: - description: "Authentication error" - content: - application/json: - schema: - $ref: "#components/schemas/AuthenticationError" + $ref: '#/components/responses/401' 403: - description: "Authorization error" - content: - application/json: - schema: - $ref: "#components/schemas/AuthorizationError" + $ref: '#/components/responses/403' 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/products/{id}/edit": get: tags: @@ -285,29 +217,13 @@ schema: $ref: "#/components/schemas/Product" 401: - description: "Authentication error" - content: - application/json: - schema: - $ref: "#components/schemas/AuthenticationError" + $ref: '#/components/responses/401' 403: - description: "Authorization error" - content: - application/json: - schema: - $ref: "#components/schemas/AuthorizationError" + $ref: '#/components/responses/403' 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/products/create": get: tags: @@ -334,29 +250,13 @@ schema: $ref: "#/components/schemas/Product" 401: - description: "Authentication error" - content: - application/json: - schema: - $ref: "#components/schemas/AuthenticationError" + $ref: '#/components/responses/401' 403: - description: "Authorization error" - content: - application/json: - schema: - $ref: "#components/schemas/AuthorizationError" + $ref: '#/components/responses/403' 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' /api/v1/products/bulk: post: @@ -395,29 +295,13 @@ schema: $ref: "#/components/schemas/Product" 401: - description: "Authentication error" - content: - application/json: - schema: - $ref: "#components/schemas/AuthenticationError" + $ref: '#/components/responses/401' 403: - description: "Authorization error" - content: - application/json: - schema: - $ref: "#components/schemas/AuthorizationError" + $ref: '#/components/responses/403' 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default' "/api/v1/products/{id}/upload": put: @@ -467,26 +351,10 @@ schema: $ref: "#/components/schemas/Product" 401: - description: "Authentication error" - content: - application/json: - schema: - $ref: "#components/schemas/AuthenticationError" + $ref: '#/components/responses/401' 403: - description: "Authorization error" - content: - application/json: - schema: - $ref: "#components/schemas/AuthorizationError" + $ref: '#/components/responses/403' 422: - description: "Validation error" - content: - application/json: - schema: - $ref: "#/components/schemas/ValidationError" + $ref: '#/components/responses/422' default: - description: "Unexpected Error" - content: - application/json: - schema: - $ref: "#/components/schemas/Error" + $ref: '#/components/responses/default'