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

Function ForcedTypeDSL

http/codegen/openapi/v3/testdata/dsls/types.go:225–239  ·  view source on GitHub ↗
(svcName, metName string)

Source from the content-addressed store, hash-verified

223}
224
225func ForcedTypeDSL(svcName, metName string) func() {
226 return func() {
227 var _ = Type("Forced", func() {
228 Attribute("foo")
229 Meta("type:generate:force")
230 })
231 var _ = Service(svcName, func() {
232 Method(metName, func() {
233 HTTP(func() {
234 POST("/")
235 })
236 })
237 })
238 }
239}
240
241func ForcedResultTypeDSL(svcName, metName string) func() {
242 return func() {

Callers 1

TestBuildBodyTypesFunction · 0.92

Calls 7

AttributeFunction · 0.85
MetaFunction · 0.85
MethodFunction · 0.85
POSTFunction · 0.85
TypeTypeAlias · 0.50
ServiceFunction · 0.50
HTTPFunction · 0.50

Tested by 1

TestBuildBodyTypesFunction · 0.74