Skip to content

Commit

Permalink
fix: allow for local example to override global (#3666)
Browse files Browse the repository at this point in the history
this is for generatIng openapi docs

Signed-off-by: Matt Williams <m@technovangelist.com>

Signed-off-by: Matt Williams <m@technovangelist.com>
  • Loading branch information
technovangelist committed Nov 18, 2022
1 parent 1d3ca86 commit 13a40fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/server/openapi.go
Original file line number Diff line number Diff line change
Expand Up @@ -189,8 +189,8 @@ func buildProperty(f reflect.StructField, t, parent reflect.Type, parentSchema *
}

s := &openapi3.Schema{}
updateSchemaFromStructTags(f, s)
setTypeInfo(t, s)
updateSchemaFromStructTags(f, s)

if s.Type == "array" {
s.Items = buildProperty(f, t.Elem(), parent, parentSchema)
Expand Down

0 comments on commit 13a40fc

Please sign in to comment.