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.
30 lines
623 B
JavaScript
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',
|
|
},
|
|
],
|
|
});
|