master-zapier-plan-draft/vendor/zapier-platform/packages/schema/lib/schemas/KeySchema.js
George Lambert b4150c8250 Milestone 0: import zappier billing, Verae middleware, and Zapier research
Compose-ready workspace: packages/zappier (rate card, portal, Stripe),
packages/verae-zapier-middleware (timestamp + NATS), packages/verae-zapier
(CLI app), vendor/zapier-platform, and research/zapier vendor corpus.

Gate 0 structure checks pass. Product code and research are not yet wired.
2026-09-09 02:37:36 -04:00

30 lines
623 B
JavaScript

'use strict';
const makeSchema = require('../utils/makeSchema');
module.exports = makeSchema({
id: '/KeySchema',
description: 'A unique identifier for this item.',
type: 'string',
minLength: 2,
pattern: '^[a-zA-Z]+[a-zA-Z0-9_]*$',
examples: ['vk', 'validKey', 'ValidKey', 'Valid_Key_2'],
antiExamples: [
{
example: '',
reason: 'Cannot be empty',
},
{
example: 'A',
reason: 'Minimum of two characters',
},
{
example: '1_Key',
reason: 'Must start with a letter',
},
{
example: 'a-Key',
reason: 'Must not use dashes',
},
],
});