getSchemaSync Method

Attempts to retrieve a Schema with the given SchemaKey by using the configured search paths to locate the JSON schema file from the file system.

getSchemaSync(schemaKey: SchemaKey, matchType: SchemaMatchType, context: SchemaContext): Schema | undefined

Parameter Type Description
schemaKey SchemaKey  
matchType SchemaMatchType The SchemaMatchType
context SchemaContext The SchemaContext that will control the lifetime of the schema.

Returns - Schema | undefined

Defined in

Last Updated: 04 June, 2026