LogoRobo.js
Framework

normalizeSchema()

Function: normalizeSchema()

function normalizeSchema(schema): NormalizedSchema

Normalize a schema definition into internal format.

Validates the schema structure and computes derived information like required fields, unique fields, and indexed fields.

Parameters

ParameterTypeDescription
schemaSchemaFieldsRaw schema definition from user

Returns

NormalizedSchema

Normalized schema for internal use

Throws

FlashcoreValidationError if schema is invalid

On this page