Keys
Checks if all keys of the given object match the given object schema
import Schema from "@rapidom/schema";
const Validator = Schema.object().keys({
foo: Schema.number().min(56).integer().required(),
bar: Schema.boolean().default(false),
});
Last updated
Was this helpful?