@owsp/gen-plugin
v0.12.12
Published
Custom Nx executors to support OpenWinSpec codegen and validation.
Readme
gen-plugin
Custom Nx executors to support OpenWinSpec codegen and validation.
Executors
- json-creator — convert YAML schemas to JSON
- types-creator — generate TypeScript types from meta schemas
- entity-types-creator — discover entity types and primary keys
- const-creator — generate const arrays from TS unions and schema annotations (x-consts)
- schema-bundles-creator — produce schema bundle file for runtime usage
- schema-linter — lint JSON Schemas (allOf enum/const intersections, duplicate x-order)
Usage
Build plugin (required after changes):
npx nx run gen-plugin:buildRun individual executors (examples):
# Convert YAML -> JSON
npx nx run gen-plugin:json-creator
# Lint schemas (fails on issues)
npx nx run gen-plugin:schema-linterThe js package integrates these executors in its build pipeline; see packages/js/package.json targets for the exact order.
