AttributeTypeSchemaWithPrefix produces the JSON schema corresponding to the given attribute and adds the provided prefix to the type name
(api *expr.APIExpr, at *expr.AttributeExpr, prefix string)
| 406 | // AttributeTypeSchemaWithPrefix produces the JSON schema corresponding to the given attribute |
| 407 | // and adds the provided prefix to the type name |
| 408 | func AttributeTypeSchemaWithPrefix(api *expr.APIExpr, at *expr.AttributeExpr, prefix string) *Schema { |
| 409 | s := TypeSchemaWithPrefix(api, at.Type, prefix) |
| 410 | initAttributeValidation(s, at) |
| 411 | return s |
| 412 | } |
| 413 | |
| 414 | // ToString returns the string representation of the given type. |
| 415 | func ToString(val any) string { |
no test coverage detected