tur/schema-string
stdlib/schema-string.tur
owned String sibling for schema-error-message.
Since: v2 (string-adoption-stdlib-plan, batch 3)
defn
schema-error-message-string
(schema-error-message-string [errs : int] :)
format an error Vec into one owned String.
Parameters
| errs | a Vec of SchemaError |
Returns
An owned String, one "path: message" line per error (newline-separated).
Example
(string/to-cstr (schema-error-message-string errs)) ; => "user.age: expected :int, got :cstr"
Since: v2