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

Function TypeRef

http/codegen/openapi/json_schema.go:257–259  ·  view source on GitHub ↗

TypeRef produces the JSON reference to the type definition.

(api *expr.APIExpr, ut *expr.UserTypeExpr)

Source from the content-addressed store, hash-verified

255
256// TypeRef produces the JSON reference to the type definition.
257func TypeRef(api *expr.APIExpr, ut *expr.UserTypeExpr) string {
258 return TypeRefWithPrefix(api, ut, "")
259}
260
261// TypeRefWithPrefix produces the JSON reference to the type definition and adds the provided prefix
262// to the type name

Callers

nothing calls this directly

Calls 1

TypeRefWithPrefixFunction · 0.85

Tested by

no test coverage detected