Interface: GetActiveSchema
Defined in: packages/core/src/application/use-cases/get-active-schema.ts:52
Resolves and returns a schema — either the project's active schema or an arbitrary schema identified by reference or file path.
For project mode, delegates to ResolveSchema. For ref and file modes, resolves through the SchemaRegistry with extends chain resolution, without applying project plugins or overrides.
Methods
execute()
execute(
input?,options?):Promise<GetActiveSchemaResult>
Defined in: packages/core/src/application/use-cases/get-active-schema.ts:93
Executes the use case.
Parameters
input?
Optional input specifying ref or file mode. When omitted, resolves the project's active schema.
options?
Optional options for raw mode.
Returns
Promise<GetActiveSchemaResult>
The resolved schema or raw schema data