n8n-nodes-semble v2.1.0


n8n-nodes-semble / core/SchemaRegistry / SchemaRegistryUtils

Class: SchemaRegistryUtils

Defined in: core/SchemaRegistry.ts:593

Utility functions for schema management

Constructors

Constructor

new SchemaRegistryUtils(): SchemaRegistryUtils

Returns

SchemaRegistryUtils

Methods

createSchema()

static createSchema(name, type, fields, version): ResourceSchema

Defined in: core/SchemaRegistry.ts:597

Create schema from field definitions

Parameters

name

string

type

SembleResourceType

fields

Partial\<FieldSchema>[]

version

string = '1.0.0'

Returns

ResourceSchema


getDefaultActions()

static getDefaultActions(type): SembleActionType[]

Defined in: core/SchemaRegistry.ts:634

Get default actions for a resource type

Parameters

type

SembleResourceType

Returns

SembleActionType[]


registerCommonSchemas()

static registerCommonSchemas(registry): void

Defined in: core/SchemaRegistry.ts:642

Register common Semble schemas

Parameters

registry

SchemaRegistry

Returns

void