Extracted the shared "InternalServerError" response at the OpenAPI specification in the library target.

This commit is contained in:
2026-07-26 10:00:52 +02:00
parent da7202b8a4
commit 2b34b5a497
+8 -6
View File
@@ -91,7 +91,7 @@ paths:
'404': '404':
$ref: '#/components/responses/NotFound' $ref: '#/components/responses/NotFound'
'500': '500':
description: The service is currently unavailable. $ref: '#/components/responses/InternalServerError'
/amiiboseries: /amiiboseries:
get: get:
tags: tags:
@@ -119,7 +119,7 @@ paths:
'404': '404':
$ref: '#/components/responses/NotFound' $ref: '#/components/responses/NotFound'
'500': '500':
description: The service is currently unavailable. $ref: '#/components/responses/InternalServerError'
/character: /character:
get: get:
tags: tags:
@@ -147,7 +147,7 @@ paths:
'404': '404':
$ref: '#/components/responses/NotFound' $ref: '#/components/responses/NotFound'
'500': '500':
description: The service is currently unavailable. $ref: '#/components/responses/InternalServerError'
/gameseries: /gameseries:
get: get:
tags: tags:
@@ -175,7 +175,7 @@ paths:
'404': '404':
$ref: '#/components/responses/NotFound' $ref: '#/components/responses/NotFound'
'500': '500':
description: The service is currently unavailable. $ref: '#/components/responses/InternalServerError'
/type: /type:
get: get:
tags: tags:
@@ -203,7 +203,7 @@ paths:
'404': '404':
$ref: '#/components/responses/NotFound' $ref: '#/components/responses/NotFound'
'500': '500':
description: The service is currently unavailable. $ref: '#/components/responses/InternalServerError'
/lastupdated: /lastupdated:
get: get:
tags: tags:
@@ -222,7 +222,7 @@ paths:
schema: schema:
$ref: '#/components/schemas/LastUpdated' $ref: '#/components/schemas/LastUpdated'
'500': '500':
description: The service is currently unavailable. $ref: '#/components/responses/InternalServerError'
components: components:
parameters: parameters:
AmiiboSeries: AmiiboSeries:
@@ -320,6 +320,8 @@ components:
application/json: application/json:
schema: schema:
$ref: '#/components/schemas/ServiceError' $ref: '#/components/schemas/ServiceError'
InternalServerError:
description: The service is currently unavailable.
NotFound: NotFound:
description: No results were found matching the given filter criteria. description: No results were found matching the given filter criteria.
content: content: