getSchemaSync Method

Attempts to get a schema from the locater. Yields undefined if no matching schema is found. For schemas that may have references, construct and call through a SchemaContext instead.

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

Parameter Type Description
schemaKey SchemaKey key to look up
matchType SchemaMatchType how to match key against candidate schemas
context SchemaContext context for loading schema references

Returns - Schema | undefined

Defined in

Last Updated: 07 May, 2026