You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Api definition specifies that for different status codes, different objects are returned. The generated client always expects a DataDeliveryReceipt object, if the response is e.g. 412, an ApiException is thrown and I see the ValidationResponse as string in the ErrorContent. I expected to get the Error Code and the ValidationResponse object. What is the intended procedure in such a case or does the generator not support that?
openapi-generator version
6.0.0
OpenAPI declaration file content or url
responses:
"200":
description: A receipt of the data received.content:
application/json:
schema:
$ref: '#/components/schemas/DataDeliveryReceipt'"400":
description: Processing conflicts occurred.content:
application/json:
schema:
$ref: '#/components/schemas/ProcessingConflicts'"401":
description: Authorization failure."403":
description: No permission to the requested data with the given credentials."412":
description: Validation errors occured.content:
application/json:
schema:
$ref: '#/components/schemas/ValidationResponse'"500":
description: Technical error.
Description
The Api definition specifies that for different status codes, different objects are returned. The generated client always expects a DataDeliveryReceipt object, if the response is e.g. 412, an ApiException is thrown and I see the ValidationResponse as string in the ErrorContent. I expected to get the Error Code and the ValidationResponse object. What is the intended procedure in such a case or does the generator not support that?
openapi-generator version
6.0.0
OpenAPI declaration file content or url
The complete .yaml File can be found here. https://arge-heiwako.de/wp-content/uploads/2022/03/arge-spec-on-site-roles_1_1.zip
Related issues/PRs
#9966
The text was updated successfully, but these errors were encountered: