UNPKG

@geek-fun/serverlessinsight

Version:

Full life cycle cross providers serverless application management for your fast-growing business.

38 lines (37 loc) 1.4 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.eventSchema = void 0; exports.eventSchema = { $id: 'https://serverlessinsight.geekfun.club/schemas/eventschema.json', type: 'object', patternProperties: { '.*': { type: 'object', properties: { name: { type: 'string' }, type: { type: 'string', enum: ['API_GATEWAY'] }, triggers: { type: 'array', items: { method: { type: 'string', enum: ['GET', 'POST', 'PUT', 'DELETE', 'ANY'] }, path: { type: 'string' }, backend: { type: 'string' }, required: ['method', 'path', 'backend'], }, }, domain: { type: 'object', additionalProperties: false, required: ['domain_name'], properties: { domain_name: { type: 'string' }, certificate_name: { type: 'string' }, certificate_body: { type: 'string' }, certificate_private_key: { type: 'string' }, }, }, }, required: ['name', 'type', 'triggers'], }, }, };