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.
This commit is contained in:
commit
b4150c8250
1364 changed files with 6814366 additions and 0 deletions
45
vendor/zapier-platform/packages/schema/lib/schemas/FlatObjectSchema.js
vendored
Normal file
45
vendor/zapier-platform/packages/schema/lib/schemas/FlatObjectSchema.js
vendored
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
'use strict';
|
||||
|
||||
const makeSchema = require('../utils/makeSchema');
|
||||
|
||||
module.exports = makeSchema({
|
||||
id: '/FlatObjectSchema',
|
||||
description: 'An object whose values can only be primitives',
|
||||
type: 'object',
|
||||
patternProperties: {
|
||||
'[^\\s]+': {
|
||||
description:
|
||||
'Any key may exist in this flat object as long as its values are simple.',
|
||||
anyOf: [
|
||||
{ type: 'null' },
|
||||
{ type: 'string' },
|
||||
{ type: 'integer' },
|
||||
{ type: 'number' },
|
||||
{ type: 'boolean' },
|
||||
],
|
||||
},
|
||||
},
|
||||
examples: [
|
||||
{ a: 1, b: 2, c: 3 },
|
||||
{ a: 1.2, b: 2.2, c: 3.3 },
|
||||
{ a: 'a', b: 'b', c: 'c' },
|
||||
{ a: true, b: true, c: false },
|
||||
{ a: 'a', b: 2, c: 3.1, d: true, e: false },
|
||||
{ 123: 'hello' },
|
||||
],
|
||||
antiExamples: [
|
||||
{
|
||||
example: { a: {}, b: 2 },
|
||||
reason: 'Invalid value for key: a (objects are not allowed)',
|
||||
},
|
||||
{
|
||||
example: { a: [], b: 2 },
|
||||
reason: 'Invalid value for key: a (arrays are not allowed)',
|
||||
},
|
||||
{
|
||||
example: { '': 1 },
|
||||
reason: 'Key cannot be empty',
|
||||
},
|
||||
],
|
||||
additionalProperties: false,
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue