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

Function ObjectErrorResponseBodyDSL

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

Source from the content-addressed store, hash-verified

206}
207
208func ObjectErrorResponseBodyDSL(svcName, metName string) func() {
209 return func() {
210 var _ = Service(svcName, func() {
211 Method(metName, func() {
212 Error("bad", func() {
213 Attribute("name")
214 Attribute("age", Int)
215 })
216 HTTP(func() {
217 POST("/")
218 Response("bad", StatusBadRequest)
219 })
220 })
221 })
222 }
223}
224
225func ForcedTypeDSL(svcName, metName string) func() {
226 return func() {

Callers 1

TestBuildBodyTypesFunction · 0.92

Calls 7

MethodFunction · 0.85
AttributeFunction · 0.85
POSTFunction · 0.85
ServiceFunction · 0.50
ErrorFunction · 0.50
HTTPFunction · 0.50
ResponseStruct · 0.50

Tested by 1

TestBuildBodyTypesFunction · 0.74