@azx-pbc/axiom-compiler 0.0.0-stage → 0.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +415 -2
- package/dist/article.d.ts +12 -0
- package/dist/article.d.ts.map +1 -0
- package/dist/article.js +16 -0
- package/dist/article.js.map +1 -0
- package/dist/cli/args.d.ts +101 -0
- package/dist/cli/args.d.ts.map +1 -0
- package/dist/cli/args.js +158 -0
- package/dist/cli/args.js.map +1 -0
- package/dist/cli/check.d.ts +2 -0
- package/dist/cli/check.d.ts.map +1 -0
- package/dist/cli/check.js +33 -0
- package/dist/cli/check.js.map +1 -0
- package/dist/cli/compile.d.ts +2 -0
- package/dist/cli/compile.d.ts.map +1 -0
- package/dist/cli/compile.js +43 -0
- package/dist/cli/compile.js.map +1 -0
- package/dist/cli/count.d.ts +15 -0
- package/dist/cli/count.d.ts.map +1 -0
- package/dist/cli/count.js +21 -0
- package/dist/cli/count.js.map +1 -0
- package/dist/cli/dataset.d.ts +28 -0
- package/dist/cli/dataset.d.ts.map +1 -0
- package/dist/cli/dataset.js +115 -0
- package/dist/cli/dataset.js.map +1 -0
- package/dist/cli/diff.d.ts +2 -0
- package/dist/cli/diff.d.ts.map +1 -0
- package/dist/cli/diff.js +297 -0
- package/dist/cli/diff.js.map +1 -0
- package/dist/cli/explain.d.ts +2 -0
- package/dist/cli/explain.d.ts.map +1 -0
- package/dist/cli/explain.js +95 -0
- package/dist/cli/explain.js.map +1 -0
- package/dist/cli/fields.d.ts +11 -0
- package/dist/cli/fields.d.ts.map +1 -0
- package/dist/cli/fields.js +13 -0
- package/dist/cli/fields.js.map +1 -0
- package/dist/cli/main.d.ts +2 -0
- package/dist/cli/main.d.ts.map +1 -0
- package/dist/cli/main.js +40 -0
- package/dist/cli/main.js.map +1 -0
- package/dist/cli/read.d.ts +56 -0
- package/dist/cli/read.d.ts.map +1 -0
- package/dist/cli/read.js +179 -0
- package/dist/cli/read.js.map +1 -0
- package/dist/cli/render.d.ts +58 -0
- package/dist/cli/render.d.ts.map +1 -0
- package/dist/cli/render.js +422 -0
- package/dist/cli/render.js.map +1 -0
- package/dist/cli/schema.d.ts +28 -0
- package/dist/cli/schema.d.ts.map +1 -0
- package/dist/cli/schema.js +46 -0
- package/dist/cli/schema.js.map +1 -0
- package/dist/cli/suite-report.d.ts +18 -0
- package/dist/cli/suite-report.d.ts.map +1 -0
- package/dist/cli/suite-report.js +58 -0
- package/dist/cli/suite-report.js.map +1 -0
- package/dist/cli/suites.d.ts +25 -0
- package/dist/cli/suites.d.ts.map +1 -0
- package/dist/cli/suites.js +67 -0
- package/dist/cli/suites.js.map +1 -0
- package/dist/cli/terminal.d.ts +45 -0
- package/dist/cli/terminal.d.ts.map +1 -0
- package/dist/cli/terminal.js +119 -0
- package/dist/cli/terminal.js.map +1 -0
- package/dist/cli/test.d.ts +12 -0
- package/dist/cli/test.d.ts.map +1 -0
- package/dist/cli/test.js +199 -0
- package/dist/cli/test.js.map +1 -0
- package/dist/cli/usage.d.ts +15 -0
- package/dist/cli/usage.d.ts.map +1 -0
- package/dist/cli/usage.js +95 -0
- package/dist/cli/usage.js.map +1 -0
- package/dist/cli.d.ts +3 -0
- package/dist/cli.d.ts.map +1 -0
- package/dist/cli.js +51 -0
- package/dist/cli.js.map +1 -0
- package/dist/compile/artifact-members.d.ts +57 -0
- package/dist/compile/artifact-members.d.ts.map +1 -0
- package/dist/compile/artifact-members.js +130 -0
- package/dist/compile/artifact-members.js.map +1 -0
- package/dist/compile/artifact.d.ts +20 -0
- package/dist/compile/artifact.d.ts.map +1 -0
- package/dist/compile/artifact.js +87 -0
- package/dist/compile/artifact.js.map +1 -0
- package/dist/compile/compilation.d.ts +46 -0
- package/dist/compile/compilation.d.ts.map +1 -0
- package/dist/compile/compilation.js +4 -0
- package/dist/compile/compilation.js.map +1 -0
- package/dist/compile/computed.d.ts +22 -0
- package/dist/compile/computed.d.ts.map +1 -0
- package/dist/compile/computed.js +245 -0
- package/dist/compile/computed.js.map +1 -0
- package/dist/compile/condition-warnings.d.ts +12 -0
- package/dist/compile/condition-warnings.d.ts.map +1 -0
- package/dist/compile/condition-warnings.js +26 -0
- package/dist/compile/condition-warnings.js.map +1 -0
- package/dist/compile/conditions.d.ts +18 -0
- package/dist/compile/conditions.d.ts.map +1 -0
- package/dist/compile/conditions.js +22 -0
- package/dist/compile/conditions.js.map +1 -0
- package/dist/compile/cross-checks.d.ts +67 -0
- package/dist/compile/cross-checks.d.ts.map +1 -0
- package/dist/compile/cross-checks.js +238 -0
- package/dist/compile/cross-checks.js.map +1 -0
- package/dist/compile/datasets.d.ts +52 -0
- package/dist/compile/datasets.d.ts.map +1 -0
- package/dist/compile/datasets.js +183 -0
- package/dist/compile/datasets.js.map +1 -0
- package/dist/compile/dead-weight.d.ts +26 -0
- package/dist/compile/dead-weight.d.ts.map +1 -0
- package/dist/compile/dead-weight.js +244 -0
- package/dist/compile/dead-weight.js.map +1 -0
- package/dist/compile/declaration-rules.d.ts +54 -0
- package/dist/compile/declaration-rules.d.ts.map +1 -0
- package/dist/compile/declaration-rules.js +510 -0
- package/dist/compile/declaration-rules.js.map +1 -0
- package/dist/compile/declarations.d.ts +44 -0
- package/dist/compile/declarations.d.ts.map +1 -0
- package/dist/compile/declarations.js +160 -0
- package/dist/compile/declarations.js.map +1 -0
- package/dist/compile/document.d.ts +4 -0
- package/dist/compile/document.d.ts.map +1 -0
- package/dist/compile/document.js +13 -0
- package/dist/compile/document.js.map +1 -0
- package/dist/compile/expression.d.ts +38 -0
- package/dist/compile/expression.d.ts.map +1 -0
- package/dist/compile/expression.js +288 -0
- package/dist/compile/expression.js.map +1 -0
- package/dist/compile/hashes.d.ts +26 -0
- package/dist/compile/hashes.d.ts.map +1 -0
- package/dist/compile/hashes.js +96 -0
- package/dist/compile/hashes.js.map +1 -0
- package/dist/compile/item-targets.d.ts +12 -0
- package/dist/compile/item-targets.d.ts.map +1 -0
- package/dist/compile/item-targets.js +287 -0
- package/dist/compile/item-targets.js.map +1 -0
- package/dist/compile/messages.d.ts +8 -0
- package/dist/compile/messages.d.ts.map +1 -0
- package/dist/compile/messages.js +62 -0
- package/dist/compile/messages.js.map +1 -0
- package/dist/compile/option-availability.d.ts +51 -0
- package/dist/compile/option-availability.d.ts.map +1 -0
- package/dist/compile/option-availability.js +171 -0
- package/dist/compile/option-availability.js.map +1 -0
- package/dist/compile/option-codes.d.ts +27 -0
- package/dist/compile/option-codes.d.ts.map +1 -0
- package/dist/compile/option-codes.js +212 -0
- package/dist/compile/option-codes.js.map +1 -0
- package/dist/compile/references.d.ts +14 -0
- package/dist/compile/references.d.ts.map +1 -0
- package/dist/compile/references.js +126 -0
- package/dist/compile/references.js.map +1 -0
- package/dist/compile/rows-from.d.ts +27 -0
- package/dist/compile/rows-from.d.ts.map +1 -0
- package/dist/compile/rows-from.js +164 -0
- package/dist/compile/rows-from.js.map +1 -0
- package/dist/compile/rules.d.ts +58 -0
- package/dist/compile/rules.d.ts.map +1 -0
- package/dist/compile/rules.js +327 -0
- package/dist/compile/rules.js.map +1 -0
- package/dist/compile/suggestions.d.ts +52 -0
- package/dist/compile/suggestions.d.ts.map +1 -0
- package/dist/compile/suggestions.js +633 -0
- package/dist/compile/suggestions.js.map +1 -0
- package/dist/compile/targets.d.ts +22 -0
- package/dist/compile/targets.d.ts.map +1 -0
- package/dist/compile/targets.js +125 -0
- package/dist/compile/targets.js.map +1 -0
- package/dist/compile/types.d.ts +84 -0
- package/dist/compile/types.d.ts.map +1 -0
- package/dist/compile/types.js +2 -0
- package/dist/compile/types.js.map +1 -0
- package/dist/compile/warning.d.ts +45 -0
- package/dist/compile/warning.d.ts.map +1 -0
- package/dist/compile/warning.js +2 -0
- package/dist/compile/warning.js.map +1 -0
- package/dist/compile-yaml.d.ts +23 -0
- package/dist/compile-yaml.d.ts.map +1 -0
- package/dist/compile-yaml.js +30 -0
- package/dist/compile-yaml.js.map +1 -0
- package/dist/compile.d.ts +78 -0
- package/dist/compile.d.ts.map +1 -0
- package/dist/compile.js +372 -0
- package/dist/compile.js.map +1 -0
- package/dist/csv/limits.d.ts +43 -0
- package/dist/csv/limits.d.ts.map +1 -0
- package/dist/csv/limits.js +51 -0
- package/dist/csv/limits.js.map +1 -0
- package/dist/csv/scalar.d.ts +33 -0
- package/dist/csv/scalar.d.ts.map +1 -0
- package/dist/csv/scalar.js +77 -0
- package/dist/csv/scalar.js.map +1 -0
- package/dist/datasets/csv.d.ts +46 -0
- package/dist/datasets/csv.d.ts.map +1 -0
- package/dist/datasets/csv.js +293 -0
- package/dist/datasets/csv.js.map +1 -0
- package/dist/datasets/declaration.d.ts +16 -0
- package/dist/datasets/declaration.d.ts.map +1 -0
- package/dist/datasets/declaration.js +104 -0
- package/dist/datasets/declaration.js.map +1 -0
- package/dist/datasets/diagnostics.d.ts +65 -0
- package/dist/datasets/diagnostics.d.ts.map +1 -0
- package/dist/datasets/diagnostics.js +2 -0
- package/dist/datasets/diagnostics.js.map +1 -0
- package/dist/datasets/diff.d.ts +46 -0
- package/dist/datasets/diff.d.ts.map +1 -0
- package/dist/datasets/diff.js +84 -0
- package/dist/datasets/diff.js.map +1 -0
- package/dist/datasets/document.d.ts +12 -0
- package/dist/datasets/document.d.ts.map +1 -0
- package/dist/datasets/document.js +382 -0
- package/dist/datasets/document.js.map +1 -0
- package/dist/datasets/index.d.ts +43 -0
- package/dist/datasets/index.d.ts.map +1 -0
- package/dist/datasets/index.js +68 -0
- package/dist/datasets/index.js.map +1 -0
- package/dist/datasets/repair.d.ts +26 -0
- package/dist/datasets/repair.d.ts.map +1 -0
- package/dist/datasets/repair.js +60 -0
- package/dist/datasets/repair.js.map +1 -0
- package/dist/document-path.d.ts +62 -0
- package/dist/document-path.d.ts.map +1 -0
- package/dist/document-path.js +200 -0
- package/dist/document-path.js.map +1 -0
- package/dist/expr/boundary.d.ts +8 -0
- package/dist/expr/boundary.d.ts.map +1 -0
- package/dist/expr/boundary.js +243 -0
- package/dist/expr/boundary.js.map +1 -0
- package/dist/expr/compile-expr.d.ts +35 -0
- package/dist/expr/compile-expr.d.ts.map +1 -0
- package/dist/expr/compile-expr.js +66 -0
- package/dist/expr/compile-expr.js.map +1 -0
- package/dist/expr/deprecation.d.ts +23 -0
- package/dist/expr/deprecation.d.ts.map +1 -0
- package/dist/expr/deprecation.js +28 -0
- package/dist/expr/deprecation.js.map +1 -0
- package/dist/expr/diagnostics.d.ts +31 -0
- package/dist/expr/diagnostics.d.ts.map +1 -0
- package/dist/expr/diagnostics.js +34 -0
- package/dist/expr/diagnostics.js.map +1 -0
- package/dist/expr/lexer.d.ts +49 -0
- package/dist/expr/lexer.d.ts.map +1 -0
- package/dist/expr/lexer.js +277 -0
- package/dist/expr/lexer.js.map +1 -0
- package/dist/expr/lint-warnings.d.ts +11 -0
- package/dist/expr/lint-warnings.d.ts.map +1 -0
- package/dist/expr/lint-warnings.js +20 -0
- package/dist/expr/lint-warnings.js.map +1 -0
- package/dist/expr/lint.d.ts +41 -0
- package/dist/expr/lint.d.ts.map +1 -0
- package/dist/expr/lint.js +1034 -0
- package/dist/expr/lint.js.map +1 -0
- package/dist/expr/parse/aggregates.d.ts +13 -0
- package/dist/expr/parse/aggregates.d.ts.map +1 -0
- package/dist/expr/parse/aggregates.js +48 -0
- package/dist/expr/parse/aggregates.js.map +1 -0
- package/dist/expr/parse/budget.d.ts +11 -0
- package/dist/expr/parse/budget.d.ts.map +1 -0
- package/dist/expr/parse/budget.js +57 -0
- package/dist/expr/parse/budget.js.map +1 -0
- package/dist/expr/parse/grammar.d.ts +9 -0
- package/dist/expr/parse/grammar.d.ts.map +1 -0
- package/dist/expr/parse/grammar.js +699 -0
- package/dist/expr/parse/grammar.js.map +1 -0
- package/dist/expr/parse/literals.d.ts +20 -0
- package/dist/expr/parse/literals.d.ts.map +1 -0
- package/dist/expr/parse/literals.js +132 -0
- package/dist/expr/parse/literals.js.map +1 -0
- package/dist/expr/parse/stream.d.ts +60 -0
- package/dist/expr/parse/stream.d.ts.map +1 -0
- package/dist/expr/parse/stream.js +151 -0
- package/dist/expr/parse/stream.js.map +1 -0
- package/dist/expr/parser.d.ts +45 -0
- package/dist/expr/parser.d.ts.map +1 -0
- package/dist/expr/parser.js +110 -0
- package/dist/expr/parser.js.map +1 -0
- package/dist/expr/print/spell.d.ts +78 -0
- package/dist/expr/print/spell.d.ts.map +1 -0
- package/dist/expr/print/spell.js +592 -0
- package/dist/expr/print/spell.js.map +1 -0
- package/dist/expr/print.d.ts +20 -0
- package/dist/expr/print.d.ts.map +1 -0
- package/dist/expr/print.js +102 -0
- package/dist/expr/print.js.map +1 -0
- package/dist/expr/suggest.d.ts +26 -0
- package/dist/expr/suggest.d.ts.map +1 -0
- package/dist/expr/suggest.js +77 -0
- package/dist/expr/suggest.js.map +1 -0
- package/dist/expr/typecheck/aggregates.d.ts +8 -0
- package/dist/expr/typecheck/aggregates.d.ts.map +1 -0
- package/dist/expr/typecheck/aggregates.js +334 -0
- package/dist/expr/typecheck/aggregates.js.map +1 -0
- package/dist/expr/typecheck/arithmetic.d.ts +6 -0
- package/dist/expr/typecheck/arithmetic.d.ts.map +1 -0
- package/dist/expr/typecheck/arithmetic.js +258 -0
- package/dist/expr/typecheck/arithmetic.js.map +1 -0
- package/dist/expr/typecheck/arity.d.ts +38 -0
- package/dist/expr/typecheck/arity.d.ts.map +1 -0
- package/dist/expr/typecheck/arity.js +173 -0
- package/dist/expr/typecheck/arity.js.map +1 -0
- package/dist/expr/typecheck/calls.d.ts +6 -0
- package/dist/expr/typecheck/calls.d.ts.map +1 -0
- package/dist/expr/typecheck/calls.js +137 -0
- package/dist/expr/typecheck/calls.js.map +1 -0
- package/dist/expr/typecheck/comparison.d.ts +13 -0
- package/dist/expr/typecheck/comparison.d.ts.map +1 -0
- package/dist/expr/typecheck/comparison.js +200 -0
- package/dist/expr/typecheck/comparison.js.map +1 -0
- package/dist/expr/typecheck/compound.d.ts +24 -0
- package/dist/expr/typecheck/compound.d.ts.map +1 -0
- package/dist/expr/typecheck/compound.js +175 -0
- package/dist/expr/typecheck/compound.js.map +1 -0
- package/dist/expr/typecheck/context.d.ts +44 -0
- package/dist/expr/typecheck/context.d.ts.map +1 -0
- package/dist/expr/typecheck/context.js +2 -0
- package/dist/expr/typecheck/context.js.map +1 -0
- package/dist/expr/typecheck/datasets.d.ts +17 -0
- package/dist/expr/typecheck/datasets.d.ts.map +1 -0
- package/dist/expr/typecheck/datasets.js +136 -0
- package/dist/expr/typecheck/datasets.js.map +1 -0
- package/dist/expr/typecheck/digest.d.ts +7 -0
- package/dist/expr/typecheck/digest.d.ts.map +1 -0
- package/dist/expr/typecheck/digest.js +44 -0
- package/dist/expr/typecheck/digest.js.map +1 -0
- package/dist/expr/typecheck/fold.d.ts +41 -0
- package/dist/expr/typecheck/fold.d.ts.map +1 -0
- package/dist/expr/typecheck/fold.js +71 -0
- package/dist/expr/typecheck/fold.js.map +1 -0
- package/dist/expr/typecheck/gate-folds.d.ts +22 -0
- package/dist/expr/typecheck/gate-folds.d.ts.map +1 -0
- package/dist/expr/typecheck/gate-folds.js +40 -0
- package/dist/expr/typecheck/gate-folds.js.map +1 -0
- package/dist/expr/typecheck/guards.d.ts +6 -0
- package/dist/expr/typecheck/guards.d.ts.map +1 -0
- package/dist/expr/typecheck/guards.js +38 -0
- package/dist/expr/typecheck/guards.js.map +1 -0
- package/dist/expr/typecheck/member.d.ts +17 -0
- package/dist/expr/typecheck/member.d.ts.map +1 -0
- package/dist/expr/typecheck/member.js +46 -0
- package/dist/expr/typecheck/member.js.map +1 -0
- package/dist/expr/typecheck/money.d.ts +8 -0
- package/dist/expr/typecheck/money.d.ts.map +1 -0
- package/dist/expr/typecheck/money.js +49 -0
- package/dist/expr/typecheck/money.js.map +1 -0
- package/dist/expr/typecheck/numeric.d.ts +8 -0
- package/dist/expr/typecheck/numeric.d.ts.map +1 -0
- package/dist/expr/typecheck/numeric.js +84 -0
- package/dist/expr/typecheck/numeric.js.map +1 -0
- package/dist/expr/typecheck/operands.d.ts +27 -0
- package/dist/expr/typecheck/operands.d.ts.map +1 -0
- package/dist/expr/typecheck/operands.js +106 -0
- package/dist/expr/typecheck/operands.js.map +1 -0
- package/dist/expr/typecheck/paths.d.ts +21 -0
- package/dist/expr/typecheck/paths.d.ts.map +1 -0
- package/dist/expr/typecheck/paths.js +321 -0
- package/dist/expr/typecheck/paths.js.map +1 -0
- package/dist/expr/typecheck/records.d.ts +24 -0
- package/dist/expr/typecheck/records.d.ts.map +1 -0
- package/dist/expr/typecheck/records.js +53 -0
- package/dist/expr/typecheck/records.js.map +1 -0
- package/dist/expr/typecheck/sequences.d.ts +15 -0
- package/dist/expr/typecheck/sequences.d.ts.map +1 -0
- package/dist/expr/typecheck/sequences.js +55 -0
- package/dist/expr/typecheck/sequences.js.map +1 -0
- package/dist/expr/typecheck/strings.d.ts +8 -0
- package/dist/expr/typecheck/strings.d.ts.map +1 -0
- package/dist/expr/typecheck/strings.js +188 -0
- package/dist/expr/typecheck/strings.js.map +1 -0
- package/dist/expr/typecheck/temporal.d.ts +7 -0
- package/dist/expr/typecheck/temporal.d.ts.map +1 -0
- package/dist/expr/typecheck/temporal.js +80 -0
- package/dist/expr/typecheck/temporal.js.map +1 -0
- package/dist/expr/typecheck/types.d.ts +163 -0
- package/dist/expr/typecheck/types.d.ts.map +1 -0
- package/dist/expr/typecheck/types.js +404 -0
- package/dist/expr/typecheck/types.js.map +1 -0
- package/dist/expr/typecheck.d.ts +75 -0
- package/dist/expr/typecheck.d.ts.map +1 -0
- package/dist/expr/typecheck.js +242 -0
- package/dist/expr/typecheck.js.map +1 -0
- package/dist/expr/undecided.d.ts +13 -0
- package/dist/expr/undecided.d.ts.map +1 -0
- package/dist/expr/undecided.js +58 -0
- package/dist/expr/undecided.js.map +1 -0
- package/dist/expr/values/code-points.d.ts +13 -0
- package/dist/expr/values/code-points.d.ts.map +1 -0
- package/dist/expr/values/code-points.js +25 -0
- package/dist/expr/values/code-points.js.map +1 -0
- package/dist/expr/values/inline.d.ts +77 -0
- package/dist/expr/values/inline.d.ts.map +1 -0
- package/dist/expr/values/inline.js +404 -0
- package/dist/expr/values/inline.js.map +1 -0
- package/dist/expr/values/interval.d.ts +19 -0
- package/dist/expr/values/interval.d.ts.map +1 -0
- package/dist/expr/values/interval.js +1180 -0
- package/dist/expr/values/interval.js.map +1 -0
- package/dist/index.d.ts +163 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +128 -0
- package/dist/index.js.map +1 -0
- package/dist/ingest/document.d.ts +58 -0
- package/dist/ingest/document.d.ts.map +1 -0
- package/dist/ingest/document.js +83 -0
- package/dist/ingest/document.js.map +1 -0
- package/dist/ingest/yaml-document.d.ts +15 -0
- package/dist/ingest/yaml-document.d.ts.map +1 -0
- package/dist/ingest/yaml-document.js +42 -0
- package/dist/ingest/yaml-document.js.map +1 -0
- package/dist/ingest/yaml.d.ts +51 -0
- package/dist/ingest/yaml.d.ts.map +1 -0
- package/dist/ingest/yaml.js +340 -0
- package/dist/ingest/yaml.js.map +1 -0
- package/dist/layout/compile.d.ts +6 -0
- package/dist/layout/compile.d.ts.map +1 -0
- package/dist/layout/compile.js +224 -0
- package/dist/layout/compile.js.map +1 -0
- package/dist/layout/context.d.ts +12 -0
- package/dist/layout/context.d.ts.map +1 -0
- package/dist/layout/context.js +26 -0
- package/dist/layout/context.js.map +1 -0
- package/dist/layout/grammar.d.ts +34 -0
- package/dist/layout/grammar.d.ts.map +1 -0
- package/dist/layout/grammar.js +171 -0
- package/dist/layout/grammar.js.map +1 -0
- package/dist/layout/read.d.ts +54 -0
- package/dist/layout/read.d.ts.map +1 -0
- package/dist/layout/read.js +101 -0
- package/dist/layout/read.js.map +1 -0
- package/dist/layout/shape.d.ts +34 -0
- package/dist/layout/shape.d.ts.map +1 -0
- package/dist/layout/shape.js +149 -0
- package/dist/layout/shape.js.map +1 -0
- package/dist/messages/compile.d.ts +47 -0
- package/dist/messages/compile.d.ts.map +1 -0
- package/dist/messages/compile.js +202 -0
- package/dist/messages/compile.js.map +1 -0
- package/dist/messages/locale.d.ts +18 -0
- package/dist/messages/locale.d.ts.map +1 -0
- package/dist/messages/locale.js +33 -0
- package/dist/messages/locale.js.map +1 -0
- package/dist/messages/slots.d.ts +54 -0
- package/dist/messages/slots.d.ts.map +1 -0
- package/dist/messages/slots.js +137 -0
- package/dist/messages/slots.js.map +1 -0
- package/dist/overlay/compile-overlay.d.ts +29 -0
- package/dist/overlay/compile-overlay.d.ts.map +1 -0
- package/dist/overlay/compile-overlay.js +120 -0
- package/dist/overlay/compile-overlay.js.map +1 -0
- package/dist/overlay/compose.d.ts +26 -0
- package/dist/overlay/compose.d.ts.map +1 -0
- package/dist/overlay/compose.js +674 -0
- package/dist/overlay/compose.js.map +1 -0
- package/dist/overlay/types.d.ts +41 -0
- package/dist/overlay/types.d.ts.map +1 -0
- package/dist/overlay/types.js +2 -0
- package/dist/overlay/types.js.map +1 -0
- package/dist/publish/classify.d.ts +50 -0
- package/dist/publish/classify.d.ts.map +1 -0
- package/dist/publish/classify.js +85 -0
- package/dist/publish/classify.js.map +1 -0
- package/dist/publish/environment.d.ts +15 -0
- package/dist/publish/environment.d.ts.map +1 -0
- package/dist/publish/environment.js +2 -0
- package/dist/publish/environment.js.map +1 -0
- package/dist/publish/migrations.d.ts +108 -0
- package/dist/publish/migrations.d.ts.map +1 -0
- package/dist/publish/migrations.js +166 -0
- package/dist/publish/migrations.js.map +1 -0
- package/dist/publish/observation.d.ts +29 -0
- package/dist/publish/observation.d.ts.map +1 -0
- package/dist/publish/observation.js +43 -0
- package/dist/publish/observation.js.map +1 -0
- package/dist/publish/readiness.d.ts +197 -0
- package/dist/publish/readiness.d.ts.map +1 -0
- package/dist/publish/readiness.js +239 -0
- package/dist/publish/readiness.js.map +1 -0
- package/dist/publish/vectors.d.ts +50 -0
- package/dist/publish/vectors.d.ts.map +1 -0
- package/dist/publish/vectors.js +306 -0
- package/dist/publish/vectors.js.map +1 -0
- package/dist/publish/verify.d.ts +146 -0
- package/dist/publish/verify.d.ts.map +1 -0
- package/dist/publish/verify.js +548 -0
- package/dist/publish/verify.js.map +1 -0
- package/dist/scenarios/branch.d.ts +36 -0
- package/dist/scenarios/branch.d.ts.map +1 -0
- package/dist/scenarios/branch.js +30 -0
- package/dist/scenarios/branch.js.map +1 -0
- package/dist/scenarios/capture.d.ts +89 -0
- package/dist/scenarios/capture.d.ts.map +1 -0
- package/dist/scenarios/capture.js +443 -0
- package/dist/scenarios/capture.js.map +1 -0
- package/dist/scenarios/classifier.d.ts +20 -0
- package/dist/scenarios/classifier.d.ts.map +1 -0
- package/dist/scenarios/classifier.js +88 -0
- package/dist/scenarios/classifier.js.map +1 -0
- package/dist/scenarios/credit.d.ts +33 -0
- package/dist/scenarios/credit.d.ts.map +1 -0
- package/dist/scenarios/credit.js +330 -0
- package/dist/scenarios/credit.js.map +1 -0
- package/dist/scenarios/csv.d.ts +34 -0
- package/dist/scenarios/csv.d.ts.map +1 -0
- package/dist/scenarios/csv.js +1047 -0
- package/dist/scenarios/csv.js.map +1 -0
- package/dist/scenarios/data-identity.d.ts +39 -0
- package/dist/scenarios/data-identity.d.ts.map +1 -0
- package/dist/scenarios/data-identity.js +28 -0
- package/dist/scenarios/data-identity.js.map +1 -0
- package/dist/scenarios/document.d.ts +148 -0
- package/dist/scenarios/document.d.ts.map +1 -0
- package/dist/scenarios/document.js +513 -0
- package/dist/scenarios/document.js.map +1 -0
- package/dist/scenarios/environment.d.ts +64 -0
- package/dist/scenarios/environment.d.ts.map +1 -0
- package/dist/scenarios/environment.js +106 -0
- package/dist/scenarios/environment.js.map +1 -0
- package/dist/scenarios/evidence.d.ts +128 -0
- package/dist/scenarios/evidence.d.ts.map +1 -0
- package/dist/scenarios/evidence.js +179 -0
- package/dist/scenarios/evidence.js.map +1 -0
- package/dist/scenarios/expectations.d.ts +63 -0
- package/dist/scenarios/expectations.d.ts.map +1 -0
- package/dist/scenarios/expectations.js +490 -0
- package/dist/scenarios/expectations.js.map +1 -0
- package/dist/scenarios/references.d.ts +15 -0
- package/dist/scenarios/references.d.ts.map +1 -0
- package/dist/scenarios/references.js +239 -0
- package/dist/scenarios/references.js.map +1 -0
- package/dist/scenarios/report.d.ts +216 -0
- package/dist/scenarios/report.d.ts.map +1 -0
- package/dist/scenarios/report.js +54 -0
- package/dist/scenarios/report.js.map +1 -0
- package/dist/scenarios/runner.d.ts +55 -0
- package/dist/scenarios/runner.d.ts.map +1 -0
- package/dist/scenarios/runner.js +205 -0
- package/dist/scenarios/runner.js.map +1 -0
- package/dist/scenarios/vocabulary.d.ts +19 -0
- package/dist/scenarios/vocabulary.d.ts.map +1 -0
- package/dist/scenarios/vocabulary.js +56 -0
- package/dist/scenarios/vocabulary.js.map +1 -0
- package/dist/schema/catalogue.d.ts +54 -0
- package/dist/schema/catalogue.d.ts.map +1 -0
- package/dist/schema/catalogue.js +221 -0
- package/dist/schema/catalogue.js.map +1 -0
- package/dist/schema/check.d.ts +22 -0
- package/dist/schema/check.d.ts.map +1 -0
- package/dist/schema/check.js +30 -0
- package/dist/schema/check.js.map +1 -0
- package/dist/schema/closed.d.ts +19 -0
- package/dist/schema/closed.d.ts.map +1 -0
- package/dist/schema/closed.js +33 -0
- package/dist/schema/closed.js.map +1 -0
- package/dist/schema/collapse.d.ts +27 -0
- package/dist/schema/collapse.d.ts.map +1 -0
- package/dist/schema/collapse.js +143 -0
- package/dist/schema/collapse.js.map +1 -0
- package/dist/schema/controls.d.ts +46 -0
- package/dist/schema/controls.d.ts.map +1 -0
- package/dist/schema/controls.js +75 -0
- package/dist/schema/controls.js.map +1 -0
- package/dist/schema/dataset-declaration.d.ts +11 -0
- package/dist/schema/dataset-declaration.d.ts.map +1 -0
- package/dist/schema/dataset-declaration.js +11 -0
- package/dist/schema/dataset-declaration.js.map +1 -0
- package/dist/schema/declaration-warnings.d.ts +14 -0
- package/dist/schema/declaration-warnings.d.ts.map +1 -0
- package/dist/schema/declaration-warnings.js +77 -0
- package/dist/schema/declaration-warnings.js.map +1 -0
- package/dist/schema/declarations.d.ts +41 -0
- package/dist/schema/declarations.d.ts.map +1 -0
- package/dist/schema/declarations.js +1299 -0
- package/dist/schema/declarations.js.map +1 -0
- package/dist/schema/diagnostic.d.ts +118 -0
- package/dist/schema/diagnostic.d.ts.map +1 -0
- package/dist/schema/diagnostic.js +39 -0
- package/dist/schema/diagnostic.js.map +1 -0
- package/dist/schema/document.d.ts +93 -0
- package/dist/schema/document.d.ts.map +1 -0
- package/dist/schema/document.js +507 -0
- package/dist/schema/document.js.map +1 -0
- package/dist/schema/fields.d.ts +11 -0
- package/dist/schema/fields.d.ts.map +1 -0
- package/dist/schema/fields.js +265 -0
- package/dist/schema/fields.js.map +1 -0
- package/dist/schema/gates.d.ts +4 -0
- package/dist/schema/gates.d.ts.map +1 -0
- package/dist/schema/gates.js +68 -0
- package/dist/schema/gates.js.map +1 -0
- package/dist/schema/located.d.ts +27 -0
- package/dist/schema/located.d.ts.map +1 -0
- package/dist/schema/located.js +56 -0
- package/dist/schema/located.js.map +1 -0
- package/dist/schema/measurement.d.ts +9 -0
- package/dist/schema/measurement.d.ts.map +1 -0
- package/dist/schema/measurement.js +38 -0
- package/dist/schema/measurement.js.map +1 -0
- package/dist/schema/member-wording.d.ts +35 -0
- package/dist/schema/member-wording.d.ts.map +1 -0
- package/dist/schema/member-wording.js +286 -0
- package/dist/schema/member-wording.js.map +1 -0
- package/dist/schema/metaschema.d.ts +20 -0
- package/dist/schema/metaschema.d.ts.map +1 -0
- package/dist/schema/metaschema.js +476 -0
- package/dist/schema/metaschema.js.map +1 -0
- package/dist/schema/pointer.d.ts +31 -0
- package/dist/schema/pointer.d.ts.map +1 -0
- package/dist/schema/pointer.js +73 -0
- package/dist/schema/pointer.js.map +1 -0
- package/dist/schema/primary.d.ts +29 -0
- package/dist/schema/primary.d.ts.map +1 -0
- package/dist/schema/primary.js +48 -0
- package/dist/schema/primary.js.map +1 -0
- package/dist/schema/publish-vector.d.ts +17 -0
- package/dist/schema/publish-vector.d.ts.map +1 -0
- package/dist/schema/publish-vector.js +34 -0
- package/dist/schema/publish-vector.js.map +1 -0
- package/dist/schema/repair.d.ts +34 -0
- package/dist/schema/repair.d.ts.map +1 -0
- package/dist/schema/repair.js +163 -0
- package/dist/schema/repair.js.map +1 -0
- package/dist/schema/schema-v1.generated.d.ts +14 -0
- package/dist/schema/schema-v1.generated.d.ts.map +1 -0
- package/dist/schema/schema-v1.generated.js +7089 -0
- package/dist/schema/schema-v1.generated.js.map +1 -0
- package/dist/schema/screens.d.ts +4 -0
- package/dist/schema/screens.d.ts.map +1 -0
- package/dist/schema/screens.js +28 -0
- package/dist/schema/screens.js.map +1 -0
- package/dist/schema/test-values.d.ts +12 -0
- package/dist/schema/test-values.d.ts.map +1 -0
- package/dist/schema/test-values.js +97 -0
- package/dist/schema/test-values.js.map +1 -0
- package/dist/schema/unions.d.ts +46 -0
- package/dist/schema/unions.d.ts.map +1 -0
- package/dist/schema/unions.js +131 -0
- package/dist/schema/unions.js.map +1 -0
- package/dist/schema/validate-yaml.d.ts +14 -0
- package/dist/schema/validate-yaml.d.ts.map +1 -0
- package/dist/schema/validate-yaml.js +17 -0
- package/dist/schema/validate-yaml.js.map +1 -0
- package/dist/schema/validate.d.ts +46 -0
- package/dist/schema/validate.d.ts.map +1 -0
- package/dist/schema/validate.js +186 -0
- package/dist/schema/validate.js.map +1 -0
- package/dist/testing.d.ts +21 -0
- package/dist/testing.d.ts.map +1 -0
- package/dist/testing.js +28 -0
- package/dist/testing.js.map +1 -0
- package/dist/vocabulary.d.ts +6 -0
- package/dist/vocabulary.d.ts.map +1 -0
- package/dist/vocabulary.js +26 -0
- package/dist/vocabulary.js.map +1 -0
- package/package.json +66 -3
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { SCHEMA_V1 } from './schema-v1.generated.js';
|
|
2
|
+
/**
|
|
3
|
+
* The JSON Pointer segments of a validator keyword or instance location: RFC 6901 tokens,
|
|
4
|
+
* percent-decoded first and then pointer-unescaped, so a `/` inside a property name stays
|
|
5
|
+
* one step. Numeric tokens stay text here; `documentPath` decides whether one is an index.
|
|
6
|
+
*/
|
|
7
|
+
export function pointerSegments(location) {
|
|
8
|
+
const pointer = location.startsWith('#') ? location.slice(1) : location;
|
|
9
|
+
if (pointer === '')
|
|
10
|
+
return [];
|
|
11
|
+
return pointer
|
|
12
|
+
.split('/')
|
|
13
|
+
.slice(1)
|
|
14
|
+
.map((token) => decodeURIComponent(token).replaceAll('~1', '/').replaceAll('~0', '~'));
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* The metaschema value one keyword location points at, for reading the keyword's own bound.
|
|
18
|
+
*
|
|
19
|
+
* The document's own schema is a parameter because the compiler reads two published contracts
|
|
20
|
+
* — the schema document and a scenario suite — and a keyword location only means something
|
|
21
|
+
* against the schema that emitted it.
|
|
22
|
+
*/
|
|
23
|
+
export function metaschemaAt(keywordLocation, schema = SCHEMA_V1) {
|
|
24
|
+
let current = schema;
|
|
25
|
+
for (const segment of pointerSegments(keywordLocation)) {
|
|
26
|
+
// A `$ref` step in a keyword location means the walk entered the referenced subschema,
|
|
27
|
+
// which is a step no property lookup can take.
|
|
28
|
+
if (segment === '$ref') {
|
|
29
|
+
current = dereference(current, schema);
|
|
30
|
+
continue;
|
|
31
|
+
}
|
|
32
|
+
if (typeof current !== 'object' || current === null)
|
|
33
|
+
return undefined;
|
|
34
|
+
current = Reflect.get(current, segment);
|
|
35
|
+
}
|
|
36
|
+
return dereference(current, schema);
|
|
37
|
+
}
|
|
38
|
+
/** Follows local `$ref` chains from one metaschema node to the node they name. */
|
|
39
|
+
function dereference(value, schema) {
|
|
40
|
+
let current = value;
|
|
41
|
+
for (let hops = 0; hops < 32; hops += 1) {
|
|
42
|
+
if (typeof current !== 'object' || current === null)
|
|
43
|
+
return current;
|
|
44
|
+
// The metaschema is an index-signature type, so a property read off it is `any`; it is
|
|
45
|
+
// narrowed before use like any other untrusted value.
|
|
46
|
+
const reference = Reflect.get(current, '$ref');
|
|
47
|
+
if (typeof reference !== 'string' || !reference.startsWith('#/'))
|
|
48
|
+
return current;
|
|
49
|
+
let target = schema;
|
|
50
|
+
for (const segment of pointerSegments(reference.slice(1))) {
|
|
51
|
+
if (typeof target !== 'object' || target === null)
|
|
52
|
+
return undefined;
|
|
53
|
+
const next = Reflect.get(target, segment);
|
|
54
|
+
target = next;
|
|
55
|
+
}
|
|
56
|
+
current = target;
|
|
57
|
+
}
|
|
58
|
+
return current;
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* The identifier grammar the metaschema states, read from the metaschema itself so the
|
|
62
|
+
* actionable wording and `expected` field cannot silently stop matching when the contract
|
|
63
|
+
* changes. A hand-typed copy would fail open: the generic `pattern` diagnostic would be the
|
|
64
|
+
* only trace.
|
|
65
|
+
*/
|
|
66
|
+
export const IDENTIFIER_PATTERN = (() => {
|
|
67
|
+
const pattern = metaschemaAt('#/$defs/identifier/pattern');
|
|
68
|
+
if (typeof pattern !== 'string') {
|
|
69
|
+
throw new Error('the schema metaschema declares no identifier pattern');
|
|
70
|
+
}
|
|
71
|
+
return pattern;
|
|
72
|
+
})();
|
|
73
|
+
//# sourceMappingURL=pointer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pointer.js","sourceRoot":"","sources":["../../src/schema/pointer.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAErD;;;;GAIG;AACH,MAAM,UAAU,eAAe,CAAC,QAAgB;IAC9C,MAAM,OAAO,GAAG,QAAQ,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC;IACxE,IAAI,OAAO,KAAK,EAAE;QAAE,OAAO,EAAE,CAAC;IAC9B,OAAO,OAAO;SACX,KAAK,CAAC,GAAG,CAAC;SACV,KAAK,CAAC,CAAC,CAAC;SACR,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,kBAAkB,CAAC,KAAK,CAAC,CAAC,UAAU,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC,UAAU,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC,CAAC;AAC3F,CAAC;AAED;;;;;;GAMG;AACH,MAAM,UAAU,YAAY,CAAC,eAAuB,EAAE,MAAM,GAAW,SAAS;IAC9E,IAAI,OAAO,GAAY,MAAM,CAAC;IAC9B,KAAK,MAAM,OAAO,IAAI,eAAe,CAAC,eAAe,CAAC,EAAE,CAAC;QACvD,uFAAuF;QACvF,+CAA+C;QAC/C,IAAI,OAAO,KAAK,MAAM,EAAE,CAAC;YACvB,OAAO,GAAG,WAAW,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;YACvC,SAAS;QACX,CAAC;QACD,IAAI,OAAO,OAAO,KAAK,QAAQ,IAAI,OAAO,KAAK,IAAI;YAAE,OAAO,SAAS,CAAC;QACtE,OAAO,GAAG,OAAO,CAAC,GAAG,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;IAC1C,CAAC;IACD,OAAO,WAAW,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;AACtC,CAAC;AAED,kFAAkF;AAClF,SAAS,WAAW,CAAC,KAAc,EAAE,MAAc;IACjD,IAAI,OAAO,GAAG,KAAK,CAAC;IACpB,KAAK,IAAI,IAAI,GAAG,CAAC,EAAE,IAAI,GAAG,EAAE,EAAE,IAAI,IAAI,CAAC,EAAE,CAAC;QACxC,IAAI,OAAO,OAAO,KAAK,QAAQ,IAAI,OAAO,KAAK,IAAI;YAAE,OAAO,OAAO,CAAC;QACpE,uFAAuF;QACvF,sDAAsD;QACtD,MAAM,SAAS,GAAY,OAAO,CAAC,GAAG,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;QACxD,IAAI,OAAO,SAAS,KAAK,QAAQ,IAAI,CAAC,SAAS,CAAC,UAAU,CAAC,IAAI,CAAC;YAAE,OAAO,OAAO,CAAC;QACjF,IAAI,MAAM,GAAY,MAAM,CAAC;QAC7B,KAAK,MAAM,OAAO,IAAI,eAAe,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;YAC1D,IAAI,OAAO,MAAM,KAAK,QAAQ,IAAI,MAAM,KAAK,IAAI;gBAAE,OAAO,SAAS,CAAC;YACpE,MAAM,IAAI,GAAY,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;YACnD,MAAM,GAAG,IAAI,CAAC;QAChB,CAAC;QACD,OAAO,GAAG,MAAM,CAAC;IACnB,CAAC;IACD,OAAO,OAAO,CAAC;AACjB,CAAC;AAED;;;;;GAKG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAW,CAAC,GAAG,EAAE;IAC9C,MAAM,OAAO,GAAG,YAAY,CAAC,4BAA4B,CAAC,CAAC;IAC3D,IAAI,OAAO,OAAO,KAAK,QAAQ,EAAE,CAAC;QAChC,MAAM,IAAI,KAAK,CAAC,sDAAsD,CAAC,CAAC;IAC1E,CAAC;IACD,OAAO,OAAO,CAAC;AACjB,CAAC,CAAC,EAAE,CAAC","sourcesContent":["/**\n * Reading a located metaschema: the pointer grammar the validator reports in, and the\n * metaschema node a pointer names.\n *\n * The compiler's diagnostics need two things from a validator reason: where it happened in the\n * document, and what the metaschema says at the keyword that refused it. Both are pointer\n * walks, so they live together and neither the collapse nor the renderer owns a copy.\n */\nimport type { Schema } from '@cfworker/json-schema';\nimport { SCHEMA_V1 } from './schema-v1.generated.js';\n\n/**\n * The JSON Pointer segments of a validator keyword or instance location: RFC 6901 tokens,\n * percent-decoded first and then pointer-unescaped, so a `/` inside a property name stays\n * one step. Numeric tokens stay text here; `documentPath` decides whether one is an index.\n */\nexport function pointerSegments(location: string): readonly string[] {\n const pointer = location.startsWith('#') ? location.slice(1) : location;\n if (pointer === '') return [];\n return pointer\n .split('/')\n .slice(1)\n .map((token) => decodeURIComponent(token).replaceAll('~1', '/').replaceAll('~0', '~'));\n}\n\n/**\n * The metaschema value one keyword location points at, for reading the keyword's own bound.\n *\n * The document's own schema is a parameter because the compiler reads two published contracts\n * — the schema document and a scenario suite — and a keyword location only means something\n * against the schema that emitted it.\n */\nexport function metaschemaAt(keywordLocation: string, schema: Schema = SCHEMA_V1): unknown {\n let current: unknown = schema;\n for (const segment of pointerSegments(keywordLocation)) {\n // A `$ref` step in a keyword location means the walk entered the referenced subschema,\n // which is a step no property lookup can take.\n if (segment === '$ref') {\n current = dereference(current, schema);\n continue;\n }\n if (typeof current !== 'object' || current === null) return undefined;\n current = Reflect.get(current, segment);\n }\n return dereference(current, schema);\n}\n\n/** Follows local `$ref` chains from one metaschema node to the node they name. */\nfunction dereference(value: unknown, schema: Schema): unknown {\n let current = value;\n for (let hops = 0; hops < 32; hops += 1) {\n if (typeof current !== 'object' || current === null) return current;\n // The metaschema is an index-signature type, so a property read off it is `any`; it is\n // narrowed before use like any other untrusted value.\n const reference: unknown = Reflect.get(current, '$ref');\n if (typeof reference !== 'string' || !reference.startsWith('#/')) return current;\n let target: unknown = schema;\n for (const segment of pointerSegments(reference.slice(1))) {\n if (typeof target !== 'object' || target === null) return undefined;\n const next: unknown = Reflect.get(target, segment);\n target = next;\n }\n current = target;\n }\n return current;\n}\n\n/**\n * The identifier grammar the metaschema states, read from the metaschema itself so the\n * actionable wording and `expected` field cannot silently stop matching when the contract\n * changes. A hand-typed copy would fail open: the generic `pattern` diagnostic would be the\n * only trace.\n */\nexport const IDENTIFIER_PATTERN: string = (() => {\n const pattern = metaschemaAt('#/$defs/identifier/pattern');\n if (typeof pattern !== 'string') {\n throw new Error('the schema metaschema declares no identifier pattern');\n }\n return pattern;\n})();\n"]}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { SchemaDiagnostic } from './diagnostic.js';
|
|
2
|
+
/**
|
|
3
|
+
* The one authority for a document's primary designation: a section that declares at least
|
|
4
|
+
* one member designates exactly one of them at the document root, and a root scalar makes a
|
|
5
|
+
* second designation unrepresentable, so the answers are "one declared member" or a refusal.
|
|
6
|
+
*
|
|
7
|
+
* The rule is stated once here and each section passes its own root member and the ids it
|
|
8
|
+
* declares, so a gate, a screen, and any later section that needs a primary inherit it
|
|
9
|
+
* rather than restating it in their own terms.
|
|
10
|
+
*/
|
|
11
|
+
/** One section's designation: the rule kind it names and the root member that states it. */
|
|
12
|
+
export interface PrimaryKind {
|
|
13
|
+
/** The rule kind the designation names, as a refusal spells it. */
|
|
14
|
+
readonly ruleKind: 'gate' | 'screen';
|
|
15
|
+
/** The root member, as a document path. */
|
|
16
|
+
readonly path: '$.primaryGateId' | '$.primaryScreenId';
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* The refusals that leave one section's designation unresolved: none when the document
|
|
20
|
+
* designates exactly one of the members it declares.
|
|
21
|
+
*
|
|
22
|
+
* A document that declares no member of the section designates none. A designation it still
|
|
23
|
+
* states names nothing, which is a refusal rather than a member to drop, because the author
|
|
24
|
+
* asked for something the document cannot honour. A document that declares members but
|
|
25
|
+
* designates none is refused too — choosing by declaration order would make a presentation
|
|
26
|
+
* decision out of an accident of authoring.
|
|
27
|
+
*/
|
|
28
|
+
export declare function selectPrimary(kind: PrimaryKind, declared: readonly string[], designated: string | undefined): readonly SchemaDiagnostic[];
|
|
29
|
+
//# sourceMappingURL=primary.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"primary.d.ts","sourceRoot":"","sources":["../../src/schema/primary.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAExD;;;;;;;;GAQG;AAEH,4FAA4F;AAC5F,MAAM,WAAW,WAAW;IAC1B,mEAAmE;IACnE,QAAQ,CAAC,QAAQ,EAAE,MAAM,GAAG,QAAQ,CAAC;IACrC,2CAA2C;IAC3C,QAAQ,CAAC,IAAI,EAAE,iBAAiB,GAAG,mBAAmB,CAAC;CACxD;AAUD;;;;;;;;;GASG;AACH,wBAAgB,aAAa,CAC3B,IAAI,EAAE,WAAW,EACjB,QAAQ,EAAE,SAAS,MAAM,EAAE,EAC3B,UAAU,EAAE,MAAM,GAAG,SAAS,GAC7B,SAAS,gBAAgB,EAAE,CAuB7B"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { compareCodePoints } from '@azx-pbc/axiom-runtime';
|
|
2
|
+
/** A list of ids as a refusal spells it, in code-point order. */
|
|
3
|
+
function listIds(ids) {
|
|
4
|
+
return [...ids]
|
|
5
|
+
.sort(compareCodePoints)
|
|
6
|
+
.map((id) => `\`${id}\``)
|
|
7
|
+
.join(', ');
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* The refusals that leave one section's designation unresolved: none when the document
|
|
11
|
+
* designates exactly one of the members it declares.
|
|
12
|
+
*
|
|
13
|
+
* A document that declares no member of the section designates none. A designation it still
|
|
14
|
+
* states names nothing, which is a refusal rather than a member to drop, because the author
|
|
15
|
+
* asked for something the document cannot honour. A document that declares members but
|
|
16
|
+
* designates none is refused too — choosing by declaration order would make a presentation
|
|
17
|
+
* decision out of an accident of authoring.
|
|
18
|
+
*/
|
|
19
|
+
export function selectPrimary(kind, declared, designated) {
|
|
20
|
+
if (designated === undefined) {
|
|
21
|
+
if (declared.length === 0)
|
|
22
|
+
return [];
|
|
23
|
+
return [
|
|
24
|
+
{
|
|
25
|
+
code: 'PRIMARY_SELECTION',
|
|
26
|
+
path: kind.path,
|
|
27
|
+
detail: `this document declares ${String(declared.length)} ${kind.ruleKind}${declared.length === 1 ? '' : 's'} (${listIds(declared)}) and designates no primary; a caller that names no ${kind.ruleKind} needs one, so designate one of them in \`${memberOf(kind)}\``,
|
|
28
|
+
},
|
|
29
|
+
];
|
|
30
|
+
}
|
|
31
|
+
if (declared.includes(designated))
|
|
32
|
+
return [];
|
|
33
|
+
const declaredText = declared.length === 0
|
|
34
|
+
? `this document declares no ${kind.ruleKind}, so remove the designation`
|
|
35
|
+
: `this document declares ${listIds(declared)}`;
|
|
36
|
+
return [
|
|
37
|
+
{
|
|
38
|
+
code: 'PRIMARY_SELECTION',
|
|
39
|
+
path: kind.path,
|
|
40
|
+
detail: `\`${memberOf(kind)}\` designates \`${designated}\`, which is not a declared ${kind.ruleKind}; ${declaredText}`,
|
|
41
|
+
},
|
|
42
|
+
];
|
|
43
|
+
}
|
|
44
|
+
/** The root member's name, without the document-root prefix. */
|
|
45
|
+
function memberOf(kind) {
|
|
46
|
+
return kind.path.slice('$.'.length);
|
|
47
|
+
}
|
|
48
|
+
//# sourceMappingURL=primary.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"primary.js","sourceRoot":"","sources":["../../src/schema/primary.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAqB3D,iEAAiE;AACjE,SAAS,OAAO,CAAC,GAAsB;IACrC,OAAO,CAAC,GAAG,GAAG,CAAC;SACZ,IAAI,CAAC,iBAAiB,CAAC;SACvB,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,KAAK,EAAE,IAAI,CAAC;SACxB,IAAI,CAAC,IAAI,CAAC,CAAC;AAChB,CAAC;AAED;;;;;;;;;GASG;AACH,MAAM,UAAU,aAAa,CAC3B,IAAiB,EACjB,QAA2B,EAC3B,UAA8B;IAE9B,IAAI,UAAU,KAAK,SAAS,EAAE,CAAC;QAC7B,IAAI,QAAQ,CAAC,MAAM,KAAK,CAAC;YAAE,OAAO,EAAE,CAAC;QACrC,OAAO;YACL;gBACE,IAAI,EAAE,mBAAmB;gBACzB,IAAI,EAAE,IAAI,CAAC,IAAI;gBACf,MAAM,EAAE,0BAA0B,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,IAAI,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,KAAK,OAAO,CAAC,QAAQ,CAAC,uDAAuD,IAAI,CAAC,QAAQ,6CAA6C,QAAQ,CAAC,IAAI,CAAC,IAAI;aACvQ;SACF,CAAC;IACJ,CAAC;IACD,IAAI,QAAQ,CAAC,QAAQ,CAAC,UAAU,CAAC;QAAE,OAAO,EAAE,CAAC;IAC7C,MAAM,YAAY,GAChB,QAAQ,CAAC,MAAM,KAAK,CAAC;QACnB,CAAC,CAAC,6BAA6B,IAAI,CAAC,QAAQ,6BAA6B;QACzE,CAAC,CAAC,0BAA0B,OAAO,CAAC,QAAQ,CAAC,EAAE,CAAC;IACpD,OAAO;QACL;YACE,IAAI,EAAE,mBAAmB;YACzB,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,MAAM,EAAE,KAAK,QAAQ,CAAC,IAAI,CAAC,mBAAmB,UAAU,+BAA+B,IAAI,CAAC,QAAQ,KAAK,YAAY,EAAE;SACxH;KACF,CAAC;AACJ,CAAC;AAED,gEAAgE;AAChE,SAAS,QAAQ,CAAC,IAAiB;IACjC,OAAO,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;AACtC,CAAC","sourcesContent":["import { compareCodePoints } from '@azx-pbc/axiom-runtime';\nimport type { SchemaDiagnostic } from './diagnostic.js';\n\n/**\n * The one authority for a document's primary designation: a section that declares at least\n * one member designates exactly one of them at the document root, and a root scalar makes a\n * second designation unrepresentable, so the answers are \"one declared member\" or a refusal.\n *\n * The rule is stated once here and each section passes its own root member and the ids it\n * declares, so a gate, a screen, and any later section that needs a primary inherit it\n * rather than restating it in their own terms.\n */\n\n/** One section's designation: the rule kind it names and the root member that states it. */\nexport interface PrimaryKind {\n /** The rule kind the designation names, as a refusal spells it. */\n readonly ruleKind: 'gate' | 'screen';\n /** The root member, as a document path. */\n readonly path: '$.primaryGateId' | '$.primaryScreenId';\n}\n\n/** A list of ids as a refusal spells it, in code-point order. */\nfunction listIds(ids: readonly string[]): string {\n return [...ids]\n .sort(compareCodePoints)\n .map((id) => `\\`${id}\\``)\n .join(', ');\n}\n\n/**\n * The refusals that leave one section's designation unresolved: none when the document\n * designates exactly one of the members it declares.\n *\n * A document that declares no member of the section designates none. A designation it still\n * states names nothing, which is a refusal rather than a member to drop, because the author\n * asked for something the document cannot honour. A document that declares members but\n * designates none is refused too — choosing by declaration order would make a presentation\n * decision out of an accident of authoring.\n */\nexport function selectPrimary(\n kind: PrimaryKind,\n declared: readonly string[],\n designated: string | undefined,\n): readonly SchemaDiagnostic[] {\n if (designated === undefined) {\n if (declared.length === 0) return [];\n return [\n {\n code: 'PRIMARY_SELECTION',\n path: kind.path,\n detail: `this document declares ${String(declared.length)} ${kind.ruleKind}${declared.length === 1 ? '' : 's'} (${listIds(declared)}) and designates no primary; a caller that names no ${kind.ruleKind} needs one, so designate one of them in \\`${memberOf(kind)}\\``,\n },\n ];\n }\n if (declared.includes(designated)) return [];\n const declaredText =\n declared.length === 0\n ? `this document declares no ${kind.ruleKind}, so remove the designation`\n : `this document declares ${listIds(declared)}`;\n return [\n {\n code: 'PRIMARY_SELECTION',\n path: kind.path,\n detail: `\\`${memberOf(kind)}\\` designates \\`${designated}\\`, which is not a declared ${kind.ruleKind}; ${declaredText}`,\n },\n ];\n}\n\n/** The root member's name, without the document-root prefix. */\nfunction memberOf(kind: PrimaryKind): string {\n return kind.path.slice('$.'.length);\n}\n"]}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { SchemaDiagnostic } from './diagnostic.js';
|
|
2
|
+
/**
|
|
3
|
+
* A publish vector pasted where a document belongs, as the one refusal that explains it.
|
|
4
|
+
*
|
|
5
|
+
* A vector wraps the form document as its `schema` member and states the input, environment
|
|
6
|
+
* and expectation the run judges it by. Checked as a document, the wrapper is a root missing
|
|
7
|
+
* every required member and carrying several it cannot admit, so the author reads one refusal
|
|
8
|
+
* per member and a suggestion that the wrapper's `schema` was a misspelling of `schemaId`.
|
|
9
|
+
* None of that names the mistake: the file is a vector, and the document inside it is what the
|
|
10
|
+
* command was asked to check.
|
|
11
|
+
*
|
|
12
|
+
* The wrapper is recognised from the data alone: the root declares no `schemaId`, and its
|
|
13
|
+
* `schema` member is an object that does. A document cannot carry a `schema` member at all, so
|
|
14
|
+
* a tree that answers this way is a vector and never a document with an odd spelling.
|
|
15
|
+
*/
|
|
16
|
+
export declare function publishVectorDiagnostic(document: unknown): SchemaDiagnostic | undefined;
|
|
17
|
+
//# sourceMappingURL=publish-vector.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"publish-vector.d.ts","sourceRoot":"","sources":["../../src/schema/publish-vector.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAExD;;;;;;;;;;;;;GAaG;AACH,wBAAgB,uBAAuB,CAAC,QAAQ,EAAE,OAAO,GAAG,gBAAgB,GAAG,SAAS,CAcvF"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { isRecord } from '@azx-pbc/axiom-runtime';
|
|
2
|
+
/**
|
|
3
|
+
* A publish vector pasted where a document belongs, as the one refusal that explains it.
|
|
4
|
+
*
|
|
5
|
+
* A vector wraps the form document as its `schema` member and states the input, environment
|
|
6
|
+
* and expectation the run judges it by. Checked as a document, the wrapper is a root missing
|
|
7
|
+
* every required member and carrying several it cannot admit, so the author reads one refusal
|
|
8
|
+
* per member and a suggestion that the wrapper's `schema` was a misspelling of `schemaId`.
|
|
9
|
+
* None of that names the mistake: the file is a vector, and the document inside it is what the
|
|
10
|
+
* command was asked to check.
|
|
11
|
+
*
|
|
12
|
+
* The wrapper is recognised from the data alone: the root declares no `schemaId`, and its
|
|
13
|
+
* `schema` member is an object that does. A document cannot carry a `schema` member at all, so
|
|
14
|
+
* a tree that answers this way is a vector and never a document with an odd spelling.
|
|
15
|
+
*/
|
|
16
|
+
export function publishVectorDiagnostic(document) {
|
|
17
|
+
if (!isRecord(document))
|
|
18
|
+
return undefined;
|
|
19
|
+
if (document['schemaId'] !== undefined)
|
|
20
|
+
return undefined;
|
|
21
|
+
const inner = document['schema'];
|
|
22
|
+
if (!isRecord(inner))
|
|
23
|
+
return undefined;
|
|
24
|
+
if (typeof inner['schemaId'] !== 'string')
|
|
25
|
+
return undefined;
|
|
26
|
+
return {
|
|
27
|
+
code: 'SCHEMA_INVALID',
|
|
28
|
+
path: '$',
|
|
29
|
+
detail: 'this is a publish vector, not a document: its `schema` member is the document — save that member alone as the file to check, because the other members describe the run rather than the form',
|
|
30
|
+
instancePath: [],
|
|
31
|
+
repairStated: true,
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
//# sourceMappingURL=publish-vector.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"publish-vector.js","sourceRoot":"","sources":["../../src/schema/publish-vector.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAGlD;;;;;;;;;;;;;GAaG;AACH,MAAM,UAAU,uBAAuB,CAAC,QAAiB;IACvD,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC;QAAE,OAAO,SAAS,CAAC;IAC1C,IAAI,QAAQ,CAAC,UAAU,CAAC,KAAK,SAAS;QAAE,OAAO,SAAS,CAAC;IACzD,MAAM,KAAK,GAAG,QAAQ,CAAC,QAAQ,CAAC,CAAC;IACjC,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC;QAAE,OAAO,SAAS,CAAC;IACvC,IAAI,OAAO,KAAK,CAAC,UAAU,CAAC,KAAK,QAAQ;QAAE,OAAO,SAAS,CAAC;IAC5D,OAAO;QACL,IAAI,EAAE,gBAAgB;QACtB,IAAI,EAAE,GAAG;QACT,MAAM,EACJ,8LAA8L;QAChM,YAAY,EAAE,EAAE;QAChB,YAAY,EAAE,IAAI;KACnB,CAAC;AACJ,CAAC","sourcesContent":["import { isRecord } from '@azx-pbc/axiom-runtime';\nimport type { SchemaDiagnostic } from './diagnostic.js';\n\n/**\n * A publish vector pasted where a document belongs, as the one refusal that explains it.\n *\n * A vector wraps the form document as its `schema` member and states the input, environment\n * and expectation the run judges it by. Checked as a document, the wrapper is a root missing\n * every required member and carrying several it cannot admit, so the author reads one refusal\n * per member and a suggestion that the wrapper's `schema` was a misspelling of `schemaId`.\n * None of that names the mistake: the file is a vector, and the document inside it is what the\n * command was asked to check.\n *\n * The wrapper is recognised from the data alone: the root declares no `schemaId`, and its\n * `schema` member is an object that does. A document cannot carry a `schema` member at all, so\n * a tree that answers this way is a vector and never a document with an odd spelling.\n */\nexport function publishVectorDiagnostic(document: unknown): SchemaDiagnostic | undefined {\n if (!isRecord(document)) return undefined;\n if (document['schemaId'] !== undefined) return undefined;\n const inner = document['schema'];\n if (!isRecord(inner)) return undefined;\n if (typeof inner['schemaId'] !== 'string') return undefined;\n return {\n code: 'SCHEMA_INVALID',\n path: '$',\n detail:\n 'this is a publish vector, not a document: its `schema` member is the document — save that member alone as the file to check, because the other members describe the run rather than the form',\n instancePath: [],\n repairStated: true,\n };\n}\n"]}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { SchemaDiagnosticCode } from './diagnostic.js';
|
|
2
|
+
/**
|
|
3
|
+
* The repair a schema diagnostic names, keyed by the closed code union.
|
|
4
|
+
*
|
|
5
|
+
* A diagnostic's `detail` states the concrete cause, and most causes already end with what to
|
|
6
|
+
* change. The ones that do not — a metaschema keyword, an ingestion parser's sentence, a
|
|
7
|
+
* catalogue count — would otherwise reach a terminal as a statement of fact with no action.
|
|
8
|
+
* This table is the one repair per code, so `axiom-cli` can print it whenever the detail does
|
|
9
|
+
* not carry it, and the gate in `__tests__/repair-gate.test.ts` fails when a code is added
|
|
10
|
+
* without a row or a row stops naming an action.
|
|
11
|
+
*
|
|
12
|
+
* `anchor` is the phrase a detail uses when it already states the same repair; the renderer
|
|
13
|
+
* prints `repair` only when the detail does not contain it, so a specific cause is never
|
|
14
|
+
* repeated by a generic sentence.
|
|
15
|
+
*/
|
|
16
|
+
export interface SchemaDiagnosticRepair {
|
|
17
|
+
/** The action that removes the diagnostic, in an author's vocabulary. */
|
|
18
|
+
readonly repair: string;
|
|
19
|
+
/** The phrase a detail carries when it already states this repair. */
|
|
20
|
+
readonly anchor: string;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Every schema diagnostic code, as the tuple a gate names each by.
|
|
24
|
+
*
|
|
25
|
+
* The annotation refuses a name the union does not state, and the repair table below is typed
|
|
26
|
+
* `Record<SchemaDiagnosticCode, SchemaDiagnosticRepair>`, so a union member with no row fails
|
|
27
|
+
* typecheck. A gate therefore reads the codes without reaching the table.
|
|
28
|
+
*/
|
|
29
|
+
export declare const SCHEMA_DIAGNOSTIC_CODES: readonly SchemaDiagnosticCode[];
|
|
30
|
+
/** Every schema diagnostic code and the repair an author can act on. */
|
|
31
|
+
export declare const SCHEMA_DIAGNOSTIC_REPAIRS: Readonly<Record<SchemaDiagnosticCode, SchemaDiagnosticRepair>>;
|
|
32
|
+
/** The repair row for one schema code, total over the closed union. */
|
|
33
|
+
export declare function schemaDiagnosticRepair(code: SchemaDiagnosticCode): SchemaDiagnosticRepair;
|
|
34
|
+
//# sourceMappingURL=repair.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"repair.d.ts","sourceRoot":"","sources":["../../src/schema/repair.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AAE5D;;;;;;;;;;;;;GAaG;AACH,MAAM,WAAW,sBAAsB;IACrC,yEAAyE;IACzE,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,sEAAsE;IACtE,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;CACzB;AAED;;;;;;GAMG;AACH,eAAO,MAAM,uBAAuB,EAAE,SAAS,oBAAoB,EA8BlE,CAAC;AAEF,wEAAwE;AACxE,eAAO,MAAM,yBAAyB,EAAE,QAAQ,CAC9C,MAAM,CAAC,oBAAoB,EAAE,sBAAsB,CAAC,CAgJrD,CAAC;AAEF,uEAAuE;AACvE,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,oBAAoB,GAAG,sBAAsB,CAEzF"}
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
import { DATASET_DECLARATION_CHANNELS } from './dataset-declaration.js';
|
|
2
|
+
/**
|
|
3
|
+
* Every schema diagnostic code, as the tuple a gate names each by.
|
|
4
|
+
*
|
|
5
|
+
* The annotation refuses a name the union does not state, and the repair table below is typed
|
|
6
|
+
* `Record<SchemaDiagnosticCode, SchemaDiagnosticRepair>`, so a union member with no row fails
|
|
7
|
+
* typecheck. A gate therefore reads the codes without reaching the table.
|
|
8
|
+
*/
|
|
9
|
+
export const SCHEMA_DIAGNOSTIC_CODES = [
|
|
10
|
+
'JSON_INGEST_ERROR',
|
|
11
|
+
'YAML_INGEST_ERROR',
|
|
12
|
+
'SCHEMA_INVALID',
|
|
13
|
+
'DUPLICATE_IDENTIFIER',
|
|
14
|
+
'DUPLICATE_WRITER',
|
|
15
|
+
'CYCLE_DETECTED',
|
|
16
|
+
'INVALID_ROW_KEY',
|
|
17
|
+
'INVALID_CONTROL',
|
|
18
|
+
'INVALID_RULE_SCOPE',
|
|
19
|
+
'SIGNATURE_COVERAGE',
|
|
20
|
+
'INVALID_TEST_VALUE',
|
|
21
|
+
'UNRESOLVED_MESSAGE_KEY',
|
|
22
|
+
'MESSAGE_LOCALE',
|
|
23
|
+
'DATASET_DECLARATION_MISSING',
|
|
24
|
+
'MESSAGE_COMPILE_ERROR',
|
|
25
|
+
'MESSAGE_BINDING',
|
|
26
|
+
'RULE_REFERENCE',
|
|
27
|
+
'UNKNOWN_OPTION',
|
|
28
|
+
'PRIMARY_SELECTION',
|
|
29
|
+
'LAYOUT_STRUCTURE',
|
|
30
|
+
'OVERLAY_REFUSED',
|
|
31
|
+
'EXPR_PARSE_ERROR',
|
|
32
|
+
'TYPE_MISMATCH',
|
|
33
|
+
'UNKNOWN_IDENTIFIER',
|
|
34
|
+
'MONEY_ARITHMETIC',
|
|
35
|
+
'PATTERN_UNSUPPORTED',
|
|
36
|
+
'COST_BUDGET_EXCEEDED',
|
|
37
|
+
'TABLE_NOT_DECLARED',
|
|
38
|
+
'INVALID_CONSTANT_EXPRESSION',
|
|
39
|
+
];
|
|
40
|
+
/** Every schema diagnostic code and the repair an author can act on. */
|
|
41
|
+
export const SCHEMA_DIAGNOSTIC_REPAIRS = {
|
|
42
|
+
JSON_INGEST_ERROR: {
|
|
43
|
+
anchor: 'correct the json',
|
|
44
|
+
repair: 'Correct the JSON text at the reported offset: state each member once, close and escape every string, and write no decimal as a JSON number.',
|
|
45
|
+
},
|
|
46
|
+
YAML_INGEST_ERROR: {
|
|
47
|
+
anchor: 'correct the yaml',
|
|
48
|
+
repair: 'Correct the YAML text at the reported offset using only the JSON-compatible core schema: no custom tag, merge key or second document.',
|
|
49
|
+
},
|
|
50
|
+
SCHEMA_INVALID: {
|
|
51
|
+
anchor: 'change the member',
|
|
52
|
+
repair: 'Change the member the detail names so it matches the closed metaschema; the path locates the value and the detail states its type or enum.',
|
|
53
|
+
},
|
|
54
|
+
DUPLICATE_IDENTIFIER: {
|
|
55
|
+
anchor: 'choose an identifier',
|
|
56
|
+
repair: 'Choose an identifier no other declaration uses: a `fieldId`, `ruleId`, option code, step id and message key are unique within their owner.',
|
|
57
|
+
},
|
|
58
|
+
DUPLICATE_WRITER: {
|
|
59
|
+
anchor: 'keep one writer',
|
|
60
|
+
repair: 'Keep one writer for the field and fold the other computation into it.',
|
|
61
|
+
},
|
|
62
|
+
CYCLE_DETECTED: {
|
|
63
|
+
anchor: 'break the cycle',
|
|
64
|
+
repair: 'Break the cycle by computing the value once and reading the declared field instead.',
|
|
65
|
+
},
|
|
66
|
+
INVALID_ROW_KEY: {
|
|
67
|
+
anchor: 'declare a `rowkey`',
|
|
68
|
+
repair: 'Declare a `rowKey` whose `fieldId` names an uncomputed `string` or `integer` member of the item declaration.',
|
|
69
|
+
},
|
|
70
|
+
INVALID_CONTROL: {
|
|
71
|
+
anchor: 'declare a `control`',
|
|
72
|
+
repair: "Declare a `control` from the list the field's `primitive` admits, or remove a control the primitive does not render.",
|
|
73
|
+
},
|
|
74
|
+
INVALID_RULE_SCOPE: {
|
|
75
|
+
anchor: 'change the rule',
|
|
76
|
+
repair: "Change the rule's `scope` or the field it names so the target is one the scope and rule kind admit.",
|
|
77
|
+
},
|
|
78
|
+
SIGNATURE_COVERAGE: {
|
|
79
|
+
anchor: '`covers`',
|
|
80
|
+
repair: "Declare the `signature_capture` field's `covers` list and make the compared `digest` bind the same targets in the same order.",
|
|
81
|
+
},
|
|
82
|
+
INVALID_TEST_VALUE: {
|
|
83
|
+
anchor: 'change the test case',
|
|
84
|
+
repair: "Change the test case's `values`, `context` or `expected` to the declaration the rule's field states.",
|
|
85
|
+
},
|
|
86
|
+
UNRESOLVED_MESSAGE_KEY: {
|
|
87
|
+
anchor: 'declare the key in `messages`',
|
|
88
|
+
repair: 'Declare the key in `messages`, or point the rule or field at a key the catalogue holds.',
|
|
89
|
+
},
|
|
90
|
+
MESSAGE_LOCALE: {
|
|
91
|
+
anchor: 'write the text under every',
|
|
92
|
+
repair: 'Write the text under every locale `locales` declares, and spell `defaultLocale` as one of them.',
|
|
93
|
+
},
|
|
94
|
+
DATASET_DECLARATION_MISSING: {
|
|
95
|
+
anchor: '--dataset',
|
|
96
|
+
repair: `Pass the compiled declaration of every table the document's \`datasets\` member pins, with ${DATASET_DECLARATION_CHANNELS}, at the version the \`datasetRef\` pins.`,
|
|
97
|
+
},
|
|
98
|
+
MESSAGE_COMPILE_ERROR: {
|
|
99
|
+
anchor: 'rewrite the message',
|
|
100
|
+
repair: 'Rewrite the message so the ICU parser admits it: balance every brace and give each argument the type its slot declares.',
|
|
101
|
+
},
|
|
102
|
+
MESSAGE_BINDING: {
|
|
103
|
+
anchor: 'bind the interpolated',
|
|
104
|
+
repair: "Bind the interpolated name in the rule's `params`, or remove the placeholder from the message text.",
|
|
105
|
+
},
|
|
106
|
+
RULE_REFERENCE: {
|
|
107
|
+
anchor: 'move the check',
|
|
108
|
+
repair: 'Move the check into a gate item, or name a rule `rule_ok`/`no_blocking` the document declares.',
|
|
109
|
+
},
|
|
110
|
+
UNKNOWN_OPTION: {
|
|
111
|
+
anchor: 'spell the option code',
|
|
112
|
+
repair: 'Spell the option code the field declares, or declare that code on the field; a comparison against a code no declaration admits can never hold.',
|
|
113
|
+
},
|
|
114
|
+
PRIMARY_SELECTION: {
|
|
115
|
+
anchor: 'designate',
|
|
116
|
+
repair: 'Designate one declared `ruleId` in `primaryGateId` or `primaryScreenId`, or remove the designation.',
|
|
117
|
+
},
|
|
118
|
+
LAYOUT_STRUCTURE: {
|
|
119
|
+
anchor: 'move or rename',
|
|
120
|
+
repair: 'Move or rename the layout node so the containment, anchor, field or column rule the detail names holds.',
|
|
121
|
+
},
|
|
122
|
+
OVERLAY_REFUSED: {
|
|
123
|
+
anchor: 'change the named overlay',
|
|
124
|
+
repair: 'Change the named overlay so it adds rather than removes or renames a published field, and states a domain that still admits every value the base already admitted.',
|
|
125
|
+
},
|
|
126
|
+
EXPR_PARSE_ERROR: {
|
|
127
|
+
anchor: 'correct the expression',
|
|
128
|
+
repair: 'Correct the expression syntax at the reported offset; the detail names the token or the intended operator.',
|
|
129
|
+
},
|
|
130
|
+
TYPE_MISMATCH: {
|
|
131
|
+
anchor: 'convert or compare',
|
|
132
|
+
repair: 'Convert or compare the operand first so the operator receives the type its signature declares.',
|
|
133
|
+
},
|
|
134
|
+
UNKNOWN_IDENTIFIER: {
|
|
135
|
+
anchor: 'use a declared',
|
|
136
|
+
repair: 'Use a declared field, context root, table or rule id; the compiler offers the closest declared name.',
|
|
137
|
+
},
|
|
138
|
+
MONEY_ARITHMETIC: {
|
|
139
|
+
anchor: 'add or subtract',
|
|
140
|
+
repair: 'Add or subtract money with `+` and `-`, or convert with `money_minor` and `money_from_minor`.',
|
|
141
|
+
},
|
|
142
|
+
PATTERN_UNSUPPORTED: {
|
|
143
|
+
anchor: 'rewrite the pattern',
|
|
144
|
+
repair: 'Rewrite the pattern inside the supported ASCII subset; remove lookaround, backreferences and nested quantifiers.',
|
|
145
|
+
},
|
|
146
|
+
COST_BUDGET_EXCEEDED: {
|
|
147
|
+
anchor: 'split the expression',
|
|
148
|
+
repair: 'Split the expression into named intermediate rules so each stays inside the token, node and nesting budget.',
|
|
149
|
+
},
|
|
150
|
+
TABLE_NOT_DECLARED: {
|
|
151
|
+
anchor: 'declare the table',
|
|
152
|
+
repair: 'Declare the table in `datasets` and pass its compiled declaration, or correct the table id.',
|
|
153
|
+
},
|
|
154
|
+
INVALID_CONSTANT_EXPRESSION: {
|
|
155
|
+
anchor: 'correct the literal operands',
|
|
156
|
+
repair: 'Correct the literal operands or bounds so the expression can produce a value: keep an integer result, including a `ceil` or `floor` of a decimal literal, inside -(2^53 - 1)..(2^53 - 1), divide by a non-zero value, and write `between(x, low, high)` with `low <= high`.',
|
|
157
|
+
},
|
|
158
|
+
};
|
|
159
|
+
/** The repair row for one schema code, total over the closed union. */
|
|
160
|
+
export function schemaDiagnosticRepair(code) {
|
|
161
|
+
return SCHEMA_DIAGNOSTIC_REPAIRS[code];
|
|
162
|
+
}
|
|
163
|
+
//# sourceMappingURL=repair.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"repair.js","sourceRoot":"","sources":["../../src/schema/repair.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,4BAA4B,EAAE,MAAM,0BAA0B,CAAC;AAwBxE;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAoC;IACtE,mBAAmB;IACnB,mBAAmB;IACnB,gBAAgB;IAChB,sBAAsB;IACtB,kBAAkB;IAClB,gBAAgB;IAChB,iBAAiB;IACjB,iBAAiB;IACjB,oBAAoB;IACpB,oBAAoB;IACpB,oBAAoB;IACpB,wBAAwB;IACxB,gBAAgB;IAChB,6BAA6B;IAC7B,uBAAuB;IACvB,iBAAiB;IACjB,gBAAgB;IAChB,gBAAgB;IAChB,mBAAmB;IACnB,kBAAkB;IAClB,iBAAiB;IACjB,kBAAkB;IAClB,eAAe;IACf,oBAAoB;IACpB,kBAAkB;IAClB,qBAAqB;IACrB,sBAAsB;IACtB,oBAAoB;IACpB,6BAA6B;CAC9B,CAAC;AAEF,wEAAwE;AACxE,MAAM,CAAC,MAAM,yBAAyB,GAElC;IACF,iBAAiB,EAAE;QACjB,MAAM,EAAE,kBAAkB;QAC1B,MAAM,EACJ,6IAA6I;KAChJ;IACD,iBAAiB,EAAE;QACjB,MAAM,EAAE,kBAAkB;QAC1B,MAAM,EACJ,uIAAuI;KAC1I;IACD,cAAc,EAAE;QACd,MAAM,EAAE,mBAAmB;QAC3B,MAAM,EACJ,4IAA4I;KAC/I;IACD,oBAAoB,EAAE;QACpB,MAAM,EAAE,sBAAsB;QAC9B,MAAM,EACJ,4IAA4I;KAC/I;IACD,gBAAgB,EAAE;QAChB,MAAM,EAAE,iBAAiB;QACzB,MAAM,EAAE,uEAAuE;KAChF;IACD,cAAc,EAAE;QACd,MAAM,EAAE,iBAAiB;QACzB,MAAM,EAAE,qFAAqF;KAC9F;IACD,eAAe,EAAE;QACf,MAAM,EAAE,oBAAoB;QAC5B,MAAM,EACJ,8GAA8G;KACjH;IACD,eAAe,EAAE;QACf,MAAM,EAAE,qBAAqB;QAC7B,MAAM,EACJ,sHAAsH;KACzH;IACD,kBAAkB,EAAE;QAClB,MAAM,EAAE,iBAAiB;QACzB,MAAM,EACJ,qGAAqG;KACxG;IACD,kBAAkB,EAAE;QAClB,MAAM,EAAE,UAAU;QAClB,MAAM,EACJ,+HAA+H;KAClI;IACD,kBAAkB,EAAE;QAClB,MAAM,EAAE,sBAAsB;QAC9B,MAAM,EACJ,sGAAsG;KACzG;IACD,sBAAsB,EAAE;QACtB,MAAM,EAAE,+BAA+B;QACvC,MAAM,EACJ,yFAAyF;KAC5F;IACD,cAAc,EAAE;QACd,MAAM,EAAE,4BAA4B;QACpC,MAAM,EACJ,iGAAiG;KACpG;IACD,2BAA2B,EAAE;QAC3B,MAAM,EAAE,WAAW;QACnB,MAAM,EAAE,8FAA8F,4BAA4B,2CAA2C;KAC9K;IACD,qBAAqB,EAAE;QACrB,MAAM,EAAE,qBAAqB;QAC7B,MAAM,EACJ,yHAAyH;KAC5H;IACD,eAAe,EAAE;QACf,MAAM,EAAE,uBAAuB;QAC/B,MAAM,EACJ,qGAAqG;KACxG;IACD,cAAc,EAAE;QACd,MAAM,EAAE,gBAAgB;QACxB,MAAM,EACJ,gGAAgG;KACnG;IACD,cAAc,EAAE;QACd,MAAM,EAAE,uBAAuB;QAC/B,MAAM,EACJ,gJAAgJ;KACnJ;IACD,iBAAiB,EAAE;QACjB,MAAM,EAAE,WAAW;QACnB,MAAM,EACJ,qGAAqG;KACxG;IACD,gBAAgB,EAAE;QAChB,MAAM,EAAE,gBAAgB;QACxB,MAAM,EACJ,yGAAyG;KAC5G;IACD,eAAe,EAAE;QACf,MAAM,EAAE,0BAA0B;QAClC,MAAM,EACJ,oKAAoK;KACvK;IACD,gBAAgB,EAAE;QAChB,MAAM,EAAE,wBAAwB;QAChC,MAAM,EACJ,4GAA4G;KAC/G;IACD,aAAa,EAAE;QACb,MAAM,EAAE,oBAAoB;QAC5B,MAAM,EACJ,gGAAgG;KACnG;IACD,kBAAkB,EAAE;QAClB,MAAM,EAAE,gBAAgB;QACxB,MAAM,EACJ,sGAAsG;KACzG;IACD,gBAAgB,EAAE;QAChB,MAAM,EAAE,iBAAiB;QACzB,MAAM,EACJ,+FAA+F;KAClG;IACD,mBAAmB,EAAE;QACnB,MAAM,EAAE,qBAAqB;QAC7B,MAAM,EACJ,kHAAkH;KACrH;IACD,oBAAoB,EAAE;QACpB,MAAM,EAAE,sBAAsB;QAC9B,MAAM,EACJ,6GAA6G;KAChH;IACD,kBAAkB,EAAE;QAClB,MAAM,EAAE,mBAAmB;QAC3B,MAAM,EACJ,6FAA6F;KAChG;IACD,2BAA2B,EAAE;QAC3B,MAAM,EAAE,8BAA8B;QACtC,MAAM,EACJ,6QAA6Q;KAChR;CACF,CAAC;AAEF,uEAAuE;AACvE,MAAM,UAAU,sBAAsB,CAAC,IAA0B;IAC/D,OAAO,yBAAyB,CAAC,IAAI,CAAC,CAAC;AACzC,CAAC","sourcesContent":["import { DATASET_DECLARATION_CHANNELS } from './dataset-declaration.js';\nimport type { SchemaDiagnosticCode } from './diagnostic.js';\n\n/**\n * The repair a schema diagnostic names, keyed by the closed code union.\n *\n * A diagnostic's `detail` states the concrete cause, and most causes already end with what to\n * change. The ones that do not — a metaschema keyword, an ingestion parser's sentence, a\n * catalogue count — would otherwise reach a terminal as a statement of fact with no action.\n * This table is the one repair per code, so `axiom-cli` can print it whenever the detail does\n * not carry it, and the gate in `__tests__/repair-gate.test.ts` fails when a code is added\n * without a row or a row stops naming an action.\n *\n * `anchor` is the phrase a detail uses when it already states the same repair; the renderer\n * prints `repair` only when the detail does not contain it, so a specific cause is never\n * repeated by a generic sentence.\n */\nexport interface SchemaDiagnosticRepair {\n /** The action that removes the diagnostic, in an author's vocabulary. */\n readonly repair: string;\n /** The phrase a detail carries when it already states this repair. */\n readonly anchor: string;\n}\n\n/**\n * Every schema diagnostic code, as the tuple a gate names each by.\n *\n * The annotation refuses a name the union does not state, and the repair table below is typed\n * `Record<SchemaDiagnosticCode, SchemaDiagnosticRepair>`, so a union member with no row fails\n * typecheck. A gate therefore reads the codes without reaching the table.\n */\nexport const SCHEMA_DIAGNOSTIC_CODES: readonly SchemaDiagnosticCode[] = [\n 'JSON_INGEST_ERROR',\n 'YAML_INGEST_ERROR',\n 'SCHEMA_INVALID',\n 'DUPLICATE_IDENTIFIER',\n 'DUPLICATE_WRITER',\n 'CYCLE_DETECTED',\n 'INVALID_ROW_KEY',\n 'INVALID_CONTROL',\n 'INVALID_RULE_SCOPE',\n 'SIGNATURE_COVERAGE',\n 'INVALID_TEST_VALUE',\n 'UNRESOLVED_MESSAGE_KEY',\n 'MESSAGE_LOCALE',\n 'DATASET_DECLARATION_MISSING',\n 'MESSAGE_COMPILE_ERROR',\n 'MESSAGE_BINDING',\n 'RULE_REFERENCE',\n 'UNKNOWN_OPTION',\n 'PRIMARY_SELECTION',\n 'LAYOUT_STRUCTURE',\n 'OVERLAY_REFUSED',\n 'EXPR_PARSE_ERROR',\n 'TYPE_MISMATCH',\n 'UNKNOWN_IDENTIFIER',\n 'MONEY_ARITHMETIC',\n 'PATTERN_UNSUPPORTED',\n 'COST_BUDGET_EXCEEDED',\n 'TABLE_NOT_DECLARED',\n 'INVALID_CONSTANT_EXPRESSION',\n];\n\n/** Every schema diagnostic code and the repair an author can act on. */\nexport const SCHEMA_DIAGNOSTIC_REPAIRS: Readonly<\n Record<SchemaDiagnosticCode, SchemaDiagnosticRepair>\n> = {\n JSON_INGEST_ERROR: {\n anchor: 'correct the json',\n repair:\n 'Correct the JSON text at the reported offset: state each member once, close and escape every string, and write no decimal as a JSON number.',\n },\n YAML_INGEST_ERROR: {\n anchor: 'correct the yaml',\n repair:\n 'Correct the YAML text at the reported offset using only the JSON-compatible core schema: no custom tag, merge key or second document.',\n },\n SCHEMA_INVALID: {\n anchor: 'change the member',\n repair:\n 'Change the member the detail names so it matches the closed metaschema; the path locates the value and the detail states its type or enum.',\n },\n DUPLICATE_IDENTIFIER: {\n anchor: 'choose an identifier',\n repair:\n 'Choose an identifier no other declaration uses: a `fieldId`, `ruleId`, option code, step id and message key are unique within their owner.',\n },\n DUPLICATE_WRITER: {\n anchor: 'keep one writer',\n repair: 'Keep one writer for the field and fold the other computation into it.',\n },\n CYCLE_DETECTED: {\n anchor: 'break the cycle',\n repair: 'Break the cycle by computing the value once and reading the declared field instead.',\n },\n INVALID_ROW_KEY: {\n anchor: 'declare a `rowkey`',\n repair:\n 'Declare a `rowKey` whose `fieldId` names an uncomputed `string` or `integer` member of the item declaration.',\n },\n INVALID_CONTROL: {\n anchor: 'declare a `control`',\n repair:\n \"Declare a `control` from the list the field's `primitive` admits, or remove a control the primitive does not render.\",\n },\n INVALID_RULE_SCOPE: {\n anchor: 'change the rule',\n repair:\n \"Change the rule's `scope` or the field it names so the target is one the scope and rule kind admit.\",\n },\n SIGNATURE_COVERAGE: {\n anchor: '`covers`',\n repair:\n \"Declare the `signature_capture` field's `covers` list and make the compared `digest` bind the same targets in the same order.\",\n },\n INVALID_TEST_VALUE: {\n anchor: 'change the test case',\n repair:\n \"Change the test case's `values`, `context` or `expected` to the declaration the rule's field states.\",\n },\n UNRESOLVED_MESSAGE_KEY: {\n anchor: 'declare the key in `messages`',\n repair:\n 'Declare the key in `messages`, or point the rule or field at a key the catalogue holds.',\n },\n MESSAGE_LOCALE: {\n anchor: 'write the text under every',\n repair:\n 'Write the text under every locale `locales` declares, and spell `defaultLocale` as one of them.',\n },\n DATASET_DECLARATION_MISSING: {\n anchor: '--dataset',\n repair: `Pass the compiled declaration of every table the document's \\`datasets\\` member pins, with ${DATASET_DECLARATION_CHANNELS}, at the version the \\`datasetRef\\` pins.`,\n },\n MESSAGE_COMPILE_ERROR: {\n anchor: 'rewrite the message',\n repair:\n 'Rewrite the message so the ICU parser admits it: balance every brace and give each argument the type its slot declares.',\n },\n MESSAGE_BINDING: {\n anchor: 'bind the interpolated',\n repair:\n \"Bind the interpolated name in the rule's `params`, or remove the placeholder from the message text.\",\n },\n RULE_REFERENCE: {\n anchor: 'move the check',\n repair:\n 'Move the check into a gate item, or name a rule `rule_ok`/`no_blocking` the document declares.',\n },\n UNKNOWN_OPTION: {\n anchor: 'spell the option code',\n repair:\n 'Spell the option code the field declares, or declare that code on the field; a comparison against a code no declaration admits can never hold.',\n },\n PRIMARY_SELECTION: {\n anchor: 'designate',\n repair:\n 'Designate one declared `ruleId` in `primaryGateId` or `primaryScreenId`, or remove the designation.',\n },\n LAYOUT_STRUCTURE: {\n anchor: 'move or rename',\n repair:\n 'Move or rename the layout node so the containment, anchor, field or column rule the detail names holds.',\n },\n OVERLAY_REFUSED: {\n anchor: 'change the named overlay',\n repair:\n 'Change the named overlay so it adds rather than removes or renames a published field, and states a domain that still admits every value the base already admitted.',\n },\n EXPR_PARSE_ERROR: {\n anchor: 'correct the expression',\n repair:\n 'Correct the expression syntax at the reported offset; the detail names the token or the intended operator.',\n },\n TYPE_MISMATCH: {\n anchor: 'convert or compare',\n repair:\n 'Convert or compare the operand first so the operator receives the type its signature declares.',\n },\n UNKNOWN_IDENTIFIER: {\n anchor: 'use a declared',\n repair:\n 'Use a declared field, context root, table or rule id; the compiler offers the closest declared name.',\n },\n MONEY_ARITHMETIC: {\n anchor: 'add or subtract',\n repair:\n 'Add or subtract money with `+` and `-`, or convert with `money_minor` and `money_from_minor`.',\n },\n PATTERN_UNSUPPORTED: {\n anchor: 'rewrite the pattern',\n repair:\n 'Rewrite the pattern inside the supported ASCII subset; remove lookaround, backreferences and nested quantifiers.',\n },\n COST_BUDGET_EXCEEDED: {\n anchor: 'split the expression',\n repair:\n 'Split the expression into named intermediate rules so each stays inside the token, node and nesting budget.',\n },\n TABLE_NOT_DECLARED: {\n anchor: 'declare the table',\n repair:\n 'Declare the table in `datasets` and pass its compiled declaration, or correct the table id.',\n },\n INVALID_CONSTANT_EXPRESSION: {\n anchor: 'correct the literal operands',\n repair:\n 'Correct the literal operands or bounds so the expression can produce a value: keep an integer result, including a `ceil` or `floor` of a decimal literal, inside -(2^53 - 1)..(2^53 - 1), divide by a non-zero value, and write `between(x, low, high)` with `low <= high`.',\n },\n};\n\n/** The repair row for one schema code, total over the closed union. */\nexport function schemaDiagnosticRepair(code: SchemaDiagnosticCode): SchemaDiagnosticRepair {\n return SCHEMA_DIAGNOSTIC_REPAIRS[code];\n}\n"]}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { Schema } from '@cfworker/json-schema';
|
|
2
|
+
/** `spec/metaschema/dataset.v1.json`, embedded so the compiler validates against the
|
|
3
|
+
* committed contract without a path back into `spec/`; descriptions carry no clause ids. */
|
|
4
|
+
export declare const DATASET_V1: Schema;
|
|
5
|
+
/** `spec/metaschema/report.v1.json`, embedded so the compiler validates against the
|
|
6
|
+
* committed contract without a path back into `spec/`; descriptions carry no clause ids. */
|
|
7
|
+
export declare const REPORT_V1: Schema;
|
|
8
|
+
/** `spec/metaschema/scenarios.v1.json`, embedded so the compiler validates against the
|
|
9
|
+
* committed contract without a path back into `spec/`; descriptions carry no clause ids. */
|
|
10
|
+
export declare const SCENARIOS_V1: Schema;
|
|
11
|
+
/** `spec/metaschema/schema.v1.json`, embedded so the compiler validates against the
|
|
12
|
+
* committed contract without a path back into `spec/`; descriptions carry no clause ids. */
|
|
13
|
+
export declare const SCHEMA_V1: Schema;
|
|
14
|
+
//# sourceMappingURL=schema-v1.generated.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema-v1.generated.d.ts","sourceRoot":"","sources":["../../src/schema/schema-v1.generated.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAEpD;4FAC4F;AAC5F,eAAO,MAAM,UAAU,EAAE,MAwbxB,CACA;AAED;4FAC4F;AAC5F,eAAO,MAAM,SAAS,EAAE,MAqtCvB,CACA;AAED;4FAC4F;AAC5F,eAAO,MAAM,YAAY,EAAE,MAk+B1B,CACA;AAED;4FAC4F;AAC5F,eAAO,MAAM,SAAS,EAAE,MA6yIvB,CACA"}
|