SchemaJsonLocater Class

A 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<T extends Schema<T>>(schemaKey: Readonly<SchemaKey>, matchType: SchemaMatchType, context: SchemaContext): Promise<undefined | T> Get a schema by [SchemaKey]  
getSchemaInfo(schemaKey: Readonly<SchemaKey>, matchType: SchemaMatchType, context: SchemaContext): Promise<undefined | SchemaInfo> Gets the schema info which matches the provided SchemaKey.  
getSchemaSync<T extends Schema<T>>(schemaKey: Readonly<SchemaKey>, _matchType: SchemaMatchType, context: SchemaContext): undefined | T Get a schema by [SchemaKey] synchronously.  

Defined in

Last Updated: 25 April, 2024