UNPKG

@nodescript/core

Version:

Visual programming language for Browser and Node

22 lines 663 B
import { Schema } from 'airtight'; import { NodeMetadataSchema } from './NodeMetadata.js'; import { PropSpecSchema } from './PropSpec.js'; import { SubgraphSpecSchema } from './SubgraphSpec.js'; export const NodeSpecSchema = new Schema({ id: 'NodeSpec', type: 'object', properties: { ref: { type: 'string' }, props: { type: 'object', properties: {}, additionalProperties: PropSpecSchema.schema, }, metadata: NodeMetadataSchema.schema, subgraph: { ...SubgraphSpecSchema.schema, optional: true, }, }, }); //# sourceMappingURL=NodeSpec.js.map