Skip to main content

nx-plugin-typebox:extract-schema

Extract Schema Executor

Extracts the JSON schema from the schema file.

Options

exportName

  • (string): The name of the export in the schema file which contains the raw JSON schema.

Default: "JSONSchema"

schemaFile

  • (string): The file path to the typescript file containing the schema. Relative to the executor/generator's root directory. For example, schema.ts would be the proper value if your plugin contains generators laid out as ./src/generators/[generator-name]/(schema.ts|schema.json).

Default: "schema.ts"