Skip to main content

validateSchema

@webda/core


Function: validateSchema()

validateSchema(schema, object, ignoreRequired?): true

Defined in: packages/core/src/schemas/hooks.ts:95

Validate the object with schema

Parameters​

schema​

string

path to use

object​

any

to validate

ignoreRequired?​

boolean

whether to ignore required fields

Returns​

true

the result