Skip to content

Commit c7b7a0f

Browse files
authored
Properly propagate alias types user examples (#3685)
When used in HTTP bodies.
1 parent 22cc08c commit c7b7a0f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

http/codegen/service_data.go

+1
Original file line numberDiff line numberDiff line change
@@ -949,6 +949,7 @@ func makeHTTPTypeRecursive(att *expr.AttributeExpr, seen map[string]struct{}) *e
949949
}
950950
}
951951
att.DefaultValue = dt.Attribute().DefaultValue
952+
att.UserExamples = dt.Attribute().UserExamples
952953
}
953954
if _, ok := seen[dt.ID()]; ok {
954955
return att

0 commit comments

Comments
 (0)