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
47
vendor/zapier-platform/packages/schema/lib/schemas/JsonSchemaSchema.js
vendored
Normal file
47
vendor/zapier-platform/packages/schema/lib/schemas/JsonSchemaSchema.js
vendored
Normal file
|
|
@ -0,0 +1,47 @@
|
|||
'use strict';
|
||||
|
||||
const makeSchema = require('../utils/makeSchema');
|
||||
|
||||
module.exports = makeSchema({
|
||||
id: '/JsonSchemaSchema',
|
||||
description:
|
||||
'A JSON Schema object that describes the expected structure of a JSON value. Validated against JSON Schema Draft 4, 6, or 7 meta-schema (based on the `$schema` field, defaulting to Draft 7) via the validateJsonFieldSchema functional constraint.',
|
||||
type: 'object',
|
||||
additionalProperties: true,
|
||||
examples: [
|
||||
{ type: 'object', properties: { name: { type: 'string' } } },
|
||||
{ type: 'array', items: { type: 'string' } },
|
||||
{},
|
||||
{
|
||||
allOf: [{ type: 'object' }, { properties: { name: { type: 'string' } } }],
|
||||
not: { type: 'array' },
|
||||
},
|
||||
{
|
||||
type: 'object',
|
||||
properties: {
|
||||
name: { type: 'string' },
|
||||
age: { type: 'integer' },
|
||||
},
|
||||
required: ['name'],
|
||||
additionalProperties: false,
|
||||
},
|
||||
{
|
||||
$schema: 'http://json-schema.org/draft-07/schema#',
|
||||
type: 'object',
|
||||
properties: {
|
||||
name: { type: 'string' },
|
||||
},
|
||||
},
|
||||
],
|
||||
antiExamples: [
|
||||
{
|
||||
example: ['not', 'an', 'object'],
|
||||
reason: 'JSON Schema must be an object, not an array',
|
||||
},
|
||||
{
|
||||
example: { type: 'string' },
|
||||
reason:
|
||||
"JSON Schema type should be an object or an array. If a primitive is needed, use `type: 'string'` on the input field directly",
|
||||
},
|
||||
],
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue