AttributeTypeSchema produces the JSON schema corresponding to the given attribute.
(api *expr.APIExpr, at *expr.AttributeExpr)
| 400 | |
| 401 | // AttributeTypeSchema produces the JSON schema corresponding to the given attribute. |
| 402 | func 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 |
no test coverage detected