Function: getSchema()

February 7, 2026 ยท View on GitHub

CTRF


CTRF / getSchema

Function: getSchema()

getSchema(version): object

Defined in: schema.ts:69

Parameters

version

string

The spec version (MAJOR.MINOR.PATCH) to get the schema for

Returns

object

The JSON Schema object for that version

Throws

SchemaVersionError if the version is not supported

Example

const v0_0Schema = getSchema('0.0.0');
const v1_0Schema = getSchema('1.0.0');

Contents

  1. 1Parameters
  2. 1.1version
  3. 2Returns
  4. 3Throws
  5. 4Example