net/goai: issue The openAPI document api.json generated by gf has a problem with the properties={} parameter setting in each field. #3660
Labels
bug
It is confirmed a bug, but don't worry, we'll handle it.
Go version
go version go1.22.0 windows/amd64
GoFrame version
2.7.1
Can this bug be reproduced with the latest release?
Option Yes
What did you do?
编辑:internal\cmd\cmd.go
api/v1/file.go
What did you see happen?
生成的api.json文件的FileUploadReq部分为
文件上传组件显示不正常:
What did you expect to see?
生成的api.json文件的FileUploadReq部分应该为
需要把“"properties": {},”去除。去除之后,才能在这个UI(<script src="https://cdn.jsdelivr.net/npm/openapi-ui-dist@latest/lib/openapi-ui.umd.js"></script>)中显示才正常。其他类型也是,需要在xxxReq中把生成的空的“"properties": {},”去除。
The text was updated successfully, but these errors were encountered: