TypeSchema produces the JSON schema corresponding to the given data type.
(api *expr.APIExpr, t expr.DataType)
| 307 | |
| 308 | // TypeSchema produces the JSON schema corresponding to the given data type. |
| 309 | func 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 |
no test coverage detected