SchemaJsonLocater Class @preview

An ISchemaLocater implementation for locating and retrieving EC Schema objects using a function that returns the Schema Json for a given schema name

Implements

Methods

Name Description
constructor(_getSchema: SchemaPropsGetter): SchemaJsonLocater    
getSchema(schemaKey: SchemaKey, matchType: SchemaMatchType, context: SchemaContext): Promise<undefined | Schema> Get a schema by [SchemaKey]  
getSchemaInfo(schemaKey: SchemaKey, matchType: SchemaMatchType, context: SchemaContext): Promise<undefined | SchemaInfo> Gets the schema info which matches the provided SchemaKey.  
getSchemaSync(schemaKey: SchemaKey, _matchType: SchemaMatchType, context: SchemaContext): undefined | Schema Get a schema by [SchemaKey] synchronously.  

Defined in

Last Updated: 24 June, 2025