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

Function MapIntKeyObjectBodyDSL

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

Source from the content-addressed store, hash-verified

272}
273
274func MapIntKeyObjectBodyDSL(svcName, metName string) func() {
275 return func() {
276 MapData := Type("MapData", func() {
277 Attribute("id", String)
278 Attribute("value", String)
279 })
280
281 _ = Service(svcName, func() {
282 Method(metName, func() {
283 Payload(func() {
284 Attribute("intmap", MapOf(Int, ArrayOf(MapData)))
285 })
286 HTTP(func() {
287 POST("/")
288 })
289 })
290 })
291 }
292}
293
294func MapIntKeyStringBodyDSL(svcName, metName string) func() {
295 return func() {

Callers 1

TestMapTypesFunction · 0.92

Calls 9

AttributeFunction · 0.85
MethodFunction · 0.85
PayloadFunction · 0.85
MapOfFunction · 0.85
ArrayOfFunction · 0.85
POSTFunction · 0.85
TypeTypeAlias · 0.50
ServiceFunction · 0.50
HTTPFunction · 0.50

Tested by 1

TestMapTypesFunction · 0.74