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

Function mustGenerateType

http/codegen/openapi/v3/types.go:512–522  ·  view source on GitHub ↗
(meta expr.MetaExpr)

Source from the content-addressed store, hash-verified

510}
511
512func mustGenerateType(meta expr.MetaExpr) bool {
513 if _, ok := meta["type:generate:force"]; ok {
514 return true
515 }
516 if n, ok := meta.Last("openapi:typename"); ok {
517 if n != "" {
518 return true
519 }
520 }
521 return false
522}

Callers 1

buildBodyTypesFunction · 0.85

Calls 1

LastMethod · 0.80

Tested by

no test coverage detected