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
[ N/A] What's the actual output vs expected output?
[ No] [Optional] Sponsorship to speed up the bug fix or feature request (example)
Description
The Python module's type validation fails on my model. It is unclear why this fails, but when using _check_input_type and _check_return_type to bypass the type validation, I find that there are times where it is still attempting to validate. I tracked this down to model_utils.mustache. It appears that the _check_type flag is not being passed into 'attempt_convert_item'. I do not know if this is by design, but passing this parameter along solved my issue. I will submit a PR with the update.
openapi-generator version
5.0.0-SNAPSHOT
OpenAPI declaration file content or url
I do not have a model definition that reproduces this. I cannot upload my model
Generation Details
N/A
Steps to reproduce
N/A
Related issues/PRs
N/A
Suggest a fix
add 'check_type=_check_type' to the 'attempt_convert_item' call on line 1122 (as of commit b5ce7ce)
The text was updated successfully, but these errors were encountered:
* Fixes issue 8014, _check_type flag not being honored.
Updated model_utils.mustache to pass the check_type flag into attempt_convert_item(). Failure to do so
results in type validation errors occurring when the user has specifically requested that they be disabled.
* regenerated samples
Co-authored-by: Frank Levine <[email protected]>
Bug Report Checklist
Description
The Python module's type validation fails on my model. It is unclear why this fails, but when using _check_input_type and _check_return_type to bypass the type validation, I find that there are times where it is still attempting to validate. I tracked this down to model_utils.mustache. It appears that the _check_type flag is not being passed into 'attempt_convert_item'. I do not know if this is by design, but passing this parameter along solved my issue. I will submit a PR with the update.
openapi-generator version
5.0.0-SNAPSHOT
OpenAPI declaration file content or url
I do not have a model definition that reproduces this. I cannot upload my model
Generation Details
N/A
Steps to reproduce
N/A
Related issues/PRs
N/A
Suggest a fix
add 'check_type=_check_type' to the 'attempt_convert_item' call on line 1122 (as of commit b5ce7ce)
The text was updated successfully, but these errors were encountered: