acacode / acacode/swagger-typescript-api

Swagger type definition was skipped by generator

未關閉
#668 0 則留言 3 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
TypeScript
星號
4.1k
分支
436
PR 合併指標
30 天內沒有已合併 PR

描述

I tried to generate an api class based on the swagger file from emailengine. Everything went well in general, but some child types definitions were missing.

For example ImapConfiguration SmtpConfiguration types were defined as string "false"

Here is the swagger file on the basis of which the generation took place

[swagger.json](https://github.com/acacode/swagger-typescript-api/files/13639169/swagger.json)

Definition of missing types in the file is also present. ImapConfiguration on 6266 and SmtpConfiguration on 6340

Command that I use `
npx swagger-typescript-api -r
-p swagger.json
--axios
--single-http-client
--unwrap-response-data
--api-class-name EmailEngineApi
--union-enums
--disableStrictSSL
--extract-request-params
--extract-request-body
--extract-response-body
--extract-response-error
--extract-enums
`

![image](https://github.com/acacode/swagger-typescript-api/assets/93624409/e0809c20-78f2-4082-98c3-49e931e8f64e)

貢獻指南

這個儲存庫沒有索引到貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。