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

Function TypeSchema

http/codegen/openapi/json_schema.go:309–311  ·  view source on GitHub ↗

TypeSchema produces the JSON schema corresponding to the given data type.

(api *expr.APIExpr, t expr.DataType)

Source from the content-addressed store, hash-verified

307
308// TypeSchema produces the JSON schema corresponding to the given data type.
309func TypeSchema(api *expr.APIExpr, t expr.DataType) *Schema {
310 return TypeSchemaWithPrefix(api, t, "")
311}
312
313// TypeSchemaWithPrefix produces the JSON schema corresponding to the given data type
314// and adds the provided prefix to the type name

Callers 2

buildPathFromFileServerFunction · 0.92
buildAttributeSchemaFunction · 0.85

Calls 1

TypeSchemaWithPrefixFunction · 0.85

Tested by

no test coverage detected