goctl: v1.8.4-beta (#4890)

This commit is contained in:
kesonan
2025-05-25 13:36:56 +08:00
committed by GitHub
parent 2de3e397ff
commit f3edd4b880
5 changed files with 54 additions and 31 deletions

View File

@@ -24,6 +24,19 @@ func propertiesFromType(ctx Context, tp apiSpec.Type) (spec.SchemaProperties, []
example, defaultValue any
enum []any
)
pathTag, _ := tag.Get(tagPath)
if pathTag != nil {
return
}
formTag, _ := tag.Get(tagForm)
if formTag != nil {
return
}
headerTag, _ := tag.Get(tagHeader)
if headerTag != nil {
return
}
jsonTag, _ := tag.Get(tagJson)
if jsonTag != nil {
jsonTagString = jsonTag.Name