Skip to content

Commit

Permalink
1. 新增生成ts工具make:ts
Browse files Browse the repository at this point in the history
2. 生成js工具增加http_from、info_tags选项
3. 修复生成js的部分字段类型缺失的问题
4. 修复生成swagger时的required在部分场景不正确问题
  • Loading branch information
zodial committed Dec 14, 2023
1 parent f12e0aa commit 2b9387b
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions console/commands/js_request.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
"encoding/json"
"fmt"
"github.com/ctfang/command"
"github.com/go-home-admin/home/bootstrap/utils"
"github.com/go-home-admin/toolset/console/commands/openapi"
"github.com/go-home-admin/toolset/parser"
"io"
Expand Down Expand Up @@ -329,9 +328,6 @@ func getObjectStrFromRef(ref string, swagger openapi.Spec) string {
return "number"
}
for key, schema := range swagger.Definitions[def].Properties {
if key == "list" {
utils.Dump(key)
}
if !isResponse && !parser.InArrString(key, swagger.Definitions[def].Required) {
key = key + "?"
}
Expand Down

0 comments on commit 2b9387b

Please sign in to comment.