You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is easily implemented by chaining my own assertions on top, but I think it's still worth suggesting:
It would be nice if I could pass a custom key type to records, e.g. here in this case I want to limit the length of keys used in a record.
constdocument=v.object({services: v.record(v.object({type: v.string(),// ...}),v.string().assert((input)=>input.length<=32,`service id too long (max 32)`),),});
The text was updated successfully, but these errors were encountered:
This is easily implemented by chaining my own assertions on top, but I think it's still worth suggesting:
It would be nice if I could pass a custom key type to records, e.g. here in this case I want to limit the length of keys used in a record.
The text was updated successfully, but these errors were encountered: