MCPcopy Create free account
hub / github.com/goadesign/goa / resolvedAliasAttribute

Function resolvedAliasAttribute

http/codegen/openapi/v2/builder.go:423–428  ·  view source on GitHub ↗
(at *expr.AttributeExpr)

Source from the content-addressed store, hash-verified

421}
422
423func resolvedAliasAttribute(at *expr.AttributeExpr) *expr.AttributeExpr {
424 if expr.IsAlias(at.Type) {
425 return at.Type.(expr.UserType).Attribute()
426 }
427 return at
428}
429
430func initAttributeValidations(at *expr.AttributeExpr, def any) {
431 resolved := resolvedAliasAttribute(at)

Callers 3

paramForFunction · 0.85
openAPITypeFormatFunction · 0.85
initAttributeValidationsFunction · 0.85

Calls 2

IsAliasFunction · 0.92
AttributeMethod · 0.65

Tested by

no test coverage detected