Skip to content

Type Alias: AnalyzeSchemaOptions

AnalyzeSchemaOptions = object

Defined in: analyzeSchema.ts:47

Options for analyzeSchema.

Properties

formulaConflictBehavior?

optional formulaConflictBehavior?: "ignore" | "warn" | "error"

Defined in: analyzeSchema.ts:59

What to do when multiple allOf branches define a formula for the same path.

  • 'ignore': silently take the last definition.
  • 'warn' (default): emit console.warn and take the last definition.
  • 'error': throw a TypeError synchronously.

formulaContextKey?

optional formulaContextKey?: string

Defined in: analyzeSchema.ts:51

Schema key that selects the context mode for a computed field. Defaults to 'x-formula-context'.


formulaKey?

optional formulaKey?: string

Defined in: analyzeSchema.ts:49

Schema key that marks a field as computed. Defaults to 'x-formula'.

Released under the MIT License.