@maroonedog/luq 0.1.2-alpha → 2.1.0
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 +9 -9
- package/README.md +479 -215
- package/dist/async/async-context.d.ts +41 -0
- package/dist/async/async-context.js +84 -0
- package/dist/async/async-context.mjs +79 -0
- package/dist/async/async-validator.d.ts +20 -0
- package/dist/async/async-validator.js +52 -0
- package/dist/async/async-validator.mjs +47 -0
- package/dist/async/index.d.ts +4 -0
- package/dist/async/index.js +25 -0
- package/dist/async/index.mjs +16 -0
- package/dist/async.d.ts +1 -0
- package/dist/async.js +2 -0
- package/dist/async.mjs +1 -0
- package/dist/builder/builder-surface.types.d.ts +39 -0
- package/dist/builder/builder-surface.types.js +2 -0
- package/dist/builder/builder-surface.types.mjs +1 -0
- package/dist/builder/compile-declarations.d.ts +4 -0
- package/dist/builder/compile-declarations.js +40 -0
- package/dist/builder/compile-declarations.mjs +37 -0
- package/dist/builder/create-builder.d.ts +16 -0
- package/dist/builder/create-builder.js +98 -0
- package/dist/builder/create-builder.mjs +92 -0
- package/dist/builder/create-field-builder.d.ts +5 -0
- package/dist/builder/create-field-builder.js +47 -0
- package/dist/builder/create-field-builder.mjs +44 -0
- package/dist/builder/create-plan-validator.d.ts +3 -0
- package/dist/builder/create-plan-validator.js +15 -0
- package/dist/builder/create-plan-validator.mjs +12 -0
- package/dist/builder/create-projection-reader.d.ts +3 -0
- package/dist/builder/create-projection-reader.js +44 -0
- package/dist/builder/create-projection-reader.mjs +41 -0
- package/dist/builder/create-subset-validator.d.ts +3 -0
- package/dist/builder/create-subset-validator.js +40 -0
- package/dist/builder/create-subset-validator.mjs +37 -0
- package/dist/builder/field-builder.types.d.ts +43 -0
- package/dist/builder/field-builder.types.js +11 -0
- package/dist/builder/field-builder.types.mjs +8 -0
- package/dist/builder/field-entry.types.d.ts +10 -0
- package/dist/builder/field-entry.types.js +2 -0
- package/dist/builder/field-entry.types.mjs +1 -0
- package/dist/builder/field-options.types.d.ts +11 -0
- package/dist/builder/field-options.types.js +13 -0
- package/dist/builder/field-options.types.mjs +12 -0
- package/dist/builder/global-config-store.d.ts +4 -0
- package/dist/builder/global-config-store.js +29 -0
- package/dist/builder/global-config-store.mjs +24 -0
- package/dist/builder/index.d.ts +6 -0
- package/dist/builder/index.js +17 -0
- package/dist/builder/index.mjs +8 -0
- package/dist/builder/resolve-field-default.d.ts +14 -0
- package/dist/builder/resolve-field-default.js +50 -0
- package/dist/builder/resolve-field-default.mjs +47 -0
- package/dist/builder/validator.types.d.ts +28 -0
- package/dist/builder/validator.types.js +2 -0
- package/dist/builder/validator.types.mjs +1 -0
- package/dist/chain/attach-slot-methods.d.ts +17 -0
- package/dist/chain/attach-slot-methods.js +47 -0
- package/dist/chain/attach-slot-methods.mjs +42 -0
- package/dist/chain/chain-method.types.d.ts +16 -0
- package/dist/chain/chain-method.types.js +2 -0
- package/dist/chain/chain-method.types.mjs +1 -0
- package/dist/chain/chain-state.types.d.ts +47 -0
- package/dist/chain/chain-state.types.js +2 -0
- package/dist/chain/chain-state.types.mjs +1 -0
- package/dist/chain/collect-branch-rules.d.ts +18 -0
- package/dist/chain/collect-branch-rules.js +71 -0
- package/dist/chain/collect-branch-rules.mjs +65 -0
- package/dist/chain/collect-field-rules.d.ts +10 -0
- package/dist/chain/collect-field-rules.js +22 -0
- package/dist/chain/collect-field-rules.mjs +17 -0
- package/dist/chain/create-chain-node.d.ts +26 -0
- package/dist/chain/create-chain-node.js +103 -0
- package/dist/chain/create-chain-node.mjs +98 -0
- package/dist/chain/create-field-slots.d.ts +6 -0
- package/dist/chain/create-field-slots.js +37 -0
- package/dist/chain/create-field-slots.mjs +33 -0
- package/dist/chain/field-chain.types.d.ts +25 -0
- package/dist/chain/field-chain.types.js +2 -0
- package/dist/chain/field-chain.types.mjs +1 -0
- package/dist/chain/field-slots.types.d.ts +18 -0
- package/dist/chain/field-slots.types.js +2 -0
- package/dist/chain/field-slots.types.mjs +1 -0
- package/dist/chain/index.d.ts +13 -0
- package/dist/chain/index.js +26 -0
- package/dist/chain/index.mjs +9 -0
- package/dist/chain/marker-coverage.types.d.ts +56 -0
- package/dist/chain/marker-coverage.types.js +2 -0
- package/dist/chain/marker-coverage.types.mjs +1 -0
- package/dist/chain/plugin-bag.types.d.ts +9 -0
- package/dist/chain/plugin-bag.types.js +2 -0
- package/dist/chain/plugin-bag.types.mjs +1 -0
- package/dist/chain/refine-methods.types.d.ts +33 -0
- package/dist/chain/refine-methods.types.js +14 -0
- package/dist/chain/refine-methods.types.mjs +11 -0
- package/dist/chain/resolve-args.types.d.ts +28 -0
- package/dist/chain/resolve-args.types.js +2 -0
- package/dist/chain/resolve-args.types.mjs +1 -0
- package/dist/chain/slot-value.types.d.ts +14 -0
- package/dist/chain/slot-value.types.js +2 -0
- package/dist/chain/slot-value.types.mjs +1 -0
- package/dist/compile/branch-executor.port.d.ts +6 -0
- package/dist/compile/branch-executor.port.js +2 -0
- package/dist/compile/branch-executor.port.mjs +1 -0
- package/dist/compile/compile-array-node.d.ts +19 -0
- package/dist/compile/compile-array-node.js +50 -0
- package/dist/compile/compile-array-node.mjs +46 -0
- package/dist/compile/compile-composite.d.ts +18 -0
- package/dist/compile/compile-composite.js +30 -0
- package/dist/compile/compile-composite.mjs +27 -0
- package/dist/compile/compile-field.d.ts +31 -0
- package/dist/compile/compile-field.js +67 -0
- package/dist/compile/compile-field.mjs +62 -0
- package/dist/compile/compile-schema.d.ts +8 -0
- package/dist/compile/compile-schema.js +126 -0
- package/dist/compile/compile-schema.mjs +121 -0
- package/dist/compile/declared-child-keys.d.ts +15 -0
- package/dist/compile/declared-child-keys.js +70 -0
- package/dist/compile/declared-child-keys.mjs +66 -0
- package/dist/compile/group-array-fields.d.ts +39 -0
- package/dist/compile/group-array-fields.js +66 -0
- package/dist/compile/group-array-fields.mjs +63 -0
- package/dist/compile/index.d.ts +18 -0
- package/dist/compile/index.js +33 -0
- package/dist/compile/index.mjs +10 -0
- package/dist/compile/resolve-conditional-presence.d.ts +5 -0
- package/dist/compile/resolve-conditional-presence.js +42 -0
- package/dist/compile/resolve-conditional-presence.mjs +38 -0
- package/dist/compile/resolve-presence.d.ts +6 -0
- package/dist/compile/resolve-presence.js +63 -0
- package/dist/compile/resolve-presence.mjs +59 -0
- package/dist/compile/resolve-recursion.d.ts +10 -0
- package/dist/compile/resolve-recursion.js +33 -0
- package/dist/compile/resolve-recursion.mjs +28 -0
- package/dist/compile/split-rules-by-kind.d.ts +16 -0
- package/dist/compile/split-rules-by-kind.js +61 -0
- package/dist/compile/split-rules-by-kind.mjs +56 -0
- package/dist/compile/validation-plan.types.d.ts +123 -0
- package/dist/compile/validation-plan.types.js +2 -0
- package/dist/compile/validation-plan.types.mjs +1 -0
- package/dist/core/type-erasure.d.ts +42 -0
- package/dist/core/type-erasure.js +63 -0
- package/dist/core/type-erasure.mjs +57 -0
- package/dist/field-rule/create-field-rule.d.ts +11 -0
- package/dist/field-rule/create-field-rule.js +50 -0
- package/dist/field-rule/create-field-rule.mjs +46 -0
- package/dist/field-rule/create-plugin-registry.d.ts +2 -0
- package/dist/field-rule/create-plugin-registry.js +60 -0
- package/dist/field-rule/create-plugin-registry.mjs +57 -0
- package/dist/field-rule/field-rule.types.d.ts +38 -0
- package/dist/field-rule/field-rule.types.js +2 -0
- package/dist/field-rule/field-rule.types.mjs +1 -0
- package/dist/field-rule/index.d.ts +5 -0
- package/dist/field-rule/index.js +13 -0
- package/dist/field-rule/index.mjs +6 -0
- package/dist/field-rule/plugin-registry.types.d.ts +17 -0
- package/dist/field-rule/plugin-registry.types.js +2 -0
- package/dist/field-rule/plugin-registry.types.mjs +1 -0
- package/dist/field-rule/use-field.d.ts +6 -0
- package/dist/field-rule/use-field.js +6 -0
- package/dist/field-rule/use-field.mjs +3 -0
- package/dist/field-rule.d.ts +1 -0
- package/dist/field-rule.js +2 -0
- package/dist/field-rule.mjs +1 -0
- package/dist/index.d.ts +14 -72
- package/dist/index.js +48 -2
- package/dist/index.mjs +18 -2
- package/dist/json-schema/apply-keyword-binding.d.ts +20 -0
- package/dist/json-schema/apply-keyword-binding.js +7 -0
- package/dist/json-schema/apply-keyword-binding.mjs +4 -0
- package/dist/json-schema/bind-keyword.d.ts +7 -0
- package/dist/json-schema/bind-keyword.js +21 -0
- package/dist/json-schema/bind-keyword.mjs +16 -0
- package/dist/json-schema/build-from-schema.d.ts +23 -0
- package/dist/json-schema/build-from-schema.js +63 -0
- package/dist/json-schema/build-from-schema.mjs +56 -0
- package/dist/json-schema/collect-definitions.d.ts +51 -0
- package/dist/json-schema/collect-definitions.js +111 -0
- package/dist/json-schema/collect-definitions.mjs +101 -0
- package/dist/json-schema/collect-sub-schema-rules.d.ts +17 -0
- package/dist/json-schema/collect-sub-schema-rules.js +112 -0
- package/dist/json-schema/collect-sub-schema-rules.mjs +108 -0
- package/dist/json-schema/compose-conditional.d.ts +4 -0
- package/dist/json-schema/compose-conditional.js +17 -0
- package/dist/json-schema/compose-conditional.mjs +14 -0
- package/dist/json-schema/compose-keyword.d.ts +7 -0
- package/dist/json-schema/compose-keyword.js +127 -0
- package/dist/json-schema/compose-keyword.mjs +121 -0
- package/dist/json-schema/create-structural-context.d.ts +20 -0
- package/dist/json-schema/create-structural-context.js +117 -0
- package/dist/json-schema/create-structural-context.mjs +113 -0
- package/dist/json-schema/declare-additional-properties.d.ts +19 -0
- package/dist/json-schema/declare-additional-properties.js +42 -0
- package/dist/json-schema/declare-additional-properties.mjs +37 -0
- package/dist/json-schema/declare-object-keywords.d.ts +22 -0
- package/dist/json-schema/declare-object-keywords.js +133 -0
- package/dist/json-schema/declare-object-keywords.mjs +126 -0
- package/dist/json-schema/declare-presence.d.ts +18 -0
- package/dist/json-schema/declare-presence.js +52 -0
- package/dist/json-schema/declare-presence.mjs +49 -0
- package/dist/json-schema/declare-required-properties.d.ts +18 -0
- package/dist/json-schema/declare-required-properties.js +58 -0
- package/dist/json-schema/declare-required-properties.mjs +55 -0
- package/dist/json-schema/declare-scalar-keywords.d.ts +11 -0
- package/dist/json-schema/declare-scalar-keywords.js +110 -0
- package/dist/json-schema/declare-scalar-keywords.mjs +105 -0
- package/dist/json-schema/declare-value-keywords.d.ts +23 -0
- package/dist/json-schema/declare-value-keywords.js +120 -0
- package/dist/json-schema/declare-value-keywords.mjs +112 -0
- package/dist/json-schema/draft07-keyword-value.types.d.ts +61 -0
- package/dist/json-schema/draft07-keyword-value.types.js +2 -0
- package/dist/json-schema/draft07-keyword-value.types.mjs +1 -0
- package/dist/json-schema/draft07.types.d.ts +57 -0
- package/dist/json-schema/draft07.types.js +28 -0
- package/dist/json-schema/draft07.types.mjs +24 -0
- package/dist/json-schema/extensions/json-schema/index.d.ts +4 -0
- package/dist/json-schema/extensions/json-schema/index.js +27 -0
- package/dist/json-schema/extensions/json-schema/index.mjs +11 -0
- package/dist/json-schema/extensions/json-schema/json-schema.d.ts +33 -0
- package/dist/json-schema/extensions/json-schema/json-schema.js +108 -0
- package/dist/json-schema/extensions/json-schema/json-schema.mjs +104 -0
- package/dist/json-schema/extensions/json-schema-full-feature/bundle-coverage.d.ts +38 -0
- package/dist/json-schema/extensions/json-schema-full-feature/bundle-coverage.js +96 -0
- package/dist/json-schema/extensions/json-schema-full-feature/bundle-coverage.mjs +89 -0
- package/dist/json-schema/extensions/json-schema-full-feature/bundled-plugins.d.ts +7 -0
- package/dist/json-schema/extensions/json-schema-full-feature/bundled-plugins.js +107 -0
- package/dist/json-schema/extensions/json-schema-full-feature/bundled-plugins.mjs +104 -0
- package/dist/json-schema/extensions/json-schema-full-feature/index.d.ts +5 -0
- package/dist/json-schema/extensions/json-schema-full-feature/index.js +25 -0
- package/dist/json-schema/extensions/json-schema-full-feature/index.mjs +14 -0
- package/dist/json-schema/extensions/json-schema-full-feature/json-schema-full-feature.d.ts +24 -0
- package/dist/json-schema/extensions/json-schema-full-feature/json-schema-full-feature.js +66 -0
- package/dist/json-schema/extensions/json-schema-full-feature/json-schema-full-feature.mjs +62 -0
- package/dist/json-schema/flatten-array-schema.d.ts +25 -0
- package/dist/json-schema/flatten-array-schema.js +141 -0
- package/dist/json-schema/flatten-array-schema.mjs +134 -0
- package/dist/json-schema/flatten-schema.d.ts +20 -0
- package/dist/json-schema/flatten-schema.js +162 -0
- package/dist/json-schema/flatten-schema.mjs +157 -0
- package/dist/json-schema/follow-json-pointer.d.ts +23 -0
- package/dist/json-schema/follow-json-pointer.js +87 -0
- package/dist/json-schema/follow-json-pointer.mjs +82 -0
- package/dist/json-schema/format-map.d.ts +20 -0
- package/dist/json-schema/format-map.js +89 -0
- package/dist/json-schema/format-map.mjs +84 -0
- package/dist/json-schema/index.d.ts +24 -0
- package/dist/json-schema/index.js +65 -0
- package/dist/json-schema/index.mjs +22 -0
- package/dist/json-schema/json-schema-bag.types.d.ts +124 -0
- package/dist/json-schema/json-schema-bag.types.js +2 -0
- package/dist/json-schema/json-schema-bag.types.mjs +1 -0
- package/dist/json-schema/keyword-binding.types.d.ts +50 -0
- package/dist/json-schema/keyword-binding.types.js +2 -0
- package/dist/json-schema/keyword-binding.types.mjs +1 -0
- package/dist/json-schema/keyword-map-array.d.ts +13 -0
- package/dist/json-schema/keyword-map-array.js +37 -0
- package/dist/json-schema/keyword-map-array.mjs +34 -0
- package/dist/json-schema/keyword-map-core.d.ts +8 -0
- package/dist/json-schema/keyword-map-core.js +54 -0
- package/dist/json-schema/keyword-map-core.mjs +51 -0
- package/dist/json-schema/keyword-map-number.d.ts +13 -0
- package/dist/json-schema/keyword-map-number.js +33 -0
- package/dist/json-schema/keyword-map-number.mjs +30 -0
- package/dist/json-schema/keyword-map-object.d.ts +17 -0
- package/dist/json-schema/keyword-map-object.js +51 -0
- package/dist/json-schema/keyword-map-object.mjs +48 -0
- package/dist/json-schema/keyword-map-string.d.ts +20 -0
- package/dist/json-schema/keyword-map-string.js +44 -0
- package/dist/json-schema/keyword-map-string.mjs +41 -0
- package/dist/json-schema/keyword-map.d.ts +32 -0
- package/dist/json-schema/keyword-map.js +93 -0
- package/dist/json-schema/keyword-map.mjs +84 -0
- package/dist/json-schema/ref-resolution-error.d.ts +4 -0
- package/dist/json-schema/ref-resolution-error.js +20 -0
- package/dist/json-schema/ref-resolution-error.mjs +16 -0
- package/dist/json-schema/ref-scope.d.ts +18 -0
- package/dist/json-schema/ref-scope.js +37 -0
- package/dist/json-schema/ref-scope.mjs +33 -0
- package/dist/json-schema/resolve-ref.d.ts +21 -0
- package/dist/json-schema/resolve-ref.js +133 -0
- package/dist/json-schema/resolve-ref.mjs +128 -0
- package/dist/json-schema/schema-registry.d.ts +30 -0
- package/dist/json-schema/schema-registry.js +142 -0
- package/dist/json-schema/schema-registry.mjs +139 -0
- package/dist/json-schema/schema-to-declarations.d.ts +9 -0
- package/dist/json-schema/schema-to-declarations.js +123 -0
- package/dist/json-schema/schema-to-declarations.mjs +117 -0
- package/dist/json-schema/structural-expansion.types.d.ts +90 -0
- package/dist/json-schema/structural-expansion.types.js +22 -0
- package/dist/json-schema/structural-expansion.types.mjs +18 -0
- package/dist/json-schema/unsupported-keyword-error.d.ts +5 -0
- package/dist/json-schema/unsupported-keyword-error.js +24 -0
- package/dist/json-schema/unsupported-keyword-error.mjs +20 -0
- package/dist/json-schema/uri-reference.d.ts +29 -0
- package/dist/json-schema/uri-reference.js +118 -0
- package/dist/json-schema/uri-reference.mjs +111 -0
- package/dist/path/create-array-reader.d.ts +13 -0
- package/dist/path/create-array-reader.js +22 -0
- package/dist/path/create-array-reader.mjs +19 -0
- package/dist/path/create-value-reader.d.ts +26 -0
- package/dist/path/create-value-reader.js +71 -0
- package/dist/path/create-value-reader.mjs +65 -0
- package/dist/path/create-value-writer.d.ts +5 -0
- package/dist/path/create-value-writer.js +80 -0
- package/dist/path/create-value-writer.mjs +77 -0
- package/dist/path/element-of.types.d.ts +1 -0
- package/dist/path/element-of.types.js +2 -0
- package/dist/path/element-of.types.mjs +1 -0
- package/dist/path/field-path.types.d.ts +13 -0
- package/dist/path/field-path.types.js +2 -0
- package/dist/path/field-path.types.mjs +1 -0
- package/dist/path/format-issue-path.d.ts +15 -0
- package/dist/path/format-issue-path.js +34 -0
- package/dist/path/format-issue-path.mjs +31 -0
- package/dist/path/index.d.ts +18 -0
- package/dist/path/index.js +26 -0
- package/dist/path/index.mjs +7 -0
- package/dist/path/leaf-path.types.d.ts +16 -0
- package/dist/path/leaf-path.types.js +2 -0
- package/dist/path/leaf-path.types.mjs +1 -0
- package/dist/path/match-path-pattern.d.ts +9 -0
- package/dist/path/match-path-pattern.js +66 -0
- package/dist/path/match-path-pattern.mjs +63 -0
- package/dist/path/opaque-object.types.d.ts +5 -0
- package/dist/path/opaque-object.types.js +2 -0
- package/dist/path/opaque-object.types.mjs +1 -0
- package/dist/path/parse-field-path.d.ts +25 -0
- package/dist/path/parse-field-path.js +75 -0
- package/dist/path/parse-field-path.mjs +69 -0
- package/dist/path/path-depth.types.d.ts +4 -0
- package/dist/path/path-depth.types.js +2 -0
- package/dist/path/path-depth.types.mjs +1 -0
- package/dist/path/path-segment.types.d.ts +27 -0
- package/dist/path/path-segment.types.js +2 -0
- package/dist/path/path-segment.types.mjs +1 -0
- package/dist/path/property-value-of.types.d.ts +2 -0
- package/dist/path/property-value-of.types.js +2 -0
- package/dist/path/property-value-of.types.mjs +1 -0
- package/dist/path/reserved-segment.d.ts +46 -0
- package/dist/path/reserved-segment.js +88 -0
- package/dist/path/reserved-segment.mjs +82 -0
- package/dist/path/value-at-path.types.d.ts +25 -0
- package/dist/path/value-at-path.types.js +2 -0
- package/dist/path/value-at-path.types.mjs +1 -0
- package/dist/plugin-kit/compiled-rule.d.ts +112 -0
- package/dist/plugin-kit/compiled-rule.js +2 -0
- package/dist/plugin-kit/compiled-rule.mjs +1 -0
- package/dist/plugin-kit/create-conditional-presence.d.ts +25 -0
- package/dist/plugin-kit/create-conditional-presence.js +32 -0
- package/dist/plugin-kit/create-conditional-presence.mjs +28 -0
- package/dist/plugin-kit/create-rule.d.ts +59 -0
- package/dist/plugin-kit/create-rule.js +68 -0
- package/dist/plugin-kit/create-rule.mjs +58 -0
- package/dist/plugin-kit/external-context.d.ts +2 -0
- package/dist/plugin-kit/external-context.js +25 -0
- package/dist/plugin-kit/external-context.mjs +22 -0
- package/dist/plugin-kit/index.d.ts +11 -0
- package/dist/plugin-kit/index.js +39 -0
- package/dist/plugin-kit/index.mjs +23 -0
- package/dist/plugin-kit/is-json-value-equal.d.ts +10 -0
- package/dist/plugin-kit/is-json-value-equal.js +81 -0
- package/dist/plugin-kit/is-json-value-equal.mjs +77 -0
- package/dist/plugin-kit/marker.types.d.ts +114 -0
- package/dist/plugin-kit/marker.types.js +2 -0
- package/dist/plugin-kit/marker.types.mjs +1 -0
- package/dist/plugin-kit/plugin-definition.d.ts +55 -0
- package/dist/plugin-kit/plugin-definition.js +26 -0
- package/dist/plugin-kit/plugin-definition.mjs +21 -0
- package/dist/plugin-kit/rule-build-context.d.ts +27 -0
- package/dist/plugin-kit/rule-build-context.js +8 -0
- package/dist/plugin-kit/rule-build-context.mjs +5 -0
- package/dist/plugin-kit/runtime-args.types.d.ts +27 -0
- package/dist/plugin-kit/runtime-args.types.js +2 -0
- package/dist/plugin-kit/runtime-args.types.mjs +1 -0
- package/dist/plugin-kit.d.ts +1 -0
- package/dist/plugin-kit.js +2 -0
- package/dist/plugin-kit.mjs +1 -0
- package/dist/plugins/array-contains/array-contains.d.ts +22 -0
- package/dist/plugins/array-contains/array-contains.js +82 -0
- package/dist/plugins/array-contains/array-contains.mjs +79 -0
- package/dist/plugins/array-contains/index.d.ts +2 -0
- package/dist/plugins/array-contains/index.js +5 -0
- package/dist/plugins/array-contains/index.mjs +1 -0
- package/dist/plugins/array-each/array-each.d.ts +14 -0
- package/dist/plugins/array-each/array-each.js +51 -0
- package/dist/plugins/array-each/array-each.mjs +48 -0
- package/dist/plugins/array-each/index.d.ts +1 -0
- package/dist/plugins/array-each/index.js +5 -0
- package/dist/plugins/array-each/index.mjs +1 -0
- package/dist/plugins/array-includes/array-includes.d.ts +9 -0
- package/dist/plugins/array-includes/array-includes.js +26 -0
- package/dist/plugins/array-includes/array-includes.mjs +23 -0
- package/dist/plugins/array-includes/index.d.ts +2 -0
- package/dist/plugins/array-includes/index.js +5 -0
- package/dist/plugins/array-includes/index.mjs +1 -0
- package/dist/plugins/array-max-length/array-max-length.d.ts +10 -0
- package/dist/plugins/array-max-length/array-max-length.js +29 -0
- package/dist/plugins/array-max-length/array-max-length.mjs +26 -0
- package/dist/plugins/array-max-length/index.d.ts +2 -0
- package/dist/plugins/array-max-length/index.js +5 -0
- package/dist/plugins/array-max-length/index.mjs +1 -0
- package/dist/plugins/array-min-length/array-min-length.d.ts +10 -0
- package/dist/plugins/array-min-length/array-min-length.js +29 -0
- package/dist/plugins/array-min-length/array-min-length.mjs +26 -0
- package/dist/plugins/array-min-length/index.d.ts +2 -0
- package/dist/plugins/array-min-length/index.js +5 -0
- package/dist/plugins/array-min-length/index.mjs +1 -0
- package/dist/plugins/array-unique/array-unique.d.ts +7 -0
- package/dist/plugins/array-unique/array-unique.js +54 -0
- package/dist/plugins/array-unique/array-unique.mjs +51 -0
- package/dist/plugins/array-unique/index.d.ts +1 -0
- package/dist/plugins/array-unique/index.js +5 -0
- package/dist/plugins/array-unique/index.mjs +1 -0
- package/dist/plugins/arrayContains.d.ts +1 -37
- package/dist/plugins/arrayContains.js +2 -1
- package/dist/plugins/arrayContains.mjs +1 -1
- package/dist/plugins/arrayEach.d.ts +1 -0
- package/dist/plugins/arrayEach.js +2 -0
- package/dist/plugins/arrayEach.mjs +1 -0
- package/dist/plugins/arrayIncludes.d.ts +1 -42
- package/dist/plugins/arrayIncludes.js +2 -1
- package/dist/plugins/arrayIncludes.mjs +1 -1
- package/dist/plugins/arrayMaxLength.d.ts +1 -43
- package/dist/plugins/arrayMaxLength.js +2 -1
- package/dist/plugins/arrayMaxLength.mjs +1 -1
- package/dist/plugins/arrayMinLength.d.ts +1 -43
- package/dist/plugins/arrayMinLength.js +2 -1
- package/dist/plugins/arrayMinLength.mjs +1 -1
- package/dist/plugins/arrayUnique.d.ts +1 -41
- package/dist/plugins/arrayUnique.js +2 -1
- package/dist/plugins/arrayUnique.mjs +1 -1
- package/dist/plugins/boolean-falsy/boolean-falsy.d.ts +7 -0
- package/dist/plugins/boolean-falsy/boolean-falsy.js +24 -0
- package/dist/plugins/boolean-falsy/boolean-falsy.mjs +21 -0
- package/dist/plugins/boolean-falsy/index.d.ts +1 -0
- package/dist/plugins/boolean-falsy/index.js +5 -0
- package/dist/plugins/boolean-falsy/index.mjs +1 -0
- package/dist/plugins/boolean-truthy/boolean-truthy.d.ts +7 -0
- package/dist/plugins/boolean-truthy/boolean-truthy.js +24 -0
- package/dist/plugins/boolean-truthy/boolean-truthy.mjs +21 -0
- package/dist/plugins/boolean-truthy/index.d.ts +1 -0
- package/dist/plugins/boolean-truthy/index.js +5 -0
- package/dist/plugins/boolean-truthy/index.mjs +1 -0
- package/dist/plugins/booleanFalsy.d.ts +1 -41
- package/dist/plugins/booleanFalsy.js +2 -1
- package/dist/plugins/booleanFalsy.mjs +1 -1
- package/dist/plugins/booleanTruthy.d.ts +1 -38
- package/dist/plugins/booleanTruthy.js +2 -1
- package/dist/plugins/booleanTruthy.mjs +1 -1
- package/dist/plugins/compare-field/compare-field.d.ts +13 -0
- package/dist/plugins/compare-field/compare-field.js +57 -0
- package/dist/plugins/compare-field/compare-field.mjs +54 -0
- package/dist/plugins/compare-field/index.d.ts +2 -0
- package/dist/plugins/compare-field/index.js +5 -0
- package/dist/plugins/compare-field/index.mjs +1 -0
- package/dist/plugins/compareField.d.ts +1 -58
- package/dist/plugins/compareField.js +2 -1
- package/dist/plugins/compareField.mjs +1 -1
- package/dist/plugins/conditional-schema/conditional-schema.d.ts +17 -0
- package/dist/plugins/conditional-schema/conditional-schema.js +87 -0
- package/dist/plugins/conditional-schema/conditional-schema.mjs +84 -0
- package/dist/plugins/conditional-schema/index.d.ts +2 -0
- package/dist/plugins/conditional-schema/index.js +5 -0
- package/dist/plugins/conditional-schema/index.mjs +1 -0
- package/dist/plugins/conditionalSchema.d.ts +1 -0
- package/dist/plugins/conditionalSchema.js +2 -0
- package/dist/plugins/conditionalSchema.mjs +1 -0
- package/dist/plugins/custom/custom.d.ts +12 -0
- package/dist/plugins/custom/custom.js +82 -0
- package/dist/plugins/custom/custom.mjs +79 -0
- package/dist/plugins/custom/index.d.ts +1 -0
- package/dist/plugins/custom/index.js +5 -0
- package/dist/plugins/custom/index.mjs +1 -0
- package/dist/plugins/custom.d.ts +1 -60
- package/dist/plugins/custom.js +2 -1
- package/dist/plugins/custom.mjs +1 -1
- package/dist/plugins/from-context/from-context.d.ts +28 -0
- package/dist/plugins/from-context/from-context.js +84 -0
- package/dist/plugins/from-context/from-context.mjs +81 -0
- package/dist/plugins/from-context/index.d.ts +2 -0
- package/dist/plugins/from-context/index.js +5 -0
- package/dist/plugins/from-context/index.mjs +1 -0
- package/dist/plugins/fromContext.d.ts +1 -0
- package/dist/plugins/fromContext.js +2 -0
- package/dist/plugins/fromContext.mjs +1 -0
- package/dist/plugins/index.d.ts +1 -0
- package/dist/plugins/index.generated.d.ts +77 -0
- package/dist/plugins/index.generated.js +160 -0
- package/dist/plugins/index.generated.mjs +79 -0
- package/dist/plugins/index.js +2 -0
- package/dist/plugins/index.mjs +1 -0
- package/dist/plugins/jsonSchema.d.ts +1 -11
- package/dist/plugins/jsonSchema.js +2 -1
- package/dist/plugins/jsonSchema.mjs +1 -1
- package/dist/plugins/jsonSchemaFullFeature.d.ts +1 -31
- package/dist/plugins/jsonSchemaFullFeature.js +2 -1
- package/dist/plugins/jsonSchemaFullFeature.mjs +1 -1
- package/dist/plugins/literal/index.d.ts +1 -0
- package/dist/plugins/literal/index.js +5 -0
- package/dist/plugins/literal/index.mjs +1 -0
- package/dist/plugins/literal/literal.d.ts +10 -0
- package/dist/plugins/literal/literal.js +53 -0
- package/dist/plugins/literal/literal.mjs +50 -0
- package/dist/plugins/literal.d.ts +1 -40
- package/dist/plugins/literal.js +2 -1
- package/dist/plugins/literal.mjs +1 -1
- package/dist/plugins/manifest.generated.d.ts +8 -0
- package/dist/plugins/manifest.generated.js +83 -0
- package/dist/plugins/manifest.generated.mjs +80 -0
- package/dist/plugins/nullable/index.d.ts +1 -0
- package/dist/plugins/nullable/index.js +5 -0
- package/dist/plugins/nullable/index.mjs +1 -0
- package/dist/plugins/nullable/nullable.d.ts +7 -0
- package/dist/plugins/nullable/nullable.js +39 -0
- package/dist/plugins/nullable/nullable.mjs +36 -0
- package/dist/plugins/nullable.d.ts +1 -34
- package/dist/plugins/nullable.js +2 -1
- package/dist/plugins/nullable.mjs +1 -1
- package/dist/plugins/number-finite/index.d.ts +1 -0
- package/dist/plugins/number-finite/index.js +5 -0
- package/dist/plugins/number-finite/index.mjs +1 -0
- package/dist/plugins/number-finite/number-finite.d.ts +7 -0
- package/dist/plugins/number-finite/number-finite.js +21 -0
- package/dist/plugins/number-finite/number-finite.mjs +18 -0
- package/dist/plugins/number-integer/index.d.ts +1 -0
- package/dist/plugins/number-integer/index.js +5 -0
- package/dist/plugins/number-integer/index.mjs +1 -0
- package/dist/plugins/number-integer/number-integer.d.ts +7 -0
- package/dist/plugins/number-integer/number-integer.js +21 -0
- package/dist/plugins/number-integer/number-integer.mjs +18 -0
- package/dist/plugins/number-max/index.d.ts +2 -0
- package/dist/plugins/number-max/index.js +5 -0
- package/dist/plugins/number-max/index.mjs +1 -0
- package/dist/plugins/number-max/number-max.d.ts +11 -0
- package/dist/plugins/number-max/number-max.js +36 -0
- package/dist/plugins/number-max/number-max.mjs +33 -0
- package/dist/plugins/number-min/index.d.ts +2 -0
- package/dist/plugins/number-min/index.js +5 -0
- package/dist/plugins/number-min/index.mjs +1 -0
- package/dist/plugins/number-min/number-min.d.ts +11 -0
- package/dist/plugins/number-min/number-min.js +38 -0
- package/dist/plugins/number-min/number-min.mjs +35 -0
- package/dist/plugins/number-multiple-of/index.d.ts +2 -0
- package/dist/plugins/number-multiple-of/index.js +5 -0
- package/dist/plugins/number-multiple-of/index.mjs +1 -0
- package/dist/plugins/number-multiple-of/is-multiple-of.d.ts +7 -0
- package/dist/plugins/number-multiple-of/is-multiple-of.js +61 -0
- package/dist/plugins/number-multiple-of/is-multiple-of.mjs +57 -0
- package/dist/plugins/number-multiple-of/number-multiple-of.d.ts +9 -0
- package/dist/plugins/number-multiple-of/number-multiple-of.js +27 -0
- package/dist/plugins/number-multiple-of/number-multiple-of.mjs +24 -0
- package/dist/plugins/number-negative/index.d.ts +1 -0
- package/dist/plugins/number-negative/index.js +5 -0
- package/dist/plugins/number-negative/index.mjs +1 -0
- package/dist/plugins/number-negative/number-negative.d.ts +7 -0
- package/dist/plugins/number-negative/number-negative.js +21 -0
- package/dist/plugins/number-negative/number-negative.mjs +18 -0
- package/dist/plugins/number-positive/index.d.ts +1 -0
- package/dist/plugins/number-positive/index.js +5 -0
- package/dist/plugins/number-positive/index.mjs +1 -0
- package/dist/plugins/number-positive/number-positive.d.ts +7 -0
- package/dist/plugins/number-positive/number-positive.js +21 -0
- package/dist/plugins/number-positive/number-positive.mjs +18 -0
- package/dist/plugins/number-range/index.d.ts +2 -0
- package/dist/plugins/number-range/index.js +5 -0
- package/dist/plugins/number-range/index.mjs +1 -0
- package/dist/plugins/number-range/number-range.d.ts +11 -0
- package/dist/plugins/number-range/number-range.js +39 -0
- package/dist/plugins/number-range/number-range.mjs +36 -0
- package/dist/plugins/numberFinite.d.ts +1 -0
- package/dist/plugins/numberFinite.js +2 -0
- package/dist/plugins/numberFinite.mjs +1 -0
- package/dist/plugins/numberInteger.d.ts +1 -41
- package/dist/plugins/numberInteger.js +2 -1
- package/dist/plugins/numberInteger.mjs +1 -1
- package/dist/plugins/numberMax.d.ts +1 -49
- package/dist/plugins/numberMax.js +2 -1
- package/dist/plugins/numberMax.mjs +1 -1
- package/dist/plugins/numberMin.d.ts +1 -49
- package/dist/plugins/numberMin.js +2 -1
- package/dist/plugins/numberMin.mjs +1 -1
- package/dist/plugins/numberMultipleOf.d.ts +1 -42
- package/dist/plugins/numberMultipleOf.js +2 -1
- package/dist/plugins/numberMultipleOf.mjs +1 -1
- package/dist/plugins/numberNegative.d.ts +1 -41
- package/dist/plugins/numberNegative.js +2 -1
- package/dist/plugins/numberNegative.mjs +1 -1
- package/dist/plugins/numberPositive.d.ts +1 -41
- package/dist/plugins/numberPositive.js +2 -1
- package/dist/plugins/numberPositive.mjs +1 -1
- package/dist/plugins/numberRange.d.ts +1 -0
- package/dist/plugins/numberRange.js +2 -0
- package/dist/plugins/numberRange.mjs +1 -0
- package/dist/plugins/object/index.d.ts +2 -0
- package/dist/plugins/object/index.js +5 -0
- package/dist/plugins/object/index.mjs +1 -0
- package/dist/plugins/object/object.d.ts +9 -0
- package/dist/plugins/object/object.js +29 -0
- package/dist/plugins/object/object.mjs +26 -0
- package/dist/plugins/object-additional-properties/index.d.ts +3 -0
- package/dist/plugins/object-additional-properties/index.js +11 -0
- package/dist/plugins/object-additional-properties/index.mjs +6 -0
- package/dist/plugins/object-additional-properties/object-additional-properties-schema.d.ts +14 -0
- package/dist/plugins/object-additional-properties/object-additional-properties-schema.js +58 -0
- package/dist/plugins/object-additional-properties/object-additional-properties-schema.mjs +55 -0
- package/dist/plugins/object-additional-properties/object-additional-properties.d.ts +9 -0
- package/dist/plugins/object-additional-properties/object-additional-properties.js +42 -0
- package/dist/plugins/object-additional-properties/object-additional-properties.mjs +39 -0
- package/dist/plugins/object-additional-properties/select-additional-keys.d.ts +15 -0
- package/dist/plugins/object-additional-properties/select-additional-keys.js +51 -0
- package/dist/plugins/object-additional-properties/select-additional-keys.mjs +47 -0
- package/dist/plugins/object-dependent-required/dependent-required-violation.d.ts +7 -0
- package/dist/plugins/object-dependent-required/dependent-required-violation.js +45 -0
- package/dist/plugins/object-dependent-required/dependent-required-violation.mjs +40 -0
- package/dist/plugins/object-dependent-required/index.d.ts +3 -0
- package/dist/plugins/object-dependent-required/index.js +5 -0
- package/dist/plugins/object-dependent-required/index.mjs +1 -0
- package/dist/plugins/object-dependent-required/object-dependent-required.d.ts +10 -0
- package/dist/plugins/object-dependent-required/object-dependent-required.js +27 -0
- package/dist/plugins/object-dependent-required/object-dependent-required.mjs +24 -0
- package/dist/plugins/object-dependent-schemas/index.d.ts +2 -0
- package/dist/plugins/object-dependent-schemas/index.js +5 -0
- package/dist/plugins/object-dependent-schemas/index.mjs +1 -0
- package/dist/plugins/object-dependent-schemas/object-dependent-schemas.d.ts +16 -0
- package/dist/plugins/object-dependent-schemas/object-dependent-schemas.js +47 -0
- package/dist/plugins/object-dependent-schemas/object-dependent-schemas.mjs +44 -0
- package/dist/plugins/object-max-properties/index.d.ts +2 -0
- package/dist/plugins/object-max-properties/index.js +5 -0
- package/dist/plugins/object-max-properties/index.mjs +1 -0
- package/dist/plugins/object-max-properties/object-max-properties.d.ts +10 -0
- package/dist/plugins/object-max-properties/object-max-properties.js +32 -0
- package/dist/plugins/object-max-properties/object-max-properties.mjs +29 -0
- package/dist/plugins/object-min-properties/index.d.ts +2 -0
- package/dist/plugins/object-min-properties/index.js +5 -0
- package/dist/plugins/object-min-properties/index.mjs +1 -0
- package/dist/plugins/object-min-properties/object-min-properties.d.ts +10 -0
- package/dist/plugins/object-min-properties/object-min-properties.js +32 -0
- package/dist/plugins/object-min-properties/object-min-properties.mjs +29 -0
- package/dist/plugins/object-pattern-properties/index.d.ts +2 -0
- package/dist/plugins/object-pattern-properties/index.js +5 -0
- package/dist/plugins/object-pattern-properties/index.mjs +1 -0
- package/dist/plugins/object-pattern-properties/object-pattern-properties.d.ts +16 -0
- package/dist/plugins/object-pattern-properties/object-pattern-properties.js +57 -0
- package/dist/plugins/object-pattern-properties/object-pattern-properties.mjs +54 -0
- package/dist/plugins/object-property-names/index.d.ts +2 -0
- package/dist/plugins/object-property-names/index.js +5 -0
- package/dist/plugins/object-property-names/index.mjs +1 -0
- package/dist/plugins/object-property-names/object-property-names.d.ts +16 -0
- package/dist/plugins/object-property-names/object-property-names.js +47 -0
- package/dist/plugins/object-property-names/object-property-names.mjs +44 -0
- package/dist/plugins/object-recursively/index.d.ts +2 -0
- package/dist/plugins/object-recursively/index.js +5 -0
- package/dist/plugins/object-recursively/index.mjs +1 -0
- package/dist/plugins/object-recursively/object-recursively.d.ts +11 -0
- package/dist/plugins/object-recursively/object-recursively.js +26 -0
- package/dist/plugins/object-recursively/object-recursively.mjs +23 -0
- package/dist/plugins/object.d.ts +1 -43
- package/dist/plugins/object.js +2 -1
- package/dist/plugins/object.mjs +1 -1
- package/dist/plugins/objectAdditionalProperties.d.ts +1 -51
- package/dist/plugins/objectAdditionalProperties.js +2 -1
- package/dist/plugins/objectAdditionalProperties.mjs +1 -1
- package/dist/plugins/objectDependentRequired.d.ts +1 -42
- package/dist/plugins/objectDependentRequired.js +2 -1
- package/dist/plugins/objectDependentRequired.mjs +1 -1
- package/dist/plugins/objectDependentSchemas.d.ts +1 -40
- package/dist/plugins/objectDependentSchemas.js +2 -1
- package/dist/plugins/objectDependentSchemas.mjs +1 -1
- package/dist/plugins/objectMaxProperties.d.ts +1 -42
- package/dist/plugins/objectMaxProperties.js +2 -1
- package/dist/plugins/objectMaxProperties.mjs +1 -1
- package/dist/plugins/objectMinProperties.d.ts +1 -42
- package/dist/plugins/objectMinProperties.js +2 -1
- package/dist/plugins/objectMinProperties.mjs +1 -1
- package/dist/plugins/objectPatternProperties.d.ts +1 -46
- package/dist/plugins/objectPatternProperties.js +2 -1
- package/dist/plugins/objectPatternProperties.mjs +1 -1
- package/dist/plugins/objectPropertyNames.d.ts +1 -36
- package/dist/plugins/objectPropertyNames.js +2 -1
- package/dist/plugins/objectPropertyNames.mjs +1 -1
- package/dist/plugins/objectRecursively.d.ts +1 -0
- package/dist/plugins/objectRecursively.js +2 -0
- package/dist/plugins/objectRecursively.mjs +1 -0
- package/dist/plugins/one-of/index.d.ts +1 -0
- package/dist/plugins/one-of/index.js +5 -0
- package/dist/plugins/one-of/index.mjs +1 -0
- package/dist/plugins/one-of/one-of.d.ts +7 -0
- package/dist/plugins/one-of/one-of.js +67 -0
- package/dist/plugins/one-of/one-of.mjs +64 -0
- package/dist/plugins/oneOf.d.ts +1 -44
- package/dist/plugins/oneOf.js +2 -1
- package/dist/plugins/oneOf.mjs +1 -1
- package/dist/plugins/optional/index.d.ts +1 -0
- package/dist/plugins/optional/index.js +5 -0
- package/dist/plugins/optional/index.mjs +1 -0
- package/dist/plugins/optional/optional.d.ts +7 -0
- package/dist/plugins/optional/optional.js +42 -0
- package/dist/plugins/optional/optional.mjs +39 -0
- package/dist/plugins/optional-if/index.d.ts +1 -0
- package/dist/plugins/optional-if/index.js +5 -0
- package/dist/plugins/optional-if/index.mjs +1 -0
- package/dist/plugins/optional-if/optional-if.d.ts +11 -0
- package/dist/plugins/optional-if/optional-if.js +31 -0
- package/dist/plugins/optional-if/optional-if.mjs +28 -0
- package/dist/plugins/optional.d.ts +1 -35
- package/dist/plugins/optional.js +2 -1
- package/dist/plugins/optional.mjs +1 -1
- package/dist/plugins/optionalIf.d.ts +1 -0
- package/dist/plugins/optionalIf.js +2 -0
- package/dist/plugins/optionalIf.mjs +1 -0
- package/dist/plugins/or-fail/index.d.ts +1 -0
- package/dist/plugins/or-fail/index.js +5 -0
- package/dist/plugins/or-fail/index.mjs +1 -0
- package/dist/plugins/or-fail/or-fail.d.ts +7 -0
- package/dist/plugins/or-fail/or-fail.js +44 -0
- package/dist/plugins/or-fail/or-fail.mjs +41 -0
- package/dist/plugins/orFail.d.ts +1 -0
- package/dist/plugins/orFail.js +2 -0
- package/dist/plugins/orFail.mjs +1 -0
- package/dist/plugins/read-only/index.d.ts +1 -0
- package/dist/plugins/read-only/index.js +5 -0
- package/dist/plugins/read-only/index.mjs +1 -0
- package/dist/plugins/read-only/read-only.d.ts +7 -0
- package/dist/plugins/read-only/read-only.js +52 -0
- package/dist/plugins/read-only/read-only.mjs +49 -0
- package/dist/plugins/readOnly.d.ts +1 -0
- package/dist/plugins/readOnly.js +2 -0
- package/dist/plugins/readOnly.mjs +1 -0
- package/dist/plugins/readOnlyWriteOnly.d.ts +1 -48
- package/dist/plugins/readOnlyWriteOnly.js +2 -1
- package/dist/plugins/readOnlyWriteOnly.mjs +1 -1
- package/dist/plugins/required/index.d.ts +1 -0
- package/dist/plugins/required/index.js +5 -0
- package/dist/plugins/required/index.mjs +1 -0
- package/dist/plugins/required/required.d.ts +7 -0
- package/dist/plugins/required/required.js +42 -0
- package/dist/plugins/required/required.mjs +39 -0
- package/dist/plugins/required-if/index.d.ts +1 -0
- package/dist/plugins/required-if/index.js +5 -0
- package/dist/plugins/required-if/index.mjs +1 -0
- package/dist/plugins/required-if/required-if.d.ts +11 -0
- package/dist/plugins/required-if/required-if.js +34 -0
- package/dist/plugins/required-if/required-if.mjs +31 -0
- package/dist/plugins/required.d.ts +1 -45
- package/dist/plugins/required.js +2 -1
- package/dist/plugins/required.mjs +1 -1
- package/dist/plugins/requiredIf.d.ts +1 -66
- package/dist/plugins/requiredIf.js +2 -1
- package/dist/plugins/requiredIf.mjs +1 -1
- package/dist/plugins/skip/index.d.ts +1 -0
- package/dist/plugins/skip/index.js +5 -0
- package/dist/plugins/skip/index.mjs +1 -0
- package/dist/plugins/skip/skip.d.ts +7 -0
- package/dist/plugins/skip/skip.js +22 -0
- package/dist/plugins/skip/skip.mjs +19 -0
- package/dist/plugins/skip.d.ts +1 -57
- package/dist/plugins/skip.js +2 -1
- package/dist/plugins/skip.mjs +1 -1
- package/dist/plugins/stitch/index.d.ts +2 -0
- package/dist/plugins/stitch/index.js +5 -0
- package/dist/plugins/stitch/index.mjs +1 -0
- package/dist/plugins/stitch/stitch.d.ts +30 -0
- package/dist/plugins/stitch/stitch.js +72 -0
- package/dist/plugins/stitch/stitch.mjs +69 -0
- package/dist/plugins/stitch.d.ts +1 -0
- package/dist/plugins/stitch.js +2 -0
- package/dist/plugins/stitch.mjs +1 -0
- package/dist/plugins/string-alphanumeric/index.d.ts +1 -0
- package/dist/plugins/string-alphanumeric/index.js +5 -0
- package/dist/plugins/string-alphanumeric/index.mjs +1 -0
- package/dist/plugins/string-alphanumeric/string-alphanumeric.d.ts +8 -0
- package/dist/plugins/string-alphanumeric/string-alphanumeric.js +39 -0
- package/dist/plugins/string-alphanumeric/string-alphanumeric.mjs +36 -0
- package/dist/plugins/string-base64/index.d.ts +1 -0
- package/dist/plugins/string-base64/index.js +5 -0
- package/dist/plugins/string-base64/index.mjs +1 -0
- package/dist/plugins/string-base64/string-base64.d.ts +12 -0
- package/dist/plugins/string-base64/string-base64.js +40 -0
- package/dist/plugins/string-base64/string-base64.mjs +37 -0
- package/dist/plugins/string-content-encoding/content-encoding-checks.d.ts +4 -0
- package/dist/plugins/string-content-encoding/content-encoding-checks.js +67 -0
- package/dist/plugins/string-content-encoding/content-encoding-checks.mjs +64 -0
- package/dist/plugins/string-content-encoding/index.d.ts +2 -0
- package/dist/plugins/string-content-encoding/index.js +5 -0
- package/dist/plugins/string-content-encoding/index.mjs +1 -0
- package/dist/plugins/string-content-encoding/string-content-encoding.d.ts +10 -0
- package/dist/plugins/string-content-encoding/string-content-encoding.js +40 -0
- package/dist/plugins/string-content-encoding/string-content-encoding.mjs +37 -0
- package/dist/plugins/string-content-media-type/index.d.ts +1 -0
- package/dist/plugins/string-content-media-type/index.js +5 -0
- package/dist/plugins/string-content-media-type/index.mjs +1 -0
- package/dist/plugins/string-content-media-type/media-type-checks.d.ts +3 -0
- package/dist/plugins/string-content-media-type/media-type-checks.js +46 -0
- package/dist/plugins/string-content-media-type/media-type-checks.mjs +43 -0
- package/dist/plugins/string-content-media-type/string-content-media-type.d.ts +8 -0
- package/dist/plugins/string-content-media-type/string-content-media-type.js +41 -0
- package/dist/plugins/string-content-media-type/string-content-media-type.mjs +38 -0
- package/dist/plugins/string-date/calendar-date.d.ts +3 -0
- package/dist/plugins/string-date/calendar-date.js +24 -0
- package/dist/plugins/string-date/calendar-date.mjs +20 -0
- package/dist/plugins/string-date/index.d.ts +1 -0
- package/dist/plugins/string-date/index.js +5 -0
- package/dist/plugins/string-date/index.mjs +1 -0
- package/dist/plugins/string-date/string-date.d.ts +7 -0
- package/dist/plugins/string-date/string-date.js +42 -0
- package/dist/plugins/string-date/string-date.mjs +39 -0
- package/dist/plugins/string-datetime/calendar-date.d.ts +2 -0
- package/dist/plugins/string-datetime/calendar-date.js +24 -0
- package/dist/plugins/string-datetime/calendar-date.mjs +20 -0
- package/dist/plugins/string-datetime/index.d.ts +1 -0
- package/dist/plugins/string-datetime/index.js +5 -0
- package/dist/plugins/string-datetime/index.mjs +1 -0
- package/dist/plugins/string-datetime/string-datetime.d.ts +12 -0
- package/dist/plugins/string-datetime/string-datetime.js +67 -0
- package/dist/plugins/string-datetime/string-datetime.mjs +64 -0
- package/dist/plugins/string-duration/index.d.ts +1 -0
- package/dist/plugins/string-duration/index.js +5 -0
- package/dist/plugins/string-duration/index.mjs +1 -0
- package/dist/plugins/string-duration/string-duration.d.ts +7 -0
- package/dist/plugins/string-duration/string-duration.js +31 -0
- package/dist/plugins/string-duration/string-duration.mjs +28 -0
- package/dist/plugins/string-email/index.d.ts +1 -0
- package/dist/plugins/string-email/index.js +5 -0
- package/dist/plugins/string-email/index.mjs +1 -0
- package/dist/plugins/string-email/string-email.d.ts +14 -0
- package/dist/plugins/string-email/string-email.js +58 -0
- package/dist/plugins/string-email/string-email.mjs +55 -0
- package/dist/plugins/string-ends-with/index.d.ts +1 -0
- package/dist/plugins/string-ends-with/index.js +5 -0
- package/dist/plugins/string-ends-with/index.mjs +1 -0
- package/dist/plugins/string-ends-with/string-ends-with.d.ts +8 -0
- package/dist/plugins/string-ends-with/string-ends-with.js +30 -0
- package/dist/plugins/string-ends-with/string-ends-with.mjs +27 -0
- package/dist/plugins/string-exact-length/index.d.ts +1 -0
- package/dist/plugins/string-exact-length/index.js +5 -0
- package/dist/plugins/string-exact-length/index.mjs +1 -0
- package/dist/plugins/string-exact-length/string-exact-length.d.ts +11 -0
- package/dist/plugins/string-exact-length/string-exact-length.js +34 -0
- package/dist/plugins/string-exact-length/string-exact-length.mjs +31 -0
- package/dist/plugins/string-hostname/index.d.ts +1 -0
- package/dist/plugins/string-hostname/index.js +5 -0
- package/dist/plugins/string-hostname/index.mjs +1 -0
- package/dist/plugins/string-hostname/string-hostname.d.ts +7 -0
- package/dist/plugins/string-hostname/string-hostname.js +30 -0
- package/dist/plugins/string-hostname/string-hostname.mjs +27 -0
- package/dist/plugins/string-idn-email/idn-email.d.ts +1 -0
- package/dist/plugins/string-idn-email/idn-email.js +85 -0
- package/dist/plugins/string-idn-email/idn-email.mjs +82 -0
- package/dist/plugins/string-idn-email/index.d.ts +1 -0
- package/dist/plugins/string-idn-email/index.js +5 -0
- package/dist/plugins/string-idn-email/index.mjs +1 -0
- package/dist/plugins/string-idn-email/string-idn-email.d.ts +7 -0
- package/dist/plugins/string-idn-email/string-idn-email.js +29 -0
- package/dist/plugins/string-idn-email/string-idn-email.mjs +26 -0
- package/dist/plugins/string-idn-hostname/idn-hostname.d.ts +1 -0
- package/dist/plugins/string-idn-hostname/idn-hostname.js +72 -0
- package/dist/plugins/string-idn-hostname/idn-hostname.mjs +69 -0
- package/dist/plugins/string-idn-hostname/index.d.ts +1 -0
- package/dist/plugins/string-idn-hostname/index.js +5 -0
- package/dist/plugins/string-idn-hostname/index.mjs +1 -0
- package/dist/plugins/string-idn-hostname/string-idn-hostname.d.ts +7 -0
- package/dist/plugins/string-idn-hostname/string-idn-hostname.js +31 -0
- package/dist/plugins/string-idn-hostname/string-idn-hostname.mjs +28 -0
- package/dist/plugins/string-ipv4/index.d.ts +1 -0
- package/dist/plugins/string-ipv4/index.js +5 -0
- package/dist/plugins/string-ipv4/index.mjs +1 -0
- package/dist/plugins/string-ipv4/string-ipv4.d.ts +7 -0
- package/dist/plugins/string-ipv4/string-ipv4.js +32 -0
- package/dist/plugins/string-ipv4/string-ipv4.mjs +29 -0
- package/dist/plugins/string-ipv6/index.d.ts +1 -0
- package/dist/plugins/string-ipv6/index.js +5 -0
- package/dist/plugins/string-ipv6/index.mjs +1 -0
- package/dist/plugins/string-ipv6/ipv6-address.d.ts +2 -0
- package/dist/plugins/string-ipv6/ipv6-address.js +70 -0
- package/dist/plugins/string-ipv6/ipv6-address.mjs +67 -0
- package/dist/plugins/string-ipv6/string-ipv6.d.ts +7 -0
- package/dist/plugins/string-ipv6/string-ipv6.js +27 -0
- package/dist/plugins/string-ipv6/string-ipv6.mjs +24 -0
- package/dist/plugins/string-iri/control-character.d.ts +1 -0
- package/dist/plugins/string-iri/control-character.js +21 -0
- package/dist/plugins/string-iri/control-character.mjs +18 -0
- package/dist/plugins/string-iri/index.d.ts +1 -0
- package/dist/plugins/string-iri/index.js +5 -0
- package/dist/plugins/string-iri/index.mjs +1 -0
- package/dist/plugins/string-iri/string-iri.d.ts +7 -0
- package/dist/plugins/string-iri/string-iri.js +49 -0
- package/dist/plugins/string-iri/string-iri.mjs +46 -0
- package/dist/plugins/string-iri-reference/control-character.d.ts +1 -0
- package/dist/plugins/string-iri-reference/control-character.js +21 -0
- package/dist/plugins/string-iri-reference/control-character.mjs +18 -0
- package/dist/plugins/string-iri-reference/index.d.ts +1 -0
- package/dist/plugins/string-iri-reference/index.js +5 -0
- package/dist/plugins/string-iri-reference/index.mjs +1 -0
- package/dist/plugins/string-iri-reference/iri-reference.d.ts +1 -0
- package/dist/plugins/string-iri-reference/iri-reference.js +39 -0
- package/dist/plugins/string-iri-reference/iri-reference.mjs +36 -0
- package/dist/plugins/string-iri-reference/string-iri-reference.d.ts +7 -0
- package/dist/plugins/string-iri-reference/string-iri-reference.js +26 -0
- package/dist/plugins/string-iri-reference/string-iri-reference.mjs +23 -0
- package/dist/plugins/string-json-pointer/index.d.ts +1 -0
- package/dist/plugins/string-json-pointer/index.js +5 -0
- package/dist/plugins/string-json-pointer/index.mjs +1 -0
- package/dist/plugins/string-json-pointer/string-json-pointer.d.ts +7 -0
- package/dist/plugins/string-json-pointer/string-json-pointer.js +35 -0
- package/dist/plugins/string-json-pointer/string-json-pointer.mjs +32 -0
- package/dist/plugins/string-max/index.d.ts +1 -0
- package/dist/plugins/string-max/index.js +5 -0
- package/dist/plugins/string-max/index.mjs +1 -0
- package/dist/plugins/string-max/string-max.d.ts +11 -0
- package/dist/plugins/string-max/string-max.js +34 -0
- package/dist/plugins/string-max/string-max.mjs +31 -0
- package/dist/plugins/string-min/index.d.ts +1 -0
- package/dist/plugins/string-min/index.js +5 -0
- package/dist/plugins/string-min/index.mjs +1 -0
- package/dist/plugins/string-min/string-min.d.ts +11 -0
- package/dist/plugins/string-min/string-min.js +37 -0
- package/dist/plugins/string-min/string-min.mjs +34 -0
- package/dist/plugins/string-pattern/index.d.ts +1 -0
- package/dist/plugins/string-pattern/index.js +5 -0
- package/dist/plugins/string-pattern/index.mjs +1 -0
- package/dist/plugins/string-pattern/string-pattern.d.ts +8 -0
- package/dist/plugins/string-pattern/string-pattern.js +49 -0
- package/dist/plugins/string-pattern/string-pattern.mjs +46 -0
- package/dist/plugins/string-regex/index.d.ts +1 -0
- package/dist/plugins/string-regex/index.js +5 -0
- package/dist/plugins/string-regex/index.mjs +1 -0
- package/dist/plugins/string-regex/is-ecma262-regex.d.ts +2 -0
- package/dist/plugins/string-regex/is-ecma262-regex.js +25 -0
- package/dist/plugins/string-regex/is-ecma262-regex.mjs +22 -0
- package/dist/plugins/string-regex/string-regex.d.ts +7 -0
- package/dist/plugins/string-regex/string-regex.js +28 -0
- package/dist/plugins/string-regex/string-regex.mjs +25 -0
- package/dist/plugins/string-relative-json-pointer/index.d.ts +1 -0
- package/dist/plugins/string-relative-json-pointer/index.js +5 -0
- package/dist/plugins/string-relative-json-pointer/index.mjs +1 -0
- package/dist/plugins/string-relative-json-pointer/string-relative-json-pointer.d.ts +7 -0
- package/dist/plugins/string-relative-json-pointer/string-relative-json-pointer.js +42 -0
- package/dist/plugins/string-relative-json-pointer/string-relative-json-pointer.mjs +39 -0
- package/dist/plugins/string-starts-with/index.d.ts +1 -0
- package/dist/plugins/string-starts-with/index.js +5 -0
- package/dist/plugins/string-starts-with/index.mjs +1 -0
- package/dist/plugins/string-starts-with/string-starts-with.d.ts +8 -0
- package/dist/plugins/string-starts-with/string-starts-with.js +30 -0
- package/dist/plugins/string-starts-with/string-starts-with.mjs +27 -0
- package/dist/plugins/string-time/index.d.ts +1 -0
- package/dist/plugins/string-time/index.js +5 -0
- package/dist/plugins/string-time/index.mjs +1 -0
- package/dist/plugins/string-time/string-time.d.ts +12 -0
- package/dist/plugins/string-time/string-time.js +37 -0
- package/dist/plugins/string-time/string-time.mjs +34 -0
- package/dist/plugins/string-uri-reference/index.d.ts +1 -0
- package/dist/plugins/string-uri-reference/index.js +5 -0
- package/dist/plugins/string-uri-reference/index.mjs +1 -0
- package/dist/plugins/string-uri-reference/string-uri-reference.d.ts +7 -0
- package/dist/plugins/string-uri-reference/string-uri-reference.js +28 -0
- package/dist/plugins/string-uri-reference/string-uri-reference.mjs +25 -0
- package/dist/plugins/string-uri-reference/uri-reference.d.ts +1 -0
- package/dist/plugins/string-uri-reference/uri-reference.js +71 -0
- package/dist/plugins/string-uri-reference/uri-reference.mjs +68 -0
- package/dist/plugins/string-uri-template/index.d.ts +1 -0
- package/dist/plugins/string-uri-template/index.js +5 -0
- package/dist/plugins/string-uri-template/index.mjs +1 -0
- package/dist/plugins/string-uri-template/string-uri-template.d.ts +7 -0
- package/dist/plugins/string-uri-template/string-uri-template.js +26 -0
- package/dist/plugins/string-uri-template/string-uri-template.mjs +23 -0
- package/dist/plugins/string-uri-template/uri-template.d.ts +1 -0
- package/dist/plugins/string-uri-template/uri-template.js +59 -0
- package/dist/plugins/string-uri-template/uri-template.mjs +56 -0
- package/dist/plugins/string-url/index.d.ts +1 -0
- package/dist/plugins/string-url/index.js +5 -0
- package/dist/plugins/string-url/index.mjs +1 -0
- package/dist/plugins/string-url/string-url.d.ts +14 -0
- package/dist/plugins/string-url/string-url.js +55 -0
- package/dist/plugins/string-url/string-url.mjs +52 -0
- package/dist/plugins/stringAlphanumeric.d.ts +1 -0
- package/dist/plugins/stringAlphanumeric.js +2 -0
- package/dist/plugins/stringAlphanumeric.mjs +1 -0
- package/dist/plugins/stringBase64.d.ts +1 -119
- package/dist/plugins/stringBase64.js +2 -1
- package/dist/plugins/stringBase64.mjs +1 -1
- package/dist/plugins/stringContentEncoding.d.ts +1 -43
- package/dist/plugins/stringContentEncoding.js +2 -1
- package/dist/plugins/stringContentEncoding.mjs +1 -1
- package/dist/plugins/stringContentMediaType.d.ts +1 -47
- package/dist/plugins/stringContentMediaType.js +2 -1
- package/dist/plugins/stringContentMediaType.mjs +1 -1
- package/dist/plugins/stringDate.d.ts +1 -48
- package/dist/plugins/stringDate.js +2 -1
- package/dist/plugins/stringDate.mjs +1 -1
- package/dist/plugins/stringDatetime.d.ts +1 -108
- package/dist/plugins/stringDatetime.js +2 -1
- package/dist/plugins/stringDatetime.mjs +1 -1
- package/dist/plugins/stringDuration.d.ts +1 -41
- package/dist/plugins/stringDuration.js +2 -1
- package/dist/plugins/stringDuration.mjs +1 -1
- package/dist/plugins/stringEmail.d.ts +1 -81
- package/dist/plugins/stringEmail.js +2 -1
- package/dist/plugins/stringEmail.mjs +1 -1
- package/dist/plugins/stringEndsWith.d.ts +1 -0
- package/dist/plugins/stringEndsWith.js +2 -0
- package/dist/plugins/stringEndsWith.mjs +1 -0
- package/dist/plugins/stringExactLength.d.ts +1 -0
- package/dist/plugins/stringExactLength.js +2 -0
- package/dist/plugins/stringExactLength.mjs +1 -0
- package/dist/plugins/stringHostname.d.ts +1 -104
- package/dist/plugins/stringHostname.js +2 -1
- package/dist/plugins/stringHostname.mjs +1 -1
- package/dist/plugins/stringIdnEmail.d.ts +1 -0
- package/dist/plugins/stringIdnEmail.js +2 -0
- package/dist/plugins/stringIdnEmail.mjs +1 -0
- package/dist/plugins/stringIdnHostname.d.ts +1 -0
- package/dist/plugins/stringIdnHostname.js +2 -0
- package/dist/plugins/stringIdnHostname.mjs +1 -0
- package/dist/plugins/stringIpv4.d.ts +1 -85
- package/dist/plugins/stringIpv4.js +2 -1
- package/dist/plugins/stringIpv4.mjs +1 -1
- package/dist/plugins/stringIpv6.d.ts +1 -104
- package/dist/plugins/stringIpv6.js +2 -1
- package/dist/plugins/stringIpv6.mjs +1 -1
- package/dist/plugins/stringIri.d.ts +1 -117
- package/dist/plugins/stringIri.js +2 -1
- package/dist/plugins/stringIri.mjs +1 -1
- package/dist/plugins/stringIriReference.d.ts +1 -43
- package/dist/plugins/stringIriReference.js +2 -1
- package/dist/plugins/stringIriReference.mjs +1 -1
- package/dist/plugins/stringJsonPointer.d.ts +1 -107
- package/dist/plugins/stringJsonPointer.js +2 -1
- package/dist/plugins/stringJsonPointer.mjs +1 -1
- package/dist/plugins/stringMax.d.ts +1 -43
- package/dist/plugins/stringMax.js +2 -1
- package/dist/plugins/stringMax.mjs +1 -1
- package/dist/plugins/stringMin.d.ts +1 -43
- package/dist/plugins/stringMin.js +2 -1
- package/dist/plugins/stringMin.mjs +1 -1
- package/dist/plugins/stringPattern.d.ts +1 -40
- package/dist/plugins/stringPattern.js +2 -1
- package/dist/plugins/stringPattern.mjs +1 -1
- package/dist/plugins/stringRegex.d.ts +1 -0
- package/dist/plugins/stringRegex.js +2 -0
- package/dist/plugins/stringRegex.mjs +1 -0
- package/dist/plugins/stringRelativeJsonPointer.d.ts +1 -42
- package/dist/plugins/stringRelativeJsonPointer.js +2 -1
- package/dist/plugins/stringRelativeJsonPointer.mjs +1 -1
- package/dist/plugins/stringStartsWith.d.ts +1 -0
- package/dist/plugins/stringStartsWith.js +2 -0
- package/dist/plugins/stringStartsWith.mjs +1 -0
- package/dist/plugins/stringTime.d.ts +1 -39
- package/dist/plugins/stringTime.js +2 -1
- package/dist/plugins/stringTime.mjs +1 -1
- package/dist/plugins/stringUriReference.d.ts +1 -0
- package/dist/plugins/stringUriReference.js +2 -0
- package/dist/plugins/stringUriReference.mjs +1 -0
- package/dist/plugins/stringUriTemplate.d.ts +1 -43
- package/dist/plugins/stringUriTemplate.js +2 -1
- package/dist/plugins/stringUriTemplate.mjs +1 -1
- package/dist/plugins/stringUrl.d.ts +1 -97
- package/dist/plugins/stringUrl.js +2 -1
- package/dist/plugins/stringUrl.mjs +1 -1
- package/dist/plugins/transform/index.d.ts +1 -0
- package/dist/plugins/transform/index.js +5 -0
- package/dist/plugins/transform/index.mjs +1 -0
- package/dist/plugins/transform/transform.d.ts +7 -0
- package/dist/plugins/transform/transform.js +35 -0
- package/dist/plugins/transform/transform.mjs +32 -0
- package/dist/plugins/transform.d.ts +1 -35
- package/dist/plugins/transform.js +2 -1
- package/dist/plugins/transform.mjs +1 -1
- package/dist/plugins/tuple-builder/index.d.ts +2 -0
- package/dist/plugins/tuple-builder/index.js +5 -0
- package/dist/plugins/tuple-builder/index.mjs +1 -0
- package/dist/plugins/tuple-builder/tuple-builder.d.ts +21 -0
- package/dist/plugins/tuple-builder/tuple-builder.js +128 -0
- package/dist/plugins/tuple-builder/tuple-builder.mjs +125 -0
- package/dist/plugins/tupleBuilder.d.ts +1 -66
- package/dist/plugins/tupleBuilder.js +2 -1
- package/dist/plugins/tupleBuilder.mjs +1 -1
- package/dist/plugins/union-guard/index.d.ts +1 -0
- package/dist/plugins/union-guard/index.js +5 -0
- package/dist/plugins/union-guard/index.mjs +1 -0
- package/dist/plugins/union-guard/union-guard.d.ts +14 -0
- package/dist/plugins/union-guard/union-guard.js +56 -0
- package/dist/plugins/union-guard/union-guard.mjs +53 -0
- package/dist/plugins/unionGuard.d.ts +1 -0
- package/dist/plugins/unionGuard.js +2 -0
- package/dist/plugins/unionGuard.mjs +1 -0
- package/dist/plugins/uuid/index.d.ts +1 -0
- package/dist/plugins/uuid/index.js +5 -0
- package/dist/plugins/uuid/index.mjs +1 -0
- package/dist/plugins/uuid/uuid.d.ts +10 -0
- package/dist/plugins/uuid/uuid.js +56 -0
- package/dist/plugins/uuid/uuid.mjs +53 -0
- package/dist/plugins/uuid.d.ts +1 -95
- package/dist/plugins/uuid.js +2 -1
- package/dist/plugins/uuid.mjs +1 -1
- package/dist/plugins/validate-if/index.d.ts +1 -0
- package/dist/plugins/validate-if/index.js +5 -0
- package/dist/plugins/validate-if/index.mjs +1 -0
- package/dist/plugins/validate-if/validate-if.d.ts +7 -0
- package/dist/plugins/validate-if/validate-if.js +22 -0
- package/dist/plugins/validate-if/validate-if.mjs +19 -0
- package/dist/plugins/validateIf.d.ts +1 -57
- package/dist/plugins/validateIf.js +2 -1
- package/dist/plugins/validateIf.mjs +1 -1
- package/dist/plugins/write-only/index.d.ts +1 -0
- package/dist/plugins/write-only/index.js +5 -0
- package/dist/plugins/write-only/index.mjs +1 -0
- package/dist/plugins/write-only/write-only.d.ts +7 -0
- package/dist/plugins/write-only/write-only.js +48 -0
- package/dist/plugins/write-only/write-only.mjs +45 -0
- package/dist/plugins/writeOnly.d.ts +1 -0
- package/dist/plugins/writeOnly.js +2 -0
- package/dist/plugins/writeOnly.mjs +1 -0
- package/dist/result/index.d.ts +18 -0
- package/dist/result/index.js +44 -0
- package/dist/result/index.mjs +36 -0
- package/dist/result.d.ts +1 -0
- package/dist/result.js +2 -0
- package/dist/result.mjs +1 -0
- package/dist/runtime/create-field-validator.d.ts +12 -0
- package/dist/runtime/create-field-validator.js +74 -0
- package/dist/runtime/create-field-validator.mjs +71 -0
- package/dist/runtime/create-issue.d.ts +24 -0
- package/dist/runtime/create-issue.js +34 -0
- package/dist/runtime/create-issue.mjs +30 -0
- package/dist/runtime/create-validator.d.ts +19 -0
- package/dist/runtime/create-validator.js +70 -0
- package/dist/runtime/create-validator.mjs +65 -0
- package/dist/runtime/decide-presence.d.ts +5 -0
- package/dist/runtime/decide-presence.js +48 -0
- package/dist/runtime/decide-presence.mjs +45 -0
- package/dist/runtime/index-stack.d.ts +28 -0
- package/dist/runtime/index-stack.js +68 -0
- package/dist/runtime/index-stack.mjs +63 -0
- package/dist/runtime/index.d.ts +19 -0
- package/dist/runtime/index.js +48 -0
- package/dist/runtime/index.mjs +16 -0
- package/dist/runtime/issue-sink.d.ts +39 -0
- package/dist/runtime/issue-sink.js +61 -0
- package/dist/runtime/issue-sink.mjs +56 -0
- package/dist/runtime/output-writer.d.ts +38 -0
- package/dist/runtime/output-writer.js +59 -0
- package/dist/runtime/output-writer.mjs +52 -0
- package/dist/runtime/run-array-node.d.ts +9 -0
- package/dist/runtime/run-array-node.js +98 -0
- package/dist/runtime/run-array-node.mjs +95 -0
- package/dist/runtime/run-branch.d.ts +14 -0
- package/dist/runtime/run-branch.js +67 -0
- package/dist/runtime/run-branch.mjs +63 -0
- package/dist/runtime/run-field.d.ts +27 -0
- package/dist/runtime/run-field.js +88 -0
- package/dist/runtime/run-field.mjs +84 -0
- package/dist/runtime/run-plan.d.ts +28 -0
- package/dist/runtime/run-plan.js +50 -0
- package/dist/runtime/run-plan.mjs +46 -0
- package/dist/runtime/run-recursion.d.ts +17 -0
- package/dist/runtime/run-recursion.js +119 -0
- package/dist/runtime/run-recursion.mjs +115 -0
- package/dist/standard-schema/index.d.ts +6 -0
- package/dist/standard-schema/index.js +7 -0
- package/dist/standard-schema/index.mjs +2 -0
- package/dist/standard-schema/split-issue-path.d.ts +9 -0
- package/dist/standard-schema/split-issue-path.js +66 -0
- package/dist/standard-schema/split-issue-path.mjs +63 -0
- package/dist/standard-schema/standard-schema.types.d.ts +46 -0
- package/dist/standard-schema/standard-schema.types.js +13 -0
- package/dist/standard-schema/standard-schema.types.mjs +12 -0
- package/dist/standard-schema/to-standard-schema.d.ts +41 -0
- package/dist/standard-schema/to-standard-schema.js +60 -0
- package/dist/standard-schema/to-standard-schema.mjs +57 -0
- package/dist/standard-schema.d.ts +1 -0
- package/dist/standard-schema.js +2 -0
- package/dist/standard-schema.mjs +1 -0
- package/dist/subpath-aliases/read-only-write-only.d.ts +2 -0
- package/dist/subpath-aliases/read-only-write-only.js +16 -0
- package/dist/subpath-aliases/read-only-write-only.mjs +11 -0
- package/dist/types/global-config.d.ts +31 -0
- package/dist/types/global-config.js +36 -0
- package/dist/types/global-config.mjs +32 -0
- package/dist/types/index.d.ts +75 -69
- package/dist/types/index.js +46 -0
- package/dist/types/index.mjs +36 -0
- package/dist/types/validation-result.types.d.ts +22 -0
- package/dist/types/validation-result.types.js +2 -0
- package/dist/types/validation-result.types.mjs +1 -0
- package/package.json +523 -353
- package/dist/constants.d.ts +0 -27
- package/dist/core/async.experimental/async-context.d.ts +0 -60
- package/dist/core/builder/array-batch-optimizer.d.ts +0 -66
- package/dist/core/builder/context/field-context.d.ts +0 -31
- package/dist/core/builder/context/field-type-detector.d.ts +0 -19
- package/dist/core/builder/core/builder.d.ts +0 -10
- package/dist/core/builder/core/field-builder.d.ts +0 -13
- package/dist/core/builder/core/index.d.ts +0 -17
- package/dist/core/builder/index.d.ts +0 -24
- package/dist/core/builder/nested-array-processor.d.ts +0 -52
- package/dist/core/builder/plugins/composable-conditional-plugin.d.ts +0 -32
- package/dist/core/builder/plugins/composable-directly-plugin.d.ts +0 -32
- package/dist/core/builder/plugins/composable-plugin.d.ts +0 -242
- package/dist/core/builder/plugins/plugin-creator.d.ts +0 -38
- package/dist/core/builder/plugins/plugin-interfaces.d.ts +0 -343
- package/dist/core/builder/plugins/plugin-types.d.ts +0 -441
- package/dist/core/builder/raw-validator.d.ts +0 -22
- package/dist/core/builder/types/field-options.d.ts +0 -46
- package/dist/core/builder/types/types.d.ts +0 -319
- package/dist/core/builder/ultra-fast-validator.d.ts +0 -30
- package/dist/core/builder/validator-factory.d.ts +0 -29
- package/dist/core/global-config.d.ts +0 -27
- package/dist/core/index.d.ts +0 -36
- package/dist/core/optimization/array-batch-validator.d.ts +0 -68
- package/dist/core/optimization/core/field-utils.d.ts +0 -103
- package/dist/core/optimization/core/strategy-factory.d.ts +0 -84
- package/dist/core/optimization/core/validation-engine.d.ts +0 -107
- package/dist/core/optimization/execution-strategy-selector.d.ts +0 -23
- package/dist/core/optimization/unified-validator.d.ts +0 -45
- package/dist/core/plugin/__tests__/test-utils.d.ts +0 -1
- package/dist/core/plugin/arrayContains.d.ts +0 -37
- package/dist/core/plugin/arrayIncludes.d.ts +0 -42
- package/dist/core/plugin/arrayMaxLength.d.ts +0 -43
- package/dist/core/plugin/arrayMinLength.d.ts +0 -43
- package/dist/core/plugin/arrayUnique.d.ts +0 -41
- package/dist/core/plugin/booleanFalsy.d.ts +0 -41
- package/dist/core/plugin/booleanTruthy.d.ts +0 -38
- package/dist/core/plugin/compareField.d.ts +0 -58
- package/dist/core/plugin/conditionalSchema.d.ts +0 -24
- package/dist/core/plugin/custom.d.ts +0 -60
- package/dist/core/plugin/fromContext.d.ts +0 -150
- package/dist/core/plugin/index.d.ts +0 -71
- package/dist/core/plugin/jsonSchema/dsl-converter.d.ts +0 -22
- package/dist/core/plugin/jsonSchema/error-generation.d.ts +0 -14
- package/dist/core/plugin/jsonSchema/format-validators.d.ts +0 -20
- package/dist/core/plugin/jsonSchema/index.d.ts +0 -11
- package/dist/core/plugin/jsonSchema/plugin.d.ts +0 -35
- package/dist/core/plugin/jsonSchema/ref-resolver.d.ts +0 -14
- package/dist/core/plugin/jsonSchema/types.d.ts +0 -69
- package/dist/core/plugin/jsonSchema/validation-core.d.ts +0 -29
- package/dist/core/plugin/jsonSchemaFullFeature.d.ts +0 -31
- package/dist/core/plugin/literal.d.ts +0 -40
- package/dist/core/plugin/message-factories.d.ts +0 -9
- package/dist/core/plugin/nullable.d.ts +0 -34
- package/dist/core/plugin/numberFinite.d.ts +0 -41
- package/dist/core/plugin/numberInteger.d.ts +0 -41
- package/dist/core/plugin/numberMax.d.ts +0 -49
- package/dist/core/plugin/numberMin.d.ts +0 -49
- package/dist/core/plugin/numberMultipleOf.d.ts +0 -42
- package/dist/core/plugin/numberNegative.d.ts +0 -41
- package/dist/core/plugin/numberPositive.d.ts +0 -41
- package/dist/core/plugin/numberRange.d.ts +0 -48
- package/dist/core/plugin/object.d.ts +0 -43
- package/dist/core/plugin/objectAdditionalProperties.d.ts +0 -51
- package/dist/core/plugin/objectDependentRequired.d.ts +0 -42
- package/dist/core/plugin/objectDependentSchemas.d.ts +0 -40
- package/dist/core/plugin/objectMaxProperties.d.ts +0 -42
- package/dist/core/plugin/objectMinProperties.d.ts +0 -42
- package/dist/core/plugin/objectPatternProperties.d.ts +0 -46
- package/dist/core/plugin/objectPropertyNames.d.ts +0 -36
- package/dist/core/plugin/objectRecursively.d.ts +0 -81
- package/dist/core/plugin/oneOf.d.ts +0 -44
- package/dist/core/plugin/optional.d.ts +0 -35
- package/dist/core/plugin/optionalIf.d.ts +0 -42
- package/dist/core/plugin/orFail.d.ts +0 -132
- package/dist/core/plugin/readOnlyWriteOnly.d.ts +0 -48
- package/dist/core/plugin/required.d.ts +0 -45
- package/dist/core/plugin/requiredIf.d.ts +0 -66
- package/dist/core/plugin/shared-constants.d.ts +0 -45
- package/dist/core/plugin/shared.d.ts +0 -3
- package/dist/core/plugin/skip.d.ts +0 -57
- package/dist/core/plugin/stitch-typed.d.ts +0 -15
- package/dist/core/plugin/stitch.d.ts +0 -1
- package/dist/core/plugin/stitchSimple.d.ts +0 -4
- package/dist/core/plugin/stringAlphanumeric.d.ts +0 -42
- package/dist/core/plugin/stringBase64.d.ts +0 -119
- package/dist/core/plugin/stringContentEncoding.d.ts +0 -43
- package/dist/core/plugin/stringContentMediaType.d.ts +0 -47
- package/dist/core/plugin/stringDate.d.ts +0 -48
- package/dist/core/plugin/stringDatetime.d.ts +0 -108
- package/dist/core/plugin/stringDuration.d.ts +0 -41
- package/dist/core/plugin/stringEmail.d.ts +0 -81
- package/dist/core/plugin/stringEndsWith.d.ts +0 -42
- package/dist/core/plugin/stringExactLength.d.ts +0 -46
- package/dist/core/plugin/stringHostname.d.ts +0 -104
- package/dist/core/plugin/stringIpv4.d.ts +0 -85
- package/dist/core/plugin/stringIpv6.d.ts +0 -104
- package/dist/core/plugin/stringIri.d.ts +0 -117
- package/dist/core/plugin/stringIriReference.d.ts +0 -43
- package/dist/core/plugin/stringJsonPointer.d.ts +0 -107
- package/dist/core/plugin/stringMax.d.ts +0 -43
- package/dist/core/plugin/stringMin.d.ts +0 -43
- package/dist/core/plugin/stringPattern.d.ts +0 -40
- package/dist/core/plugin/stringRelativeJsonPointer.d.ts +0 -42
- package/dist/core/plugin/stringStartsWith.d.ts +0 -42
- package/dist/core/plugin/stringTime.d.ts +0 -39
- package/dist/core/plugin/stringUriTemplate.d.ts +0 -43
- package/dist/core/plugin/stringUrl.d.ts +0 -97
- package/dist/core/plugin/testUtils.d.ts +0 -15
- package/dist/core/plugin/transform-type-restrictions.d.ts +0 -61
- package/dist/core/plugin/transform.d.ts +0 -35
- package/dist/core/plugin/tupleBuilder.d.ts +0 -66
- package/dist/core/plugin/types.d.ts +0 -143
- package/dist/core/plugin/unionGuard.d.ts +0 -50
- package/dist/core/plugin/utils/field-accessor-optimized.d.ts +0 -50
- package/dist/core/plugin/utils/field-accessor.d.ts +0 -107
- package/dist/core/plugin/uuid.d.ts +0 -95
- package/dist/core/plugin/validateIf.d.ts +0 -57
- package/dist/core/registry/plugin-registry.d.ts +0 -116
- package/dist/core/registry.d.ts +0 -6
- package/dist/core/transform/index.d.ts +0 -1
- package/dist/core/transform/string/defaultValue.d.ts +0 -6
- package/dist/core/transform/string/index.d.ts +0 -3
- package/dist/core/transform/string/replace.d.ts +0 -14
- package/dist/core/transform/string/sanitize.d.ts +0 -6
- package/dist/core/utils/type-guards.d.ts +0 -68
- package/dist/index.js.map +0 -7
- package/dist/index.mjs.map +0 -7
- package/dist/types/array-type-analysis.d.ts +0 -115
- package/dist/types/indexed-result.d.ts +0 -44
- package/dist/types/result.d.ts +0 -159
- package/dist/types/stitch-types.d.ts +0 -118
- package/dist/types/util.d.ts +0 -19
- package/dist/types/valitator.d.ts +0 -10
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UNBOUND_BUNDLED_PLUGIN_NAMES = void 0;
|
|
4
|
+
exports.listBundledPluginNames = listBundledPluginNames;
|
|
5
|
+
exports.findUnbundledBoundPlugins = findUnbundledBoundPlugins;
|
|
6
|
+
exports.findUnexplainedBundledPlugins = findUnexplainedBundledPlugins;
|
|
7
|
+
exports.findStaleUnboundDeclarations = findStaleUnboundDeclarations;
|
|
8
|
+
// ===========================================================================
|
|
9
|
+
// L8 (tier `extension`)
|
|
10
|
+
// src/json-schema/extensions/json-schema-full-feature/bundle-coverage.ts
|
|
11
|
+
//
|
|
12
|
+
// The run-time half of "the use() list is derived from the keyword map".
|
|
13
|
+
//
|
|
14
|
+
// WHY NOT A CODE GENERATOR (measured, and reported as a deviation): the design
|
|
15
|
+
// says the list is a GENERATED file. Generating it needs a new script and a new
|
|
16
|
+
// npm script, both outside step 26's produces list, and a generator can only
|
|
17
|
+
// ever restate what these two pure functions CHECK. So the property is enforced
|
|
18
|
+
// instead of emitted: the bag type makes the list exact at compile time, and
|
|
19
|
+
// these two functions make it agree with the keyword and format tables at run
|
|
20
|
+
// time. Both are asserted in the unit test, which runs inside `npm run verify`.
|
|
21
|
+
//
|
|
22
|
+
// WHY NOT AT MODULE LOAD: throwing from an import would make the subpath
|
|
23
|
+
// unloadable and give the bundler a side effect to preserve. The check belongs
|
|
24
|
+
// to the build, and the build runs the tests.
|
|
25
|
+
// ===========================================================================
|
|
26
|
+
const index_1 = require("../../index");
|
|
27
|
+
/**
|
|
28
|
+
* Plugins the bundle carries that NO keyword or format binding names.
|
|
29
|
+
*
|
|
30
|
+
* Every one is driven by the converter itself (a structural expansion calls
|
|
31
|
+
* `plugin.build` directly) or is reachable only from a hand-written chain. The
|
|
32
|
+
* list is the MEASURED complement of `listBoundPluginNames()`: 31 names are
|
|
33
|
+
* bound, 45 are bundled, and these are the 14 that are left. It is written out
|
|
34
|
+
* rather than derived so that a change on EITHER side — a new binding, or a
|
|
35
|
+
* plugin leaving the bag — fails the test instead of quietly re-balancing.
|
|
36
|
+
*
|
|
37
|
+
* `required` is deliberately NOT here: keyword-map-object.ts binds it, even
|
|
38
|
+
* though declare-presence.ts builds the child-property presence rule from
|
|
39
|
+
* create-rule instead (see its header for why `.required()` is the wrong shape
|
|
40
|
+
* for Draft-07 §6.5.3).
|
|
41
|
+
*/
|
|
42
|
+
exports.UNBOUND_BUNDLED_PLUGIN_NAMES = Object.freeze([
|
|
43
|
+
// Driven by a structural expansion through `plugin.build`.
|
|
44
|
+
"arrayContains",
|
|
45
|
+
"arrayEach",
|
|
46
|
+
"conditionalSchema",
|
|
47
|
+
"numberInteger",
|
|
48
|
+
"objectAdditionalPropertiesSchema",
|
|
49
|
+
"objectDependentRequired",
|
|
50
|
+
"objectDependentSchemas",
|
|
51
|
+
"objectPatternProperties",
|
|
52
|
+
"objectPropertyNames",
|
|
53
|
+
"oneOf",
|
|
54
|
+
// Reachable only from a hand-written chain; the converter never calls them.
|
|
55
|
+
"compareField",
|
|
56
|
+
"nullable",
|
|
57
|
+
"optional",
|
|
58
|
+
"tupleBuilder",
|
|
59
|
+
]);
|
|
60
|
+
/** The plugin NAMES the bag carries. Not its keys: bindings name `plugin.name`. */
|
|
61
|
+
function listBundledPluginNames(bag) {
|
|
62
|
+
return Object.values(bag)
|
|
63
|
+
.map((plugin) => plugin.name)
|
|
64
|
+
.sort();
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* A keyword or format is bound to a plugin the bundle does not ship. Non-empty
|
|
68
|
+
* means `fromJsonSchema` would reach for a missing member at build time.
|
|
69
|
+
*/
|
|
70
|
+
function findUnbundledBoundPlugins(bag) {
|
|
71
|
+
const bundled = new Set(listBundledPluginNames(bag));
|
|
72
|
+
return (0, index_1.listBoundPluginNames)().filter((name) => !bundled.has(name));
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* The bundle ships a plugin that no binding names AND that is not declared
|
|
76
|
+
* above as converter-driven. Non-empty means the bundle grew weight nothing
|
|
77
|
+
* asked for, or that a declared exemption is now bound and should be deleted.
|
|
78
|
+
*/
|
|
79
|
+
function findUnexplainedBundledPlugins(bag) {
|
|
80
|
+
const explained = new Set([
|
|
81
|
+
...(0, index_1.listBoundPluginNames)(),
|
|
82
|
+
...exports.UNBOUND_BUNDLED_PLUGIN_NAMES,
|
|
83
|
+
]);
|
|
84
|
+
return listBundledPluginNames(bag).filter((name) => !explained.has(name));
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* A declared exemption that has since become bound. Stale; delete it.
|
|
88
|
+
*
|
|
89
|
+
* `declared` is a parameter so the check can be run against a list that is
|
|
90
|
+
* deliberately wrong — otherwise "it returns nothing" and "it can never return
|
|
91
|
+
* anything" look the same from a test.
|
|
92
|
+
*/
|
|
93
|
+
function findStaleUnboundDeclarations(declared = exports.UNBOUND_BUNDLED_PLUGIN_NAMES) {
|
|
94
|
+
const bound = new Set((0, index_1.listBoundPluginNames)());
|
|
95
|
+
return declared.filter((name) => bound.has(name));
|
|
96
|
+
}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
// ===========================================================================
|
|
2
|
+
// L8 (tier `extension`)
|
|
3
|
+
// src/json-schema/extensions/json-schema-full-feature/bundle-coverage.ts
|
|
4
|
+
//
|
|
5
|
+
// The run-time half of "the use() list is derived from the keyword map".
|
|
6
|
+
//
|
|
7
|
+
// WHY NOT A CODE GENERATOR (measured, and reported as a deviation): the design
|
|
8
|
+
// says the list is a GENERATED file. Generating it needs a new script and a new
|
|
9
|
+
// npm script, both outside step 26's produces list, and a generator can only
|
|
10
|
+
// ever restate what these two pure functions CHECK. So the property is enforced
|
|
11
|
+
// instead of emitted: the bag type makes the list exact at compile time, and
|
|
12
|
+
// these two functions make it agree with the keyword and format tables at run
|
|
13
|
+
// time. Both are asserted in the unit test, which runs inside `npm run verify`.
|
|
14
|
+
//
|
|
15
|
+
// WHY NOT AT MODULE LOAD: throwing from an import would make the subpath
|
|
16
|
+
// unloadable and give the bundler a side effect to preserve. The check belongs
|
|
17
|
+
// to the build, and the build runs the tests.
|
|
18
|
+
// ===========================================================================
|
|
19
|
+
import { listBoundPluginNames } from "../../index.mjs";
|
|
20
|
+
/**
|
|
21
|
+
* Plugins the bundle carries that NO keyword or format binding names.
|
|
22
|
+
*
|
|
23
|
+
* Every one is driven by the converter itself (a structural expansion calls
|
|
24
|
+
* `plugin.build` directly) or is reachable only from a hand-written chain. The
|
|
25
|
+
* list is the MEASURED complement of `listBoundPluginNames()`: 31 names are
|
|
26
|
+
* bound, 45 are bundled, and these are the 14 that are left. It is written out
|
|
27
|
+
* rather than derived so that a change on EITHER side — a new binding, or a
|
|
28
|
+
* plugin leaving the bag — fails the test instead of quietly re-balancing.
|
|
29
|
+
*
|
|
30
|
+
* `required` is deliberately NOT here: keyword-map-object.ts binds it, even
|
|
31
|
+
* though declare-presence.ts builds the child-property presence rule from
|
|
32
|
+
* create-rule instead (see its header for why `.required()` is the wrong shape
|
|
33
|
+
* for Draft-07 §6.5.3).
|
|
34
|
+
*/
|
|
35
|
+
export const UNBOUND_BUNDLED_PLUGIN_NAMES = Object.freeze([
|
|
36
|
+
// Driven by a structural expansion through `plugin.build`.
|
|
37
|
+
"arrayContains",
|
|
38
|
+
"arrayEach",
|
|
39
|
+
"conditionalSchema",
|
|
40
|
+
"numberInteger",
|
|
41
|
+
"objectAdditionalPropertiesSchema",
|
|
42
|
+
"objectDependentRequired",
|
|
43
|
+
"objectDependentSchemas",
|
|
44
|
+
"objectPatternProperties",
|
|
45
|
+
"objectPropertyNames",
|
|
46
|
+
"oneOf",
|
|
47
|
+
// Reachable only from a hand-written chain; the converter never calls them.
|
|
48
|
+
"compareField",
|
|
49
|
+
"nullable",
|
|
50
|
+
"optional",
|
|
51
|
+
"tupleBuilder",
|
|
52
|
+
]);
|
|
53
|
+
/** The plugin NAMES the bag carries. Not its keys: bindings name `plugin.name`. */
|
|
54
|
+
export function listBundledPluginNames(bag) {
|
|
55
|
+
return Object.values(bag)
|
|
56
|
+
.map((plugin) => plugin.name)
|
|
57
|
+
.sort();
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* A keyword or format is bound to a plugin the bundle does not ship. Non-empty
|
|
61
|
+
* means `fromJsonSchema` would reach for a missing member at build time.
|
|
62
|
+
*/
|
|
63
|
+
export function findUnbundledBoundPlugins(bag) {
|
|
64
|
+
const bundled = new Set(listBundledPluginNames(bag));
|
|
65
|
+
return listBoundPluginNames().filter((name) => !bundled.has(name));
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* The bundle ships a plugin that no binding names AND that is not declared
|
|
69
|
+
* above as converter-driven. Non-empty means the bundle grew weight nothing
|
|
70
|
+
* asked for, or that a declared exemption is now bound and should be deleted.
|
|
71
|
+
*/
|
|
72
|
+
export function findUnexplainedBundledPlugins(bag) {
|
|
73
|
+
const explained = new Set([
|
|
74
|
+
...listBoundPluginNames(),
|
|
75
|
+
...UNBOUND_BUNDLED_PLUGIN_NAMES,
|
|
76
|
+
]);
|
|
77
|
+
return listBundledPluginNames(bag).filter((name) => !explained.has(name));
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* A declared exemption that has since become bound. Stale; delete it.
|
|
81
|
+
*
|
|
82
|
+
* `declared` is a parameter so the check can be run against a list that is
|
|
83
|
+
* deliberately wrong — otherwise "it returns nothing" and "it can never return
|
|
84
|
+
* anything" look the same from a test.
|
|
85
|
+
*/
|
|
86
|
+
export function findStaleUnboundDeclarations(declared = UNBOUND_BUNDLED_PLUGIN_NAMES) {
|
|
87
|
+
const bound = new Set(listBoundPluginNames());
|
|
88
|
+
return declared.filter((name) => bound.has(name));
|
|
89
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { JsonSchemaBag } from "../../index";
|
|
2
|
+
/**
|
|
3
|
+
* The forty-nine plugins `./plugins/jsonSchemaFullFeature` bundles. Frozen,
|
|
4
|
+
* because it is handed to `fromJsonSchema` as a shared value and a caller must
|
|
5
|
+
* not be able to swap one plugin for another after the fact.
|
|
6
|
+
*/
|
|
7
|
+
export declare const jsonSchemaBag: JsonSchemaBag;
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.jsonSchemaBag = void 0;
|
|
4
|
+
const required_1 = require("../../../plugins/required");
|
|
5
|
+
const optional_1 = require("../../../plugins/optional");
|
|
6
|
+
const nullable_1 = require("../../../plugins/nullable");
|
|
7
|
+
const literal_1 = require("../../../plugins/literal");
|
|
8
|
+
const string_min_1 = require("../../../plugins/string-min");
|
|
9
|
+
const string_max_1 = require("../../../plugins/string-max");
|
|
10
|
+
const string_pattern_1 = require("../../../plugins/string-pattern");
|
|
11
|
+
const string_content_encoding_1 = require("../../../plugins/string-content-encoding");
|
|
12
|
+
const string_content_media_type_1 = require("../../../plugins/string-content-media-type");
|
|
13
|
+
const number_min_1 = require("../../../plugins/number-min");
|
|
14
|
+
const number_max_1 = require("../../../plugins/number-max");
|
|
15
|
+
const number_integer_1 = require("../../../plugins/number-integer");
|
|
16
|
+
const number_multiple_of_1 = require("../../../plugins/number-multiple-of");
|
|
17
|
+
const array_min_length_1 = require("../../../plugins/array-min-length");
|
|
18
|
+
const array_max_length_1 = require("../../../plugins/array-max-length");
|
|
19
|
+
const array_unique_1 = require("../../../plugins/array-unique");
|
|
20
|
+
const object_min_properties_1 = require("../../../plugins/object-min-properties");
|
|
21
|
+
const object_max_properties_1 = require("../../../plugins/object-max-properties");
|
|
22
|
+
const string_date_1 = require("../../../plugins/string-date");
|
|
23
|
+
const string_datetime_1 = require("../../../plugins/string-datetime");
|
|
24
|
+
const string_time_1 = require("../../../plugins/string-time");
|
|
25
|
+
const string_duration_1 = require("../../../plugins/string-duration");
|
|
26
|
+
const string_email_1 = require("../../../plugins/string-email");
|
|
27
|
+
const string_hostname_1 = require("../../../plugins/string-hostname");
|
|
28
|
+
const string_idn_email_1 = require("../../../plugins/string-idn-email");
|
|
29
|
+
const string_idn_hostname_1 = require("../../../plugins/string-idn-hostname");
|
|
30
|
+
const string_regex_1 = require("../../../plugins/string-regex");
|
|
31
|
+
const string_uri_reference_1 = require("../../../plugins/string-uri-reference");
|
|
32
|
+
const string_ipv4_1 = require("../../../plugins/string-ipv4");
|
|
33
|
+
const string_ipv6_1 = require("../../../plugins/string-ipv6");
|
|
34
|
+
const string_url_1 = require("../../../plugins/string-url");
|
|
35
|
+
const string_iri_1 = require("../../../plugins/string-iri");
|
|
36
|
+
const string_iri_reference_1 = require("../../../plugins/string-iri-reference");
|
|
37
|
+
const string_uri_template_1 = require("../../../plugins/string-uri-template");
|
|
38
|
+
const string_json_pointer_1 = require("../../../plugins/string-json-pointer");
|
|
39
|
+
const string_relative_json_pointer_1 = require("../../../plugins/string-relative-json-pointer");
|
|
40
|
+
const uuid_1 = require("../../../plugins/uuid");
|
|
41
|
+
const one_of_1 = require("../../../plugins/one-of");
|
|
42
|
+
const object_additional_properties_1 = require("../../../plugins/object-additional-properties");
|
|
43
|
+
const object_pattern_properties_1 = require("../../../plugins/object-pattern-properties");
|
|
44
|
+
const object_property_names_1 = require("../../../plugins/object-property-names");
|
|
45
|
+
const object_dependent_required_1 = require("../../../plugins/object-dependent-required");
|
|
46
|
+
const object_dependent_schemas_1 = require("../../../plugins/object-dependent-schemas");
|
|
47
|
+
const array_each_1 = require("../../../plugins/array-each");
|
|
48
|
+
const array_contains_1 = require("../../../plugins/array-contains");
|
|
49
|
+
const tuple_builder_1 = require("../../../plugins/tuple-builder");
|
|
50
|
+
const conditional_schema_1 = require("../../../plugins/conditional-schema");
|
|
51
|
+
const compare_field_1 = require("../../../plugins/compare-field");
|
|
52
|
+
/**
|
|
53
|
+
* The forty-nine plugins `./plugins/jsonSchemaFullFeature` bundles. Frozen,
|
|
54
|
+
* because it is handed to `fromJsonSchema` as a shared value and a caller must
|
|
55
|
+
* not be able to swap one plugin for another after the fact.
|
|
56
|
+
*/
|
|
57
|
+
exports.jsonSchemaBag = Object.freeze({
|
|
58
|
+
required: required_1.requiredPlugin,
|
|
59
|
+
optional: optional_1.optionalPlugin,
|
|
60
|
+
nullable: nullable_1.nullablePlugin,
|
|
61
|
+
literal: literal_1.literalPlugin,
|
|
62
|
+
stringMin: string_min_1.stringMinPlugin,
|
|
63
|
+
stringMax: string_max_1.stringMaxPlugin,
|
|
64
|
+
stringPattern: string_pattern_1.stringPatternPlugin,
|
|
65
|
+
stringContentEncoding: string_content_encoding_1.stringContentEncodingPlugin,
|
|
66
|
+
stringContentMediaType: string_content_media_type_1.stringContentMediaTypePlugin,
|
|
67
|
+
numberMin: number_min_1.numberMinPlugin,
|
|
68
|
+
numberMax: number_max_1.numberMaxPlugin,
|
|
69
|
+
numberInteger: number_integer_1.numberIntegerPlugin,
|
|
70
|
+
numberMultipleOf: number_multiple_of_1.numberMultipleOfPlugin,
|
|
71
|
+
arrayMinLength: array_min_length_1.arrayMinLengthPlugin,
|
|
72
|
+
arrayMaxLength: array_max_length_1.arrayMaxLengthPlugin,
|
|
73
|
+
arrayUnique: array_unique_1.arrayUniquePlugin,
|
|
74
|
+
objectMinProperties: object_min_properties_1.objectMinPropertiesPlugin,
|
|
75
|
+
objectMaxProperties: object_max_properties_1.objectMaxPropertiesPlugin,
|
|
76
|
+
stringDate: string_date_1.stringDatePlugin,
|
|
77
|
+
stringDatetime: string_datetime_1.stringDatetimePlugin,
|
|
78
|
+
stringTime: string_time_1.stringTimePlugin,
|
|
79
|
+
stringDuration: string_duration_1.stringDurationPlugin,
|
|
80
|
+
stringEmail: string_email_1.stringEmailPlugin,
|
|
81
|
+
stringHostname: string_hostname_1.stringHostnamePlugin,
|
|
82
|
+
stringIdnEmail: string_idn_email_1.stringIdnEmailPlugin,
|
|
83
|
+
stringIdnHostname: string_idn_hostname_1.stringIdnHostnamePlugin,
|
|
84
|
+
stringRegex: string_regex_1.stringRegexPlugin,
|
|
85
|
+
stringUriReference: string_uri_reference_1.stringUriReferencePlugin,
|
|
86
|
+
stringIpv4: string_ipv4_1.stringIpv4Plugin,
|
|
87
|
+
stringIpv6: string_ipv6_1.stringIpv6Plugin,
|
|
88
|
+
stringUrl: string_url_1.stringUrlPlugin,
|
|
89
|
+
stringIri: string_iri_1.stringIriPlugin,
|
|
90
|
+
stringIriReference: string_iri_reference_1.stringIriReferencePlugin,
|
|
91
|
+
stringUriTemplate: string_uri_template_1.stringUriTemplatePlugin,
|
|
92
|
+
stringJsonPointer: string_json_pointer_1.stringJsonPointerPlugin,
|
|
93
|
+
stringRelativeJsonPointer: string_relative_json_pointer_1.stringRelativeJsonPointerPlugin,
|
|
94
|
+
uuid: uuid_1.uuidPlugin,
|
|
95
|
+
oneOf: one_of_1.oneOfPlugin,
|
|
96
|
+
objectAdditionalProperties: object_additional_properties_1.objectAdditionalPropertiesPlugin,
|
|
97
|
+
objectAdditionalPropertiesSchema: object_additional_properties_1.objectAdditionalPropertiesSchemaPlugin,
|
|
98
|
+
objectPatternProperties: object_pattern_properties_1.objectPatternPropertiesPlugin,
|
|
99
|
+
objectPropertyNames: object_property_names_1.objectPropertyNamesPlugin,
|
|
100
|
+
objectDependentRequired: object_dependent_required_1.objectDependentRequiredPlugin,
|
|
101
|
+
objectDependentSchemas: object_dependent_schemas_1.objectDependentSchemasPlugin,
|
|
102
|
+
arrayEach: array_each_1.arrayEachPlugin,
|
|
103
|
+
arrayContains: array_contains_1.arrayContainsPlugin,
|
|
104
|
+
tupleBuilder: tuple_builder_1.tupleBuilderPlugin,
|
|
105
|
+
conditionalSchema: conditional_schema_1.conditionalSchemaPlugin,
|
|
106
|
+
compareField: compare_field_1.compareFieldPlugin,
|
|
107
|
+
});
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import { requiredPlugin } from "../../../plugins/required/index.mjs";
|
|
2
|
+
import { optionalPlugin } from "../../../plugins/optional/index.mjs";
|
|
3
|
+
import { nullablePlugin } from "../../../plugins/nullable/index.mjs";
|
|
4
|
+
import { literalPlugin } from "../../../plugins/literal/index.mjs";
|
|
5
|
+
import { stringMinPlugin } from "../../../plugins/string-min/index.mjs";
|
|
6
|
+
import { stringMaxPlugin } from "../../../plugins/string-max/index.mjs";
|
|
7
|
+
import { stringPatternPlugin } from "../../../plugins/string-pattern/index.mjs";
|
|
8
|
+
import { stringContentEncodingPlugin } from "../../../plugins/string-content-encoding/index.mjs";
|
|
9
|
+
import { stringContentMediaTypePlugin } from "../../../plugins/string-content-media-type/index.mjs";
|
|
10
|
+
import { numberMinPlugin } from "../../../plugins/number-min/index.mjs";
|
|
11
|
+
import { numberMaxPlugin } from "../../../plugins/number-max/index.mjs";
|
|
12
|
+
import { numberIntegerPlugin } from "../../../plugins/number-integer/index.mjs";
|
|
13
|
+
import { numberMultipleOfPlugin } from "../../../plugins/number-multiple-of/index.mjs";
|
|
14
|
+
import { arrayMinLengthPlugin } from "../../../plugins/array-min-length/index.mjs";
|
|
15
|
+
import { arrayMaxLengthPlugin } from "../../../plugins/array-max-length/index.mjs";
|
|
16
|
+
import { arrayUniquePlugin } from "../../../plugins/array-unique/index.mjs";
|
|
17
|
+
import { objectMinPropertiesPlugin } from "../../../plugins/object-min-properties/index.mjs";
|
|
18
|
+
import { objectMaxPropertiesPlugin } from "../../../plugins/object-max-properties/index.mjs";
|
|
19
|
+
import { stringDatePlugin } from "../../../plugins/string-date/index.mjs";
|
|
20
|
+
import { stringDatetimePlugin } from "../../../plugins/string-datetime/index.mjs";
|
|
21
|
+
import { stringTimePlugin } from "../../../plugins/string-time/index.mjs";
|
|
22
|
+
import { stringDurationPlugin } from "../../../plugins/string-duration/index.mjs";
|
|
23
|
+
import { stringEmailPlugin } from "../../../plugins/string-email/index.mjs";
|
|
24
|
+
import { stringHostnamePlugin } from "../../../plugins/string-hostname/index.mjs";
|
|
25
|
+
import { stringIdnEmailPlugin } from "../../../plugins/string-idn-email/index.mjs";
|
|
26
|
+
import { stringIdnHostnamePlugin } from "../../../plugins/string-idn-hostname/index.mjs";
|
|
27
|
+
import { stringRegexPlugin } from "../../../plugins/string-regex/index.mjs";
|
|
28
|
+
import { stringUriReferencePlugin } from "../../../plugins/string-uri-reference/index.mjs";
|
|
29
|
+
import { stringIpv4Plugin } from "../../../plugins/string-ipv4/index.mjs";
|
|
30
|
+
import { stringIpv6Plugin } from "../../../plugins/string-ipv6/index.mjs";
|
|
31
|
+
import { stringUrlPlugin } from "../../../plugins/string-url/index.mjs";
|
|
32
|
+
import { stringIriPlugin } from "../../../plugins/string-iri/index.mjs";
|
|
33
|
+
import { stringIriReferencePlugin } from "../../../plugins/string-iri-reference/index.mjs";
|
|
34
|
+
import { stringUriTemplatePlugin } from "../../../plugins/string-uri-template/index.mjs";
|
|
35
|
+
import { stringJsonPointerPlugin } from "../../../plugins/string-json-pointer/index.mjs";
|
|
36
|
+
import { stringRelativeJsonPointerPlugin } from "../../../plugins/string-relative-json-pointer/index.mjs";
|
|
37
|
+
import { uuidPlugin } from "../../../plugins/uuid/index.mjs";
|
|
38
|
+
import { oneOfPlugin } from "../../../plugins/one-of/index.mjs";
|
|
39
|
+
import { objectAdditionalPropertiesPlugin, objectAdditionalPropertiesSchemaPlugin, } from "../../../plugins/object-additional-properties/index.mjs";
|
|
40
|
+
import { objectPatternPropertiesPlugin } from "../../../plugins/object-pattern-properties/index.mjs";
|
|
41
|
+
import { objectPropertyNamesPlugin } from "../../../plugins/object-property-names/index.mjs";
|
|
42
|
+
import { objectDependentRequiredPlugin } from "../../../plugins/object-dependent-required/index.mjs";
|
|
43
|
+
import { objectDependentSchemasPlugin } from "../../../plugins/object-dependent-schemas/index.mjs";
|
|
44
|
+
import { arrayEachPlugin } from "../../../plugins/array-each/index.mjs";
|
|
45
|
+
import { arrayContainsPlugin } from "../../../plugins/array-contains/index.mjs";
|
|
46
|
+
import { tupleBuilderPlugin } from "../../../plugins/tuple-builder/index.mjs";
|
|
47
|
+
import { conditionalSchemaPlugin } from "../../../plugins/conditional-schema/index.mjs";
|
|
48
|
+
import { compareFieldPlugin } from "../../../plugins/compare-field/index.mjs";
|
|
49
|
+
/**
|
|
50
|
+
* The forty-nine plugins `./plugins/jsonSchemaFullFeature` bundles. Frozen,
|
|
51
|
+
* because it is handed to `fromJsonSchema` as a shared value and a caller must
|
|
52
|
+
* not be able to swap one plugin for another after the fact.
|
|
53
|
+
*/
|
|
54
|
+
export const jsonSchemaBag = Object.freeze({
|
|
55
|
+
required: requiredPlugin,
|
|
56
|
+
optional: optionalPlugin,
|
|
57
|
+
nullable: nullablePlugin,
|
|
58
|
+
literal: literalPlugin,
|
|
59
|
+
stringMin: stringMinPlugin,
|
|
60
|
+
stringMax: stringMaxPlugin,
|
|
61
|
+
stringPattern: stringPatternPlugin,
|
|
62
|
+
stringContentEncoding: stringContentEncodingPlugin,
|
|
63
|
+
stringContentMediaType: stringContentMediaTypePlugin,
|
|
64
|
+
numberMin: numberMinPlugin,
|
|
65
|
+
numberMax: numberMaxPlugin,
|
|
66
|
+
numberInteger: numberIntegerPlugin,
|
|
67
|
+
numberMultipleOf: numberMultipleOfPlugin,
|
|
68
|
+
arrayMinLength: arrayMinLengthPlugin,
|
|
69
|
+
arrayMaxLength: arrayMaxLengthPlugin,
|
|
70
|
+
arrayUnique: arrayUniquePlugin,
|
|
71
|
+
objectMinProperties: objectMinPropertiesPlugin,
|
|
72
|
+
objectMaxProperties: objectMaxPropertiesPlugin,
|
|
73
|
+
stringDate: stringDatePlugin,
|
|
74
|
+
stringDatetime: stringDatetimePlugin,
|
|
75
|
+
stringTime: stringTimePlugin,
|
|
76
|
+
stringDuration: stringDurationPlugin,
|
|
77
|
+
stringEmail: stringEmailPlugin,
|
|
78
|
+
stringHostname: stringHostnamePlugin,
|
|
79
|
+
stringIdnEmail: stringIdnEmailPlugin,
|
|
80
|
+
stringIdnHostname: stringIdnHostnamePlugin,
|
|
81
|
+
stringRegex: stringRegexPlugin,
|
|
82
|
+
stringUriReference: stringUriReferencePlugin,
|
|
83
|
+
stringIpv4: stringIpv4Plugin,
|
|
84
|
+
stringIpv6: stringIpv6Plugin,
|
|
85
|
+
stringUrl: stringUrlPlugin,
|
|
86
|
+
stringIri: stringIriPlugin,
|
|
87
|
+
stringIriReference: stringIriReferencePlugin,
|
|
88
|
+
stringUriTemplate: stringUriTemplatePlugin,
|
|
89
|
+
stringJsonPointer: stringJsonPointerPlugin,
|
|
90
|
+
stringRelativeJsonPointer: stringRelativeJsonPointerPlugin,
|
|
91
|
+
uuid: uuidPlugin,
|
|
92
|
+
oneOf: oneOfPlugin,
|
|
93
|
+
objectAdditionalProperties: objectAdditionalPropertiesPlugin,
|
|
94
|
+
objectAdditionalPropertiesSchema: objectAdditionalPropertiesSchemaPlugin,
|
|
95
|
+
objectPatternProperties: objectPatternPropertiesPlugin,
|
|
96
|
+
objectPropertyNames: objectPropertyNamesPlugin,
|
|
97
|
+
objectDependentRequired: objectDependentRequiredPlugin,
|
|
98
|
+
objectDependentSchemas: objectDependentSchemasPlugin,
|
|
99
|
+
arrayEach: arrayEachPlugin,
|
|
100
|
+
arrayContains: arrayContainsPlugin,
|
|
101
|
+
tupleBuilder: tupleBuilderPlugin,
|
|
102
|
+
conditionalSchema: conditionalSchemaPlugin,
|
|
103
|
+
compareField: compareFieldPlugin,
|
|
104
|
+
});
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { fromJsonSchema, jsonSchemaFullFeaturePlugin, } from "./json-schema-full-feature";
|
|
2
|
+
export { jsonSchemaBag } from "./bundled-plugins";
|
|
3
|
+
export { UNBOUND_BUNDLED_PLUGIN_NAMES, findStaleUnboundDeclarations, findUnbundledBoundPlugins, findUnexplainedBundledPlugins, listBundledPluginNames, } from "./bundle-coverage";
|
|
4
|
+
export type { JsonSchemaOptions } from "../json-schema";
|
|
5
|
+
export type { JsonSchemaBag } from "../../index";
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.listBundledPluginNames = exports.findUnexplainedBundledPlugins = exports.findUnbundledBoundPlugins = exports.findStaleUnboundDeclarations = exports.UNBOUND_BUNDLED_PLUGIN_NAMES = exports.jsonSchemaBag = exports.jsonSchemaFullFeaturePlugin = exports.fromJsonSchema = void 0;
|
|
4
|
+
// ===========================================================================
|
|
5
|
+
// The public subpath `@maroonedog/luq/plugins/jsonSchemaFullFeature`.
|
|
6
|
+
// Re-exports only.
|
|
7
|
+
//
|
|
8
|
+
// 1.x published exactly one symbol here, `jsonSchemaFullFeaturePlugin`, and the
|
|
9
|
+
// README's only JSON Schema example imports it from this specifier. That symbol
|
|
10
|
+
// and that specifier are unchanged. `fromJsonSchema` and `jsonSchemaBag` are
|
|
11
|
+
// added because the rewritten core has no builder-extension mechanism, so the
|
|
12
|
+
// bundled bag has to be reachable as a value for the conversion function to be
|
|
13
|
+
// callable in one import.
|
|
14
|
+
// ===========================================================================
|
|
15
|
+
var json_schema_full_feature_1 = require("./json-schema-full-feature");
|
|
16
|
+
Object.defineProperty(exports, "fromJsonSchema", { enumerable: true, get: function () { return json_schema_full_feature_1.fromJsonSchema; } });
|
|
17
|
+
Object.defineProperty(exports, "jsonSchemaFullFeaturePlugin", { enumerable: true, get: function () { return json_schema_full_feature_1.jsonSchemaFullFeaturePlugin; } });
|
|
18
|
+
var bundled_plugins_1 = require("./bundled-plugins");
|
|
19
|
+
Object.defineProperty(exports, "jsonSchemaBag", { enumerable: true, get: function () { return bundled_plugins_1.jsonSchemaBag; } });
|
|
20
|
+
var bundle_coverage_1 = require("./bundle-coverage");
|
|
21
|
+
Object.defineProperty(exports, "UNBOUND_BUNDLED_PLUGIN_NAMES", { enumerable: true, get: function () { return bundle_coverage_1.UNBOUND_BUNDLED_PLUGIN_NAMES; } });
|
|
22
|
+
Object.defineProperty(exports, "findStaleUnboundDeclarations", { enumerable: true, get: function () { return bundle_coverage_1.findStaleUnboundDeclarations; } });
|
|
23
|
+
Object.defineProperty(exports, "findUnbundledBoundPlugins", { enumerable: true, get: function () { return bundle_coverage_1.findUnbundledBoundPlugins; } });
|
|
24
|
+
Object.defineProperty(exports, "findUnexplainedBundledPlugins", { enumerable: true, get: function () { return bundle_coverage_1.findUnexplainedBundledPlugins; } });
|
|
25
|
+
Object.defineProperty(exports, "listBundledPluginNames", { enumerable: true, get: function () { return bundle_coverage_1.listBundledPluginNames; } });
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// ===========================================================================
|
|
2
|
+
// The public subpath `@maroonedog/luq/plugins/jsonSchemaFullFeature`.
|
|
3
|
+
// Re-exports only.
|
|
4
|
+
//
|
|
5
|
+
// 1.x published exactly one symbol here, `jsonSchemaFullFeaturePlugin`, and the
|
|
6
|
+
// README's only JSON Schema example imports it from this specifier. That symbol
|
|
7
|
+
// and that specifier are unchanged. `fromJsonSchema` and `jsonSchemaBag` are
|
|
8
|
+
// added because the rewritten core has no builder-extension mechanism, so the
|
|
9
|
+
// bundled bag has to be reachable as a value for the conversion function to be
|
|
10
|
+
// callable in one import.
|
|
11
|
+
// ===========================================================================
|
|
12
|
+
export { fromJsonSchema, jsonSchemaFullFeaturePlugin, } from "./json-schema-full-feature.mjs";
|
|
13
|
+
export { jsonSchemaBag } from "./bundled-plugins.mjs";
|
|
14
|
+
export { UNBOUND_BUNDLED_PLUGIN_NAMES, findStaleUnboundDeclarations, findUnbundledBoundPlugins, findUnexplainedBundledPlugins, listBundledPluginNames, } from "./bundle-coverage.mjs";
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { MessageContextExtra, TypeName } from "../../../types";
|
|
2
|
+
import type { Unchanged } from "../../../plugin-kit/marker.types";
|
|
3
|
+
import type { JsonSchemaOptions } from "../json-schema";
|
|
4
|
+
import type { GlobalConfig } from "../../../types/global-config";
|
|
5
|
+
export declare const jsonSchemaFullFeaturePlugin: import("../../../plugin-kit/plugin-definition").PluginDefinition<"jsonSchemaFullFeature", "jsonSchemaFullFeature", readonly TypeName[], {
|
|
6
|
+
args: readonly [document: unknown, options?: JsonSchemaOptions];
|
|
7
|
+
out: Unchanged;
|
|
8
|
+
context: MessageContextExtra;
|
|
9
|
+
}>;
|
|
10
|
+
/**
|
|
11
|
+
* The documented one-import route:
|
|
12
|
+
*
|
|
13
|
+
* import { fromJsonSchema } from "@maroonedog/luq/plugins/jsonSchemaFullFeature";
|
|
14
|
+
* const validator = fromJsonSchema<User>(schema);
|
|
15
|
+
*
|
|
16
|
+
* `T` defaults to `Record<string, unknown>`, never `any`, and under the default
|
|
17
|
+
* NO declared path is checked — see build-from-schema.ts, which owns that
|
|
18
|
+
* escape hatch and its single overload.
|
|
19
|
+
*
|
|
20
|
+
* The return type is INFERRED rather than written: naming `Validator<T>` would
|
|
21
|
+
* mean importing src/builder, which tier `extension` forbids. The inferred type
|
|
22
|
+
* is that same `Validator<T>` and the type test asserts it.
|
|
23
|
+
*/
|
|
24
|
+
export declare function fromJsonSchema<T extends object = Record<string, unknown>>(schema: unknown, config?: GlobalConfig): import("../../..").Validator<T, T>;
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.jsonSchemaFullFeaturePlugin = void 0;
|
|
4
|
+
exports.fromJsonSchema = fromJsonSchema;
|
|
5
|
+
// ===========================================================================
|
|
6
|
+
// L8 (tier `extension`)
|
|
7
|
+
// src/json-schema/extensions/json-schema-full-feature/json-schema-full-feature.ts
|
|
8
|
+
// `./plugins/jsonSchemaFullFeature` — the flagship one-import path.
|
|
9
|
+
//
|
|
10
|
+
// ONE IMPLEMENTATION, TWO FRONT DOORS. The rule this plugin builds is built by
|
|
11
|
+
// `jsonSchemaPlugin.build`, reached through the sibling subpath's ENTRY file —
|
|
12
|
+
// the only import a tier-`extension` plugin may make of another plugin. The
|
|
13
|
+
// difference between the two subpaths is the BAG and nothing else: this one
|
|
14
|
+
// ships all forty-five plugins, the other takes the caller's.
|
|
15
|
+
//
|
|
16
|
+
// WHY THE METHOD IS NOT ALSO CALLED `jsonSchema`: attach-slot-methods refuses
|
|
17
|
+
// two plugins claiming one method on one slot, and scripts/check-plugin-
|
|
18
|
+
// uniqueness.ts refuses it across the whole catalogue. 1.x let both bundles
|
|
19
|
+
// claim `.fromJsonSchema` and relied on registration order to pick a winner;
|
|
20
|
+
// here they are two distinct methods, and a builder may hold both.
|
|
21
|
+
//
|
|
22
|
+
// `fromJsonSchema(schema)` below is the documented one-import route (README
|
|
23
|
+
// line 75 in 1.x). It is the step-25 function with this bundle's bag already
|
|
24
|
+
// applied, so there is no second conversion path — only a shorter call.
|
|
25
|
+
// ===========================================================================
|
|
26
|
+
const plugin_definition_1 = require("../../../plugin-kit/plugin-definition");
|
|
27
|
+
const json_schema_1 = require("../json-schema");
|
|
28
|
+
const index_1 = require("../../index");
|
|
29
|
+
const bundled_plugins_1 = require("./bundled-plugins");
|
|
30
|
+
/** The same nine slots the sibling serves: a document constrains any value. */
|
|
31
|
+
const SCHEMA_SLOTS = [
|
|
32
|
+
"string",
|
|
33
|
+
"number",
|
|
34
|
+
"boolean",
|
|
35
|
+
"date",
|
|
36
|
+
"array",
|
|
37
|
+
"tuple",
|
|
38
|
+
"object",
|
|
39
|
+
"union",
|
|
40
|
+
"any",
|
|
41
|
+
];
|
|
42
|
+
exports.jsonSchemaFullFeaturePlugin = (0, plugin_definition_1.definePlugin)()({
|
|
43
|
+
name: "jsonSchemaFullFeature",
|
|
44
|
+
// The document decides whether null is allowed, so null has to reach it.
|
|
45
|
+
judgesNull: true,
|
|
46
|
+
method: "jsonSchemaFullFeature",
|
|
47
|
+
slots: SCHEMA_SLOTS,
|
|
48
|
+
build: (ctx, document, options) => json_schema_1.jsonSchemaPlugin.build(ctx, document, bundled_plugins_1.jsonSchemaBag, options),
|
|
49
|
+
});
|
|
50
|
+
/**
|
|
51
|
+
* The documented one-import route:
|
|
52
|
+
*
|
|
53
|
+
* import { fromJsonSchema } from "@maroonedog/luq/plugins/jsonSchemaFullFeature";
|
|
54
|
+
* const validator = fromJsonSchema<User>(schema);
|
|
55
|
+
*
|
|
56
|
+
* `T` defaults to `Record<string, unknown>`, never `any`, and under the default
|
|
57
|
+
* NO declared path is checked — see build-from-schema.ts, which owns that
|
|
58
|
+
* escape hatch and its single overload.
|
|
59
|
+
*
|
|
60
|
+
* The return type is INFERRED rather than written: naming `Validator<T>` would
|
|
61
|
+
* mean importing src/builder, which tier `extension` forbids. The inferred type
|
|
62
|
+
* is that same `Validator<T>` and the type test asserts it.
|
|
63
|
+
*/
|
|
64
|
+
function fromJsonSchema(schema, config) {
|
|
65
|
+
return (0, index_1.fromJsonSchema)(bundled_plugins_1.jsonSchemaBag, schema, config);
|
|
66
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
// ===========================================================================
|
|
2
|
+
// L8 (tier `extension`)
|
|
3
|
+
// src/json-schema/extensions/json-schema-full-feature/json-schema-full-feature.ts
|
|
4
|
+
// `./plugins/jsonSchemaFullFeature` — the flagship one-import path.
|
|
5
|
+
//
|
|
6
|
+
// ONE IMPLEMENTATION, TWO FRONT DOORS. The rule this plugin builds is built by
|
|
7
|
+
// `jsonSchemaPlugin.build`, reached through the sibling subpath's ENTRY file —
|
|
8
|
+
// the only import a tier-`extension` plugin may make of another plugin. The
|
|
9
|
+
// difference between the two subpaths is the BAG and nothing else: this one
|
|
10
|
+
// ships all forty-five plugins, the other takes the caller's.
|
|
11
|
+
//
|
|
12
|
+
// WHY THE METHOD IS NOT ALSO CALLED `jsonSchema`: attach-slot-methods refuses
|
|
13
|
+
// two plugins claiming one method on one slot, and scripts/check-plugin-
|
|
14
|
+
// uniqueness.ts refuses it across the whole catalogue. 1.x let both bundles
|
|
15
|
+
// claim `.fromJsonSchema` and relied on registration order to pick a winner;
|
|
16
|
+
// here they are two distinct methods, and a builder may hold both.
|
|
17
|
+
//
|
|
18
|
+
// `fromJsonSchema(schema)` below is the documented one-import route (README
|
|
19
|
+
// line 75 in 1.x). It is the step-25 function with this bundle's bag already
|
|
20
|
+
// applied, so there is no second conversion path — only a shorter call.
|
|
21
|
+
// ===========================================================================
|
|
22
|
+
import { definePlugin } from "../../../plugin-kit/plugin-definition.mjs";
|
|
23
|
+
import { jsonSchemaPlugin } from "../json-schema/index.mjs";
|
|
24
|
+
import { fromJsonSchema as convertWithBag } from "../../index.mjs";
|
|
25
|
+
import { jsonSchemaBag } from "./bundled-plugins.mjs";
|
|
26
|
+
/** The same nine slots the sibling serves: a document constrains any value. */
|
|
27
|
+
const SCHEMA_SLOTS = [
|
|
28
|
+
"string",
|
|
29
|
+
"number",
|
|
30
|
+
"boolean",
|
|
31
|
+
"date",
|
|
32
|
+
"array",
|
|
33
|
+
"tuple",
|
|
34
|
+
"object",
|
|
35
|
+
"union",
|
|
36
|
+
"any",
|
|
37
|
+
];
|
|
38
|
+
export const jsonSchemaFullFeaturePlugin = /*#__PURE__*/ definePlugin()({
|
|
39
|
+
name: "jsonSchemaFullFeature",
|
|
40
|
+
// The document decides whether null is allowed, so null has to reach it.
|
|
41
|
+
judgesNull: true,
|
|
42
|
+
method: "jsonSchemaFullFeature",
|
|
43
|
+
slots: SCHEMA_SLOTS,
|
|
44
|
+
build: (ctx, document, options) => jsonSchemaPlugin.build(ctx, document, jsonSchemaBag, options),
|
|
45
|
+
});
|
|
46
|
+
/**
|
|
47
|
+
* The documented one-import route:
|
|
48
|
+
*
|
|
49
|
+
* import { fromJsonSchema } from "@maroonedog/luq/plugins/jsonSchemaFullFeature";
|
|
50
|
+
* const validator = fromJsonSchema<User>(schema);
|
|
51
|
+
*
|
|
52
|
+
* `T` defaults to `Record<string, unknown>`, never `any`, and under the default
|
|
53
|
+
* NO declared path is checked — see build-from-schema.ts, which owns that
|
|
54
|
+
* escape hatch and its single overload.
|
|
55
|
+
*
|
|
56
|
+
* The return type is INFERRED rather than written: naming `Validator<T>` would
|
|
57
|
+
* mean importing src/builder, which tier `extension` forbids. The inferred type
|
|
58
|
+
* is that same `Validator<T>` and the type test asserts it.
|
|
59
|
+
*/
|
|
60
|
+
export function fromJsonSchema(schema, config) {
|
|
61
|
+
return convertWithBag(jsonSchemaBag, schema, config);
|
|
62
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { Rule } from "../plugin-kit/compiled-rule";
|
|
2
|
+
import type { Draft07SchemaObject } from "./draft07.types";
|
|
3
|
+
import type { ChildSchema, StructuralContext } from "./structural-expansion.types";
|
|
4
|
+
/** The declaration step for "every element of this array". */
|
|
5
|
+
export declare const EACH_STEP = "[*]";
|
|
6
|
+
/**
|
|
7
|
+
* The single form only. The tuple form gets no child path: element 0 and
|
|
8
|
+
* element 1 obey DIFFERENT schemas, and one declared `[*]` cannot say that.
|
|
9
|
+
*/
|
|
10
|
+
export declare function readItemChildren(schema: Draft07SchemaObject): readonly ChildSchema[];
|
|
11
|
+
export declare function composeTupleItems(schema: Draft07SchemaObject, context: StructuralContext): readonly Rule[];
|
|
12
|
+
/**
|
|
13
|
+
* `contains` is EXISTENTIAL: at least one element matches. arrayContains owns
|
|
14
|
+
* that reduction, and its default bounds (min 1, no max) are exactly the
|
|
15
|
+
* draft's, so this is one call and no arithmetic.
|
|
16
|
+
*/
|
|
17
|
+
export declare function composeContains(schema: Draft07SchemaObject, context: StructuralContext): readonly Rule[];
|
|
18
|
+
/**
|
|
19
|
+
* The three array keywords that BIND. `minItems` maps to the method `minLength`
|
|
20
|
+
* and `maxItems` to `maxLength`; writing "minItems" as the method name does not
|
|
21
|
+
* compile (keyword-map-array.ts), which is the C2 regression made impossible.
|
|
22
|
+
* `uniqueItems: false` never reaches its binding: §6.4.3 gives it no effect and
|
|
23
|
+
* the binding's value type is `true`.
|
|
24
|
+
*/
|
|
25
|
+
export declare function declareArrayRules(schema: Draft07SchemaObject, context: StructuralContext): readonly Rule[];
|