master-zapier-plan-draft/vendor/zapier-platform/packages/schema/lib/schemas/OutputFieldsSchema.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

20 lines
584 B
JavaScript

'use strict';
const makeSchema = require('../utils/makeSchema');
const PlainOutputFieldSchema = require('./PlainOutputFieldSchema');
const FunctionSchema = require('./FunctionSchema');
module.exports = makeSchema(
{
id: '/OutputFieldsSchema',
description: 'An array or collection of output fields.',
type: 'array',
items: {
oneOf: [{ $ref: PlainOutputFieldSchema.id }, { $ref: FunctionSchema.id }],
},
examples: [[{ key: 'abc' }]],
antiExamples: [{ example: {}, reason: 'Must be an array' }],
},
[PlainOutputFieldSchema, FunctionSchema],
);