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

Function ResultTypeRef

http/codegen/openapi/json_schema.go:228–230  ·  view source on GitHub ↗

ResultTypeRef produces the JSON reference to the media type definition with the given view.

(api *expr.APIExpr, mt *expr.ResultTypeExpr, view string)

Source from the content-addressed store, hash-verified

226// ResultTypeRef produces the JSON reference to the media type definition with
227// the given view.
228func ResultTypeRef(api *expr.APIExpr, mt *expr.ResultTypeExpr, view string) string {
229 return ResultTypeRefWithPrefix(api, mt, view, "")
230}
231
232// ResultTypeRefWithPrefix produces the JSON reference to the media type definition with
233// the given view and adds the provided prefix to the type name

Callers

nothing calls this directly

Calls 1

ResultTypeRefWithPrefixFunction · 0.85

Tested by

no test coverage detected