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
Describe the bug
If I fix the function to allow int or string for the status code (related #124 ) and my response schema type is object. Responses will not generate even if the status code is a valid status code of 200
Expected behavior
If response is an object, it the response code should generate to reference the mode of the object to validate the data in the response.
OpenAPI Spec File
responses:
"200":
description: Success
content:
application/json:
schema:
$ref: "#/components/schemas/LinkResponse"
default:
description: Unknown error
content:
application/json:
schema:
$ref: "#/components/schemas/Error"
LinkResponse:
type: object
description: The response f
properties:
data:
type: object
description: The container object for a
properties:
account-id:
type: string
format: uuid
description: unique identifier for the account
provider-id:
type: string
description: provider id.
Error:
type: object
properties:
code:
type: integer
description: An HTTP status code
example: 500
message:
type: string
description: A message describing why the error was thrown.
example: The server has exploded.
Desktop (please complete the following information):
OS: [e.g. macOS 10.15.1]
Python Version: [e.g. 3.8.0]
openapi-python-client version [e.g. 0.1.0]
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered:
I believe the combination of #124 and #162 will together solve this issue, so I'm going to close this in an attempt to deduplicate some issues. If there's something more at play here that I'm missing, please reopen and let me know.
Describe the bug
If I fix the function to allow int or string for the status code (related #124 ) and my response schema type is object. Responses will not generate even if the status code is a valid status code of 200
Expected behavior
If response is an object, it the response code should generate to reference the mode of the object to validate the data in the response.
OpenAPI Spec File
Desktop (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: