const myScope = scope({
customId: 'string & /[A-HJKMNP-TV-Z]{26}/',
});
const typeWithCustomId = myScope.type({
id: 'customId',
});
const data = validateObject(
{ id: 'A'.repeat(26) },
typeWithCustomId,
);
const myScope = scope({
customId: 'string & /[A-HJKMNP-TV-Z]{26}/',
});
const typeWithCustomId = myScope.type({
id: 'customId',
});
const data = validateObject(
{ id: 'A'.repeat(26) },
typeWithCustomId,
);