UNPKG

@nodescript/core

Version:

Visual programming language for Browser and Node

92 lines 2.1 kB
import { Schema } from 'airtight'; export const SchemaSpecSchema = new Schema({ id: 'SchemaSpec', type: 'object', properties: { type: { type: 'string', default: 'any', }, optional: { type: 'boolean', optional: true, }, nullable: { type: 'boolean', optional: true, }, id: { type: 'string', optional: true, }, title: { type: 'string', optional: true, }, description: { type: 'string', optional: true, }, default: { type: 'string', optional: true, }, metadata: { type: 'any', optional: true, }, properties: { type: 'object', optional: true, properties: {}, additionalProperties: { type: 'ref', schemaId: 'SchemaSpec', }, }, additionalProperties: { type: 'ref', optional: true, schemaId: 'SchemaSpec', }, items: { type: 'ref', optional: true, schemaId: 'SchemaSpec', }, refs: { type: 'array', optional: true, items: { type: 'ref', schemaId: 'SchemaSpec', } }, schemaId: { type: 'string', optional: true, }, enum: { type: 'array', items: { type: 'string' }, optional: true, }, regex: { type: 'string', optional: true, }, regexFlags: { type: 'string', optional: true, }, minimum: { type: 'number', optional: true, }, maximum: { type: 'number', optional: true, }, } }); //# sourceMappingURL=SchemaSpec.js.map