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.
25 lines
552 B
JavaScript
25 lines
552 B
JavaScript
'use strict';
|
|
|
|
const makeSchema = require('../utils/makeSchema');
|
|
|
|
module.exports = makeSchema({
|
|
id: '/ResultsSchema',
|
|
description: 'An array of objects suitable for returning in perform calls.',
|
|
type: 'array',
|
|
items: {
|
|
type: 'object',
|
|
// TODO: require id, ID, Id property?
|
|
minProperties: 1,
|
|
},
|
|
examples: [[{ name: 'Alex Trebek' }]],
|
|
antiExamples: [
|
|
{
|
|
example: 1,
|
|
reason: 'Invalid type (must be array)',
|
|
},
|
|
{
|
|
example: [1],
|
|
reason: 'Invalid type (must be array of objects)',
|
|
},
|
|
],
|
|
});
|