lukeautry / tsoa

Build OpenAPI-compliant REST APIs using TypeScript and Node
MIT License
3.45k stars 494 forks source link

Fix param examples incorrectly made into arrays #1465

Closed pablo-redradix closed 10 months ago

pablo-redradix commented 1 year ago

fixes #1464

All Submissions:

Potential Problems With The Approach

It would be better to allow for multiple examples in methods having @BodyProp parameters, but the current solution to toss multiple examples into an array does not work as expected (it assumes that the example value of the prop is the array itself).

Multiple examples need to be addressed at the schema level rather than the prop level. This exceeds the scope of this bugfix.

Test plan

github-actions[bot] commented 1 year ago

This PR is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days

github-actions[bot] commented 11 months ago

This PR is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days