openapi-codegen-ts
openapi-codegen-ts copied to clipboard
[BUG] compilation fails setting `withDefaults` under certain conditions
Description
Compilation fails when withDefaults is set under the following conditions:
- The OpenAPI specification does not include any endpoint without additional parameters.
- The parameter types vary across different endpoints.
This PR introduces a new end-to-end test that replicates the failure scenario under these conditions, ensuring that the issue can be consistently reproduced for debugging and future regression testing.
Motivation and Context
How Has This Been Tested?
e2e scenario
Screenshots (if appropriate):
Types of changes
- [ ] Chore (improvement with no change in the behaviour)
- [x] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
Checklist:
- [ ] My change requires a change to the documentation.
- [ ] I have updated the documentation accordingly.
Jira Pull request Link
It seems this Pull Request has no issues that refers to Jira!!! Please check it out.