mirror of
https://gitee.com/johng/gf
synced 2026-07-06 13:42:46 +08:00
3120a8bc2290650fd7f51c06de6d341e925b0066
This pull request updates the logic in `golangTypeToOAIType` to improve how Go types are mapped to OpenAPI types. The most important changes are focused on handling specific struct and slice types more accurately, ensuring better compatibility with OpenAPI specifications. Type mapping improvements: * Added explicit handling for `[]uint8` and `uuid.UUID` types, mapping both to `TypeString`. This ensures these commonly used types are correctly represented in OpenAPI schemas. * Refactored the switch statement to check for specific struct types (`time.Time`, `gtime.Time`, `ghttp.UploadFile`, `[]uint8`, and `uuid.UUID`) before falling back to the kind-based mapping. This improves accuracy for special-case types.
fix(container): Add NilChecker Support to gmap, gset, and gtree for Typed Nil Issue Resolution (#4605)
fix(contrib/drivers): resolve field duplication issue when same table/column names exist across different MySQL/MariaDB databases (#4577)
refract(gerror): add ITextArgs interface and its implements, mainly for i18n that needs text and args separately (#4597)
fix(contrib/drivers): resolve field duplication issue when same table/column names exist across different MySQL/MariaDB databases (#4577)
English | 简体中文
A powerful framework for faster, easier, and more efficient project development.
Installation
go get -u github.com/gogf/gf/v2
Documentation
- Official Site: https://goframe.org
- Official Site(en): https://goframe.org/en
- 国内镜像: https://goframe.org.cn
- Mirror Site: Github Pages
- Mirror Site: Offline Docs
- GoDoc API: https://pkg.go.dev/github.com/gogf/gf/v2
- Doc Source: https://github.com/gogf/gf-site
Contributors
💖 Thanks to all the contributors who made GoFrame possible 💖
License
GoFrame is licensed under the MIT License, 100% free and open-source, forever.
Languages
GO
100%
