Closed programatix closed 1 month ago
I found that I can specify the operationId
manually with Tspec.DefineApiSpec
, so this issue can be resolved without requiring a fix on tspec. However, it would be good if the auto generated operationId
is in accordance to OpenAPI spec.
Describe the bug The generated
openapi.json
caused https://editor.swagger.io/ to generate incomplete html2 document. This is due tooperationId
value assigned by ts-spec such as,The root cause of the issue is due to the value containing
/
,{
and}
.To Reproduce Steps to reproduce the behavior:
openapi.json
openapi.json
Generate Client
-> html2Expected behavior When used with other tools such as https://editor.swagger.io/, it can generate a complete document. The following is the result after removing all the
/
,{
and}
charactes fromoperationId
. Taking the examples given above, they are corrected to the following,Screenshots Currently, generated document is incomplete. It's missing the schema contents and sample codes are not generated.
Desktop (please complete the following information):
Additional context