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

Struct Union

expr/types.go:59–66  ·  view source on GitHub ↗

Union is the type used to describe unions.

Source from the content-addressed store, hash-verified

57
58 // Union is the type used to describe unions.
59 Union struct {
60 TypeName string
61 Values []*NamedAttributeExpr
62 // TypeKey is the discriminator field name for JSON marshaling (defaults to "type")
63 TypeKey string
64 // ValueKey is the value field name for JSON marshaling (defaults to "value")
65 ValueKey string
66 }
67
68 // UserType is the interface implemented by all user type
69 // implementations. Plugins may leverage this interface to introduce

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected