The html generation out of the swagger docs doesn't seem 100% correct, it randomly fails setting the examples.
Sorting
[x] bug report
[ ] feature request
[ ] support request
I confirm that I
[x] used the search to make sure that a similar issue hasn't already been submit
Expected Behavior
I would expect the whole swagger docs are generated in HTML, representing the swagger JSON schema.
Current Behavior
Considering the following code:
/**
* Creates a new name
*/
@Post()
public async createName(
@Body() model: CreateNameModel,
): Promise<CreateItemResponse | MessageResponse> {
// Does stuff
}
I would expect to see an example here, but I see string:
However, you can see it in the example tab:
This is inconsistent, because sometimes (randomly) it gets generated, but there is at least one or two examples that are missing in the whole swagger docs, but the swagger docs seem well generated:
I am not really sure, I just have a swagger schema defined as the code provided above, sometimes it works sometimes it doesn't but it's really random. I've checked for JSON errors on the examples but I can't see any
The html generation out of the swagger docs doesn't seem 100% correct, it randomly fails setting the examples.
Sorting
Expected Behavior
I would expect the whole swagger docs are generated in HTML, representing the swagger JSON schema.
Current Behavior
Considering the following code:
And:
I would expect to see an example here, but I see string:![Screenshot 2024-07-02 at 16 16 34](https://github.com/lukeautry/tsoa/assets/16720378/8febd031-cd6b-48f8-bb00-52534a7b3a66)
However, you can see it in the example tab:![Screenshot 2024-07-02 at 16 23 00](https://github.com/lukeautry/tsoa/assets/16720378/52f33785-08a4-4f40-bee0-c1f71d80c9ff)
This is inconsistent, because sometimes (randomly) it gets generated, but there is at least one or two examples that are missing in the whole swagger docs, but the swagger docs seem well generated:
Possible Solution
No idea on this
Steps to Reproduce
I am not really sure, I just have a swagger schema defined as the code provided above, sometimes it works sometimes it doesn't but it's really random. I've checked for JSON errors on the examples but I can't see any
Context (Environment)
TSOA: 6.1.5 Node: v20.12.2