mirror of
https://github.com/steveiliop56/tinyauth.git
synced 2026-07-12 04:51:12 +00:00
fix: remove omitempty suffix from docs gen
This commit is contained in:
@@ -52,6 +52,8 @@ func buildMdEntry(child reflect.StructField, childValue reflect.Value, parentPat
|
||||
return
|
||||
}
|
||||
|
||||
tag = strings.TrimSuffix(tag, ",omitempty")
|
||||
|
||||
value := childValue.Interface()
|
||||
|
||||
entry := MarkdownEntry{
|
||||
@@ -88,6 +90,8 @@ func buildMdMapEntry(child reflect.StructField, parentPath string, entries *[]Ma
|
||||
return
|
||||
}
|
||||
|
||||
tag = strings.TrimSuffix(tag, ",omitempty")
|
||||
|
||||
mapPath := parentPath + tag + ".[name]."
|
||||
valueType := fieldType.Elem()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user