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

Function AttributeTypeSchema

http/codegen/openapi/json_schema.go:402–404  ·  view source on GitHub ↗

AttributeTypeSchema produces the JSON schema corresponding to the given attribute.

(api *expr.APIExpr, at *expr.AttributeExpr)

Source from the content-addressed store, hash-verified

400
401// AttributeTypeSchema produces the JSON schema corresponding to the given attribute.
402func AttributeTypeSchema(api *expr.APIExpr, at *expr.AttributeExpr) *Schema {
403 return AttributeTypeSchemaWithPrefix(api, at, "")
404}
405
406// AttributeTypeSchemaWithPrefix produces the JSON schema corresponding to the given attribute
407// and adds the provided prefix to the type name

Callers 1

Calls 1

Tested by

no test coverage detected