Home > @rushstack/node-core-library > JsonSchema > fromLoadedObject

JsonSchema.fromLoadedObject() method

Registers a JsonSchema that will be loaded from a file on disk.

Signature:

static fromLoadedObject(schemaObject: JsonObject): JsonSchema;

Parameters

Parameter Type Description
schemaObject JsonObject  

Returns:

JsonSchema

Remarks

NOTE: An error occurs if the file does not exist; however, the file itself is not loaded or validated until it the schema is actually used.