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

Function ForcedResultTypeDSL

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

Source from the content-addressed store, hash-verified

239}
240
241func ForcedResultTypeDSL(svcName, metName string) func() {
242 return func() {
243 var _ = ResultType("Forced", func() {
244 Attributes(func() {
245 Attribute("foo")
246 })
247 Meta("type:generate:force")
248 })
249 var _ = Service(svcName, func() {
250 Method(metName, func() {
251 HTTP(func() {
252 POST("/")
253 })
254 })
255 })
256 }
257}
258
259func MapIntKeyBodyDSL(svcName, metName string) func() {
260 return func() {

Callers 1

TestBuildBodyTypesFunction · 0.92

Calls 8

ResultTypeFunction · 0.85
AttributesFunction · 0.85
AttributeFunction · 0.85
MetaFunction · 0.85
MethodFunction · 0.85
POSTFunction · 0.85
ServiceFunction · 0.50
HTTPFunction · 0.50

Tested by 1

TestBuildBodyTypesFunction · 0.74