schemair 0.2.0 → 0.3.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/README.md +140 -39
- package/dist/authoring/index.d.cts +1 -1
- package/dist/authoring/index.d.ts +1 -1
- package/dist/authoring/index.js +1 -1
- package/dist/{authoring-D3V0iyTe.js → authoring-DyJNYs5o.js} +1 -1
- package/dist/compatibility/index.cjs +43 -0
- package/dist/compatibility/index.d.cts +2 -0
- package/dist/compatibility/index.d.ts +2 -0
- package/dist/compatibility/index.js +42 -0
- package/dist/definition/index.d.cts +2 -2
- package/dist/definition/index.d.ts +2 -2
- package/dist/definition/index.js +1 -1
- package/dist/{index-DDMwVy2I.d.cts → index-1sDuqu05.d.ts} +6 -1
- package/dist/index-BFSMT_2d.d.ts +53 -0
- package/dist/{index-DM5DSLLL.d.ts → index-BGz7L_Fq.d.cts} +4 -30
- package/dist/{index-bQy-C-1l.d.ts → index-BTtdqi_M.d.ts} +9 -9
- package/dist/index-BfbClf6R.d.cts +20 -0
- package/dist/{index-CQynt7ft.d.cts → index-CK7Is7vy.d.cts} +9 -9
- package/dist/index-CUGhtuwA.d.cts +53 -0
- package/dist/{index-DXWoNYFB.d.ts → index-CV8EZQy8.d.ts} +1 -1
- package/dist/index-CzNxjqVg.d.cts +47 -0
- package/dist/{index-CIim1dG7.d.cts → index-DGHMUZ5m.d.cts} +1 -1
- package/dist/{index-CBbd4hXJ.d.ts → index-DxvfPmw6.d.ts} +4 -11
- package/dist/index-T6nFhvGQ.d.ts +20 -0
- package/dist/{index-CNjYUKvu.d.cts → index-ba_52Yu9.d.cts} +4 -11
- package/dist/index-hrcM9oJe.d.ts +47 -0
- package/dist/{index-4aMF0cTE.d.ts → index-i7Au-FQ6.d.cts} +6 -1
- package/dist/{index-DhmHCGpT.d.cts → index-mu1znI1F.d.ts} +4 -30
- package/dist/index.cjs +10 -10
- package/dist/index.d.cts +9 -7
- package/dist/index.d.ts +9 -7
- package/dist/index.js +9 -7
- package/dist/integrations/json-schema/index.d.cts +1 -1
- package/dist/integrations/json-schema/index.d.ts +1 -1
- package/dist/integrations/json-schema/index.js +1 -1
- package/dist/integrations/standard-schema/index.cjs +4 -4
- package/dist/integrations/standard-schema/index.d.cts +5 -5
- package/dist/integrations/standard-schema/index.d.ts +5 -5
- package/dist/integrations/standard-schema/index.js +5 -5
- package/dist/payload/index.cjs +44 -81
- package/dist/payload/index.d.cts +2 -2
- package/dist/payload/index.d.ts +2 -2
- package/dist/payload/index.js +45 -81
- package/dist/relations/index.cjs +2 -5
- package/dist/relations/index.d.cts +2 -2
- package/dist/relations/index.d.ts +2 -2
- package/dist/relations/index.js +2 -2
- package/dist/{relations-Cymx4iTc.cjs → relations-NUVJkAG8.cjs} +11 -232
- package/dist/{relations-ysXDmi-Z.js → relations-QtnCRW9x.js} +13 -216
- package/dist/resolve/index.cjs +308 -0
- package/dist/resolve/index.d.cts +2 -0
- package/dist/resolve/index.d.ts +2 -0
- package/dist/resolve/index.js +305 -0
- package/dist/schema-ref-key-BHVFVfj1.cjs +26 -0
- package/dist/schema-ref-key-DR__tPr-.js +14 -0
- package/dist/spec/index.d.cts +2 -2
- package/dist/spec/index.d.ts +2 -2
- package/dist/spec/index.js +1 -1
- package/dist/standard/index.d.cts +2 -2
- package/dist/standard/index.d.ts +2 -2
- package/dist/standard/index.js +2 -2
- package/dist/type-interpreter/index.cjs +2 -6
- package/dist/type-interpreter/index.d.cts +2 -2
- package/dist/type-interpreter/index.d.ts +2 -2
- package/dist/type-interpreter/index.js +2 -2
- package/dist/{type-interpreter-DnrId8aM.js → type-interpreter-BA8gcLUU.js} +57 -280
- package/dist/{type-interpreter-OLt2W2yd.cjs → type-interpreter-D8xETgq1.cjs} +55 -302
- package/package.json +23 -3
- package/dist/index-BqfGAU1K.d.ts +0 -56
- package/dist/index-D3mfwaSO.d.cts +0 -56
- /package/dist/{chunk-BgLxgFZR.js → chunk-bFfwrPtJ.js} +0 -0
- /package/dist/{definition-DmYnDmQO.js → definition-BH_LzXGc.js} +0 -0
- /package/dist/{standard-DhKsxu9U.js → standard-BGMgbbEQ.js} +0 -0
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import { $ as StructuredOperationPayloadDefinition, A as SchemaTypeOpaqueHostExpr, B as SchemaTypeValueOfExpr, C as SchemaTypeIntersectExpr, D as SchemaTypeNeverExpr, E as SchemaTypeMergeRecordsExpr, F as SchemaTypeRequiredFieldsExpr, G as OperationChannelDefinition, H as SchemaVariantSelector, I as SchemaTypeTaggedUnionExpr, J as OperationErrorDefinition, K as OperationContainerDefinition, L as SchemaTypeTerm, M as SchemaTypePickFieldsExpr, N as SchemaTypeRecordExpr, O as SchemaTypeNullableExpr, P as SchemaTypeRefineExpr, Q as StructuredOperationDefinition, R as SchemaTypeTupleExpr, S as SchemaTypeFieldsOfExpr, T as SchemaTypeMaybeAbsentExpr, U as Operation, V as SchemaTypeVariableExpr, W as OperationBinaryMetadata, X as StructuredOperationChannelDefinition, Y as OperationPayloadDefinition, Z as StructuredOperationContainerDefinition, _ as SchemaTypeElementOfExpr, _t as
|
|
2
|
-
import { _ as validateStructuredOperationDefinition, a as validateSchemaTypeTermDefinition, b as SchemaNodeDefinitionValidationResult, c as OperationDefinitionPath, d as StructuredOperationDefinitionValidationResult, f as isStructuredOperationContainerDefinition, g as validateStructuredOperationContainerDefinition, h as validateOperationDefinition, i as validateSchemaTypeExprDefinition, l as OperationDefinitionValidationResult, m as validateOperationContainerDefinition, n as SchemaTypeExprDefinitionValidationResult, o as OperationContainerDefinitionValidationResult, p as isStructuredOperationDefinition, r as SchemaTypeTermDefinitionValidationResult, s as OperationDefinitionDiagnostic, t as SchemaTypeDefinitionDiagnostic, u as StructuredOperationContainerDefinitionValidationResult, v as SchemaNodeDefinitionDiagnostic, x as validateSchemaNodeDefinition, y as SchemaNodeDefinitionPath } from "./index-
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
|
|
1
|
+
import { $ as StructuredOperationPayloadDefinition, A as SchemaTypeOpaqueHostExpr, B as SchemaTypeValueOfExpr, C as SchemaTypeIntersectExpr, D as SchemaTypeNeverExpr, E as SchemaTypeMergeRecordsExpr, F as SchemaTypeRequiredFieldsExpr, G as OperationChannelDefinition, H as SchemaVariantSelector, I as SchemaTypeTaggedUnionExpr, J as OperationErrorDefinition, K as OperationContainerDefinition, L as SchemaTypeTerm, M as SchemaTypePickFieldsExpr, N as SchemaTypeRecordExpr, O as SchemaTypeNullableExpr, P as SchemaTypeRefineExpr, Q as StructuredOperationDefinition, R as SchemaTypeTupleExpr, S as SchemaTypeFieldsOfExpr, T as SchemaTypeMaybeAbsentExpr, U as Operation, V as SchemaTypeVariableExpr, W as OperationBinaryMetadata, X as StructuredOperationChannelDefinition, Y as OperationPayloadDefinition, Z as StructuredOperationContainerDefinition, _ as SchemaTypeElementOfExpr, _t as SchemaSelfRefNode, a as StandardSemanticDefinition, at as SchemaConstraint, b as SchemaTypeExtractVariantsExpr, bt as SchemaTaggedUnionVariant, c as STANDARD_CONSTRAINT_PATH_LIST, ct as SchemaNode, d as Expression, dt as SchemaNumberNode, et as JsonValue, f as ExpressionArgument, ft as SchemaPrimitiveNode, g as SchemaTypeElementAtExpr, gt as SchemaRefNode, h as SchemaTypeArrayExpr, ht as SchemaRefEntry, i as StandardConstraintDefinition, it as SchemaBooleanNode, j as SchemaTypePartialFieldsExpr, k as SchemaTypeOmitFieldsExpr, l as STANDARD_SEMANTIC_PATHS, lt as SchemaNullNode, m as SchemaTypeAbsentExpr, mt as SchemaRecordNode, n as STANDARD_SEMANTIC_DEFINITIONS, nt as PrimitiveName, o as StandardSemanticRelation, ot as SchemaLiteralNode, p as SchemaFieldSelector, pt as SchemaRecordField, q as OperationDefinition, r as STANDARD_SEMANTIC_RELATIONS, rt as SchemaArrayNode, s as STANDARD_CONSTRAINT_PATHS, st as SchemaLiteralUnionNode, t as STANDARD_CONSTRAINT_DEFINITIONS, tt as LiteralValue, u as STANDARD_SEMANTIC_PATH_LIST, ut as SchemaNullableNode, v as SchemaTypeExcludeVariantsExpr, vt as SchemaStringNode, w as SchemaTypeKeyOfExpr, x as SchemaTypeFieldOfExpr, xt as SchemaTupleNode, y as SchemaTypeExpr, yt as SchemaTaggedUnionNode, z as SchemaTypeUnknownExpr } from "./index-1sDuqu05.js";
|
|
2
|
+
import { _ as validateStructuredOperationDefinition, a as validateSchemaTypeTermDefinition, b as SchemaNodeDefinitionValidationResult, c as OperationDefinitionPath, d as StructuredOperationDefinitionValidationResult, f as isStructuredOperationContainerDefinition, g as validateStructuredOperationContainerDefinition, h as validateOperationDefinition, i as validateSchemaTypeExprDefinition, l as OperationDefinitionValidationResult, m as validateOperationContainerDefinition, n as SchemaTypeExprDefinitionValidationResult, o as OperationContainerDefinitionValidationResult, p as isStructuredOperationDefinition, r as SchemaTypeTermDefinitionValidationResult, s as OperationDefinitionDiagnostic, t as SchemaTypeDefinitionDiagnostic, u as StructuredOperationContainerDefinitionValidationResult, v as SchemaNodeDefinitionDiagnostic, x as validateSchemaNodeDefinition, y as SchemaNodeDefinitionPath } from "./index-CV8EZQy8.js";
|
|
3
|
+
import { a as PayloadResolution, c as PayloadValidationDiagnostic, d as validatePayload, i as PayloadProviderDecision, l as PayloadValidationResult, n as PayloadPath, o as PayloadResolutionContext, r as PayloadProviderContext, s as PayloadValidationContext, t as ConstraintProvider, u as SemanticProvider } from "./index-hrcM9oJe.js";
|
|
4
|
+
import { a as RelationDiagnostic, c as RelationProviderDecision, d as RelationResult, f as RelationSide, h as checkSchemaRelation, i as RelationContext, l as RelationResolution, m as checkSchemaAssignability, n as OperationRelationDirection, o as RelationPath, p as RelationStatus, r as checkOperationRelation, s as RelationProviderContext, t as OperationRelationComponent, u as RelationResolutionContext } from "./index-DxvfPmw6.js";
|
|
5
|
+
import { a as reportSchemaCompatibility, i as reportOperationCompatibility, n as CompatibilityReport, r as CompatibilityStatus, t as CompatibilityCheck } from "./index-T6nFhvGQ.js";
|
|
6
|
+
import { _ as evaluateSchemaTypeTerm, a as TypeVariableSolverResult, c as TypeTermRelationContext, d as TypeInterpreterContext, f as TypeInterpreterDiagnostic, g as evaluateExpression, h as TypeInterpreterStatus, i as TypeVariableSolverIssue, l as checkTypeTermRelation, m as TypeInterpreterResult, n as TypeVariableSolverContext, o as solveTypeVariables, p as TypeInterpreterPath, r as TypeVariableSolverInput, s as HostTypeRelationDecision, t as TypeVariableConstraint, u as EvaluatedTypeTerm } from "./index-mu1znI1F.js";
|
|
7
|
+
import { a as SchemaClosureResolutionContext, c as SchemaRefResolution, d as resolveSchemaReferences, f as resolveSchemaReferencesAsync, i as SchemaClosureDiagnostic, l as resolveOperationClosure, n as ResolvedSchemaGraph, o as SchemaClosureResult, r as SchemaClosureContext, s as SchemaClosureStatus, t as AsyncSchemaClosureContext, u as resolveOperationClosureAsync } from "./index-BFSMT_2d.js";
|
|
8
|
+
import { $ as isExtensionSemanticPath, A as BuildStandardConstraintProfileOptions, B as ExactRationalFailureReason, C as standardSchemaSatisfiability, D as standardPayloadContext, E as standardConstraintTarget, F as StandardConstraintSatisfiability, G as greatestCommonDivisorRationals, H as exactRationalFromFiniteNumber, I as buildStandardConstraintProfile, J as STANDARD_CONSTRAINT_DEFINITION_MAP, K as leastCommonMultipleRationals, L as isStandardConstraintOwner, M as StandardConstraintInterval, N as StandardConstraintOwner, O as standardSemanticProvider, P as StandardConstraintProfile, Q as classifySemanticPath, R as DEFAULT_EXACT_RATIONAL_MAX_BITS, S as refineStandardSchema, T as standardConstraintRegistry, U as exactRationalIsIntegerMultiple, V as ExactRationalResult, W as formatExactRational, X as StandardSemanticResolution, Y as STANDARD_SEMANTIC_DEFINITION_MAP, Z as StandardVocabularyRegistry, _ as createStandardRelationContext, a as InferOperationOutput, b as StandardSchemaOperationResult, c as expression_d_exports, d as InferFailureReason, et as isStandardSemanticNamespace, f as InferRef, g as StandardProviderContext, h as StaticSchemaRegistryEntry, i as InferOperationInput, j as StandardConstraintBound, k as standardSemanticRegistry, l as schema_d_exports, m as StaticSchemaRegistry, n as InferOperationEmits, nt as standardVocabularyRegistry, o as InferOperationPayload, p as InferResult, q as ClassifiedSemanticPath, r as InferOperationErrors, s as OperationRegistry, t as InferOperation, tt as pathKey, u as Infer, v as standardRelationContext, w as standardConstraintProvider, x as intersectStandardSchemas, y as standardVocabularyProvider, z as ExactRational } from "./index-BTtdqi_M.js";
|
|
9
|
+
export { AsyncSchemaClosureContext, BuildStandardConstraintProfileOptions, ClassifiedSemanticPath, CompatibilityCheck, CompatibilityReport, CompatibilityStatus, ConstraintProvider, DEFAULT_EXACT_RATIONAL_MAX_BITS, EvaluatedTypeTerm, ExactRational, ExactRationalFailureReason, ExactRationalResult, Expression, ExpressionArgument, HostTypeRelationDecision, Infer, InferFailureReason, InferOperation, InferOperationEmits, InferOperationErrors, InferOperationInput, InferOperationOutput, InferOperationPayload, InferRef, InferResult, JsonValue, LiteralValue, Operation, OperationBinaryMetadata, OperationChannelDefinition, OperationContainerDefinition, OperationContainerDefinitionValidationResult, OperationDefinition, OperationDefinitionDiagnostic, OperationDefinitionPath, OperationDefinitionValidationResult, OperationErrorDefinition, OperationPayloadDefinition, OperationRegistry, OperationRelationComponent, OperationRelationDirection, PayloadPath, PayloadProviderContext, PayloadProviderDecision, PayloadResolution, PayloadResolutionContext, PayloadValidationContext, PayloadValidationDiagnostic, PayloadValidationResult, PrimitiveName, RelationContext, RelationDiagnostic, RelationPath, RelationProviderContext, RelationProviderDecision, RelationResolution, RelationResolutionContext, RelationResult, RelationSide, RelationStatus, ResolvedSchemaGraph, STANDARD_CONSTRAINT_DEFINITIONS, STANDARD_CONSTRAINT_DEFINITION_MAP, STANDARD_CONSTRAINT_PATHS, STANDARD_CONSTRAINT_PATH_LIST, STANDARD_SEMANTIC_DEFINITIONS, STANDARD_SEMANTIC_DEFINITION_MAP, STANDARD_SEMANTIC_PATHS, STANDARD_SEMANTIC_PATH_LIST, STANDARD_SEMANTIC_RELATIONS, SchemaArrayNode, SchemaBooleanNode, SchemaClosureContext, SchemaClosureDiagnostic, SchemaClosureResolutionContext, SchemaClosureResult, SchemaClosureStatus, SchemaConstraint, SchemaFieldSelector, SchemaLiteralNode, SchemaLiteralUnionNode, SchemaNode, SchemaNodeDefinitionDiagnostic, SchemaNodeDefinitionPath, SchemaNodeDefinitionValidationResult, SchemaNullNode, SchemaNullableNode, SchemaNumberNode, SchemaPrimitiveNode, SchemaRecordField, SchemaRecordNode, SchemaRefEntry, SchemaRefNode, SchemaRefResolution, SchemaSelfRefNode, SchemaStringNode, SchemaTaggedUnionNode, SchemaTaggedUnionVariant, SchemaTupleNode, SchemaTypeAbsentExpr, SchemaTypeArrayExpr, SchemaTypeDefinitionDiagnostic, SchemaTypeElementAtExpr, SchemaTypeElementOfExpr, SchemaTypeExcludeVariantsExpr, SchemaTypeExpr, SchemaTypeExprDefinitionValidationResult, SchemaTypeExtractVariantsExpr, SchemaTypeFieldOfExpr, SchemaTypeFieldsOfExpr, SchemaTypeIntersectExpr, SchemaTypeKeyOfExpr, SchemaTypeMaybeAbsentExpr, SchemaTypeMergeRecordsExpr, SchemaTypeNeverExpr, SchemaTypeNullableExpr, SchemaTypeOmitFieldsExpr, SchemaTypeOpaqueHostExpr, SchemaTypePartialFieldsExpr, SchemaTypePickFieldsExpr, SchemaTypeRecordExpr, SchemaTypeRefineExpr, SchemaTypeRequiredFieldsExpr, SchemaTypeTaggedUnionExpr, SchemaTypeTerm, SchemaTypeTermDefinitionValidationResult, SchemaTypeTupleExpr, SchemaTypeUnknownExpr, SchemaTypeValueOfExpr, SchemaTypeVariableExpr, SchemaVariantSelector, SemanticProvider, StandardConstraintBound, StandardConstraintDefinition, StandardConstraintInterval, StandardConstraintOwner, StandardConstraintProfile, StandardConstraintSatisfiability, StandardProviderContext, StandardSchemaOperationResult, StandardSemanticDefinition, StandardSemanticRelation, StandardSemanticResolution, StandardVocabularyRegistry, StaticSchemaRegistry, StaticSchemaRegistryEntry, StructuredOperationChannelDefinition, StructuredOperationContainerDefinition, StructuredOperationContainerDefinitionValidationResult, StructuredOperationDefinition, StructuredOperationDefinitionValidationResult, StructuredOperationPayloadDefinition, TypeInterpreterContext, TypeInterpreterDiagnostic, TypeInterpreterPath, TypeInterpreterResult, TypeInterpreterStatus, TypeTermRelationContext, TypeVariableConstraint, TypeVariableSolverContext, TypeVariableSolverInput, TypeVariableSolverIssue, TypeVariableSolverResult, buildStandardConstraintProfile, checkOperationRelation, checkSchemaAssignability, checkSchemaRelation, checkTypeTermRelation, classifySemanticPath, createStandardRelationContext, evaluateExpression, evaluateSchemaTypeTerm, exactRationalFromFiniteNumber, exactRationalIsIntegerMultiple, expression_d_exports as expression, formatExactRational, greatestCommonDivisorRationals, intersectStandardSchemas, isExtensionSemanticPath, isStandardConstraintOwner, isStandardSemanticNamespace, isStructuredOperationContainerDefinition, isStructuredOperationDefinition, leastCommonMultipleRationals, pathKey, refineStandardSchema, reportOperationCompatibility, reportSchemaCompatibility, resolveOperationClosure, resolveOperationClosureAsync, resolveSchemaReferences, resolveSchemaReferencesAsync, schema_d_exports as schema, solveTypeVariables, standardConstraintProvider, standardConstraintRegistry, standardConstraintTarget, standardPayloadContext, standardRelationContext, standardSchemaSatisfiability, standardSemanticProvider, standardSemanticRegistry, standardVocabularyProvider, standardVocabularyRegistry, validateOperationContainerDefinition, validateOperationDefinition, validatePayload, validateSchemaNodeDefinition, validateSchemaTypeExprDefinition, validateSchemaTypeTermDefinition, validateStructuredOperationContainerDefinition, validateStructuredOperationDefinition };
|
package/dist/index.js
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
import { a as STANDARD_CONSTRAINT_PATH_LIST, i as STANDARD_CONSTRAINT_PATHS, n as STANDARD_SEMANTIC_DEFINITIONS, o as STANDARD_SEMANTIC_PATHS, r as STANDARD_SEMANTIC_RELATIONS, s as STANDARD_SEMANTIC_PATH_LIST, t as STANDARD_CONSTRAINT_DEFINITIONS } from "./standard-
|
|
1
|
+
import { a as STANDARD_CONSTRAINT_PATH_LIST, i as STANDARD_CONSTRAINT_PATHS, n as STANDARD_SEMANTIC_DEFINITIONS, o as STANDARD_SEMANTIC_PATHS, r as STANDARD_SEMANTIC_RELATIONS, s as STANDARD_SEMANTIC_PATH_LIST, t as STANDARD_CONSTRAINT_DEFINITIONS } from "./standard-BGMgbbEQ.js";
|
|
2
2
|
import "./spec/index.js";
|
|
3
|
-
import { c as validateOperationContainerDefinition, d as validateStructuredOperationDefinition, f as validateSchemaNodeDefinition, l as validateOperationDefinition, n as validateSchemaTypeTermDefinition, o as isStructuredOperationContainerDefinition, s as isStructuredOperationDefinition, t as validateSchemaTypeExprDefinition, u as validateStructuredOperationContainerDefinition } from "./definition-
|
|
4
|
-
import { validatePayload
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { n as
|
|
3
|
+
import { c as validateOperationContainerDefinition, d as validateStructuredOperationDefinition, f as validateSchemaNodeDefinition, l as validateOperationDefinition, n as validateSchemaTypeTermDefinition, o as isStructuredOperationContainerDefinition, s as isStructuredOperationDefinition, t as validateSchemaTypeExprDefinition, u as validateStructuredOperationContainerDefinition } from "./definition-BH_LzXGc.js";
|
|
4
|
+
import { validatePayload } from "./payload/index.js";
|
|
5
|
+
import { n as checkSchemaAssignability, r as checkSchemaRelation, t as checkOperationRelation } from "./relations-QtnCRW9x.js";
|
|
6
|
+
import { reportOperationCompatibility, reportSchemaCompatibility } from "./compatibility/index.js";
|
|
7
|
+
import { i as checkTypeTermRelation, n as evaluateExpression, r as evaluateSchemaTypeTerm, t as solveTypeVariables } from "./type-interpreter-BA8gcLUU.js";
|
|
8
|
+
import { resolveOperationClosure, resolveOperationClosureAsync, resolveSchemaReferences, resolveSchemaReferencesAsync } from "./resolve/index.js";
|
|
9
|
+
import { n as schema_exports, t as expression_exports } from "./authoring-DyJNYs5o.js";
|
|
8
10
|
import { DEFAULT_EXACT_RATIONAL_MAX_BITS, STANDARD_CONSTRAINT_DEFINITION_MAP, STANDARD_SEMANTIC_DEFINITION_MAP, buildStandardConstraintProfile, classifySemanticPath, createStandardRelationContext, exactRationalFromFiniteNumber, exactRationalIsIntegerMultiple, formatExactRational, greatestCommonDivisorRationals, intersectStandardSchemas, isExtensionSemanticPath, isStandardConstraintOwner, isStandardSemanticNamespace, leastCommonMultipleRationals, pathKey, refineStandardSchema, standardConstraintProvider, standardConstraintRegistry, standardConstraintTarget, standardPayloadContext, standardRelationContext, standardSchemaSatisfiability, standardSemanticProvider, standardSemanticRegistry, standardVocabularyProvider, standardVocabularyRegistry } from "./standard/index.js";
|
|
9
11
|
|
|
10
|
-
export { DEFAULT_EXACT_RATIONAL_MAX_BITS, STANDARD_CONSTRAINT_DEFINITIONS, STANDARD_CONSTRAINT_DEFINITION_MAP, STANDARD_CONSTRAINT_PATHS, STANDARD_CONSTRAINT_PATH_LIST, STANDARD_SEMANTIC_DEFINITIONS, STANDARD_SEMANTIC_DEFINITION_MAP, STANDARD_SEMANTIC_PATHS, STANDARD_SEMANTIC_PATH_LIST, STANDARD_SEMANTIC_RELATIONS, buildStandardConstraintProfile, checkOperationRelation,
|
|
12
|
+
export { DEFAULT_EXACT_RATIONAL_MAX_BITS, STANDARD_CONSTRAINT_DEFINITIONS, STANDARD_CONSTRAINT_DEFINITION_MAP, STANDARD_CONSTRAINT_PATHS, STANDARD_CONSTRAINT_PATH_LIST, STANDARD_SEMANTIC_DEFINITIONS, STANDARD_SEMANTIC_DEFINITION_MAP, STANDARD_SEMANTIC_PATHS, STANDARD_SEMANTIC_PATH_LIST, STANDARD_SEMANTIC_RELATIONS, buildStandardConstraintProfile, checkOperationRelation, checkSchemaAssignability, checkSchemaRelation, checkTypeTermRelation, classifySemanticPath, createStandardRelationContext, evaluateExpression, evaluateSchemaTypeTerm, exactRationalFromFiniteNumber, exactRationalIsIntegerMultiple, expression_exports as expression, formatExactRational, greatestCommonDivisorRationals, intersectStandardSchemas, isExtensionSemanticPath, isStandardConstraintOwner, isStandardSemanticNamespace, isStructuredOperationContainerDefinition, isStructuredOperationDefinition, leastCommonMultipleRationals, pathKey, refineStandardSchema, reportOperationCompatibility, reportSchemaCompatibility, resolveOperationClosure, resolveOperationClosureAsync, resolveSchemaReferences, resolveSchemaReferencesAsync, schema_exports as schema, solveTypeVariables, standardConstraintProvider, standardConstraintRegistry, standardConstraintTarget, standardPayloadContext, standardRelationContext, standardSchemaSatisfiability, standardSemanticProvider, standardSemanticRegistry, standardVocabularyProvider, standardVocabularyRegistry, validateOperationContainerDefinition, validateOperationDefinition, validatePayload, validateSchemaNodeDefinition, validateSchemaTypeExprDefinition, validateSchemaTypeTermDefinition, validateStructuredOperationContainerDefinition, validateStructuredOperationDefinition };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { at as SchemaConstraint, ct as SchemaNode, dt as SchemaNumberNode, et as JsonValue, vt as SchemaStringNode } from "../../index-i7Au-FQ6.cjs";
|
|
2
2
|
import { StandardJSONSchemaV1, StandardJSONSchemaV1 as StandardJSONSchemaV1$1 } from "@standard-schema/spec";
|
|
3
3
|
|
|
4
4
|
//#region src/integrations/json-schema/index.d.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { at as SchemaConstraint, ct as SchemaNode, dt as SchemaNumberNode, et as JsonValue, vt as SchemaStringNode } from "../../index-1sDuqu05.js";
|
|
2
2
|
import { StandardJSONSchemaV1, StandardJSONSchemaV1 as StandardJSONSchemaV1$1 } from "@standard-schema/spec";
|
|
3
3
|
|
|
4
4
|
//#region src/integrations/json-schema/index.d.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as STANDARD_CONSTRAINT_PATHS, o as STANDARD_SEMANTIC_PATHS } from "../../standard-
|
|
1
|
+
import { i as STANDARD_CONSTRAINT_PATHS, o as STANDARD_SEMANTIC_PATHS } from "../../standard-BGMgbbEQ.js";
|
|
2
2
|
import { pathKey } from "../../standard/index.js";
|
|
3
3
|
|
|
4
4
|
//#region src/integrations/json-schema/index.ts
|
|
@@ -10,8 +10,8 @@ function toStandardIssue(issue) {
|
|
|
10
10
|
}
|
|
11
11
|
/**
|
|
12
12
|
* Expose a serializable SchemaIR declaration through the Standard Schema
|
|
13
|
-
* runtime protocol. Validation is
|
|
14
|
-
*
|
|
13
|
+
* runtime protocol. Validation is synchronous; load external refs and policy
|
|
14
|
+
* data before constructing the adapter.
|
|
15
15
|
*
|
|
16
16
|
* The adapter never transforms a payload and intentionally does not expose
|
|
17
17
|
* `~standard.types` because the declaration is runtime data.
|
|
@@ -20,8 +20,8 @@ function schemaIRToStandardSchema(schema, options = {}) {
|
|
|
20
20
|
return { "~standard": {
|
|
21
21
|
version: 1,
|
|
22
22
|
vendor: "schemair",
|
|
23
|
-
validate:
|
|
24
|
-
const result =
|
|
23
|
+
validate: (value) => {
|
|
24
|
+
const result = require_payload_index.validatePayload(value, schema, options);
|
|
25
25
|
if (result.status === "accepted") return { value };
|
|
26
26
|
return { issues: result.issues.map(toStandardIssue) };
|
|
27
27
|
}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { ct as SchemaNode } from "../../index-
|
|
2
|
-
import {
|
|
1
|
+
import { ct as SchemaNode } from "../../index-i7Au-FQ6.cjs";
|
|
2
|
+
import { s as PayloadValidationContext } from "../../index-CzNxjqVg.cjs";
|
|
3
3
|
import { StandardSchemaV1, StandardSchemaV1 as StandardSchemaV1$1 } from "@standard-schema/spec";
|
|
4
4
|
|
|
5
5
|
//#region src/integrations/standard-schema/index.d.ts
|
|
6
6
|
/** Options captured by a Standard Schema adapter at construction time. */
|
|
7
|
-
type StandardSchemaAdapterOptions =
|
|
7
|
+
type StandardSchemaAdapterOptions = PayloadValidationContext;
|
|
8
8
|
/** Runtime-only Standard Schema surface for a dynamic SchemaIR declaration. */
|
|
9
9
|
type SchemaIRStandardSchema = {
|
|
10
10
|
readonly '~standard': Omit<StandardSchemaV1$1.Props, 'types'>;
|
|
11
11
|
};
|
|
12
12
|
/**
|
|
13
13
|
* Expose a serializable SchemaIR declaration through the Standard Schema
|
|
14
|
-
* runtime protocol. Validation is
|
|
15
|
-
*
|
|
14
|
+
* runtime protocol. Validation is synchronous; load external refs and policy
|
|
15
|
+
* data before constructing the adapter.
|
|
16
16
|
*
|
|
17
17
|
* The adapter never transforms a payload and intentionally does not expose
|
|
18
18
|
* `~standard.types` because the declaration is runtime data.
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { ct as SchemaNode } from "../../index-
|
|
2
|
-
import {
|
|
1
|
+
import { ct as SchemaNode } from "../../index-1sDuqu05.js";
|
|
2
|
+
import { s as PayloadValidationContext } from "../../index-hrcM9oJe.js";
|
|
3
3
|
import { StandardSchemaV1, StandardSchemaV1 as StandardSchemaV1$1 } from "@standard-schema/spec";
|
|
4
4
|
|
|
5
5
|
//#region src/integrations/standard-schema/index.d.ts
|
|
6
6
|
/** Options captured by a Standard Schema adapter at construction time. */
|
|
7
|
-
type StandardSchemaAdapterOptions =
|
|
7
|
+
type StandardSchemaAdapterOptions = PayloadValidationContext;
|
|
8
8
|
/** Runtime-only Standard Schema surface for a dynamic SchemaIR declaration. */
|
|
9
9
|
type SchemaIRStandardSchema = {
|
|
10
10
|
readonly '~standard': Omit<StandardSchemaV1$1.Props, 'types'>;
|
|
11
11
|
};
|
|
12
12
|
/**
|
|
13
13
|
* Expose a serializable SchemaIR declaration through the Standard Schema
|
|
14
|
-
* runtime protocol. Validation is
|
|
15
|
-
*
|
|
14
|
+
* runtime protocol. Validation is synchronous; load external refs and policy
|
|
15
|
+
* data before constructing the adapter.
|
|
16
16
|
*
|
|
17
17
|
* The adapter never transforms a payload and intentionally does not expose
|
|
18
18
|
* `~standard.types` because the declaration is runtime data.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { validatePayload } from "../../payload/index.js";
|
|
2
2
|
|
|
3
3
|
//#region src/integrations/standard-schema/index.ts
|
|
4
4
|
function toStandardIssue(issue) {
|
|
@@ -10,8 +10,8 @@ function toStandardIssue(issue) {
|
|
|
10
10
|
}
|
|
11
11
|
/**
|
|
12
12
|
* Expose a serializable SchemaIR declaration through the Standard Schema
|
|
13
|
-
* runtime protocol. Validation is
|
|
14
|
-
*
|
|
13
|
+
* runtime protocol. Validation is synchronous; load external refs and policy
|
|
14
|
+
* data before constructing the adapter.
|
|
15
15
|
*
|
|
16
16
|
* The adapter never transforms a payload and intentionally does not expose
|
|
17
17
|
* `~standard.types` because the declaration is runtime data.
|
|
@@ -20,8 +20,8 @@ function schemaIRToStandardSchema(schema, options = {}) {
|
|
|
20
20
|
return { "~standard": {
|
|
21
21
|
version: 1,
|
|
22
22
|
vendor: "schemair",
|
|
23
|
-
validate:
|
|
24
|
-
const result =
|
|
23
|
+
validate: (value) => {
|
|
24
|
+
const result = validatePayload(value, schema, options);
|
|
25
25
|
if (result.status === "accepted") return { value };
|
|
26
26
|
return { issues: result.issues.map(toStandardIssue) };
|
|
27
27
|
}
|
package/dist/payload/index.cjs
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
const require_definition = require('../definition-BLLBpLKv.cjs');
|
|
2
|
+
const require_schema_ref_key = require('../schema-ref-key-BHVFVfj1.cjs');
|
|
2
3
|
|
|
3
4
|
//#region src/payload/validator.ts
|
|
4
5
|
function hasOwn(value, key) {
|
|
@@ -38,22 +39,19 @@ function hasAccessorOrSymbol(value) {
|
|
|
38
39
|
function isPromiseLike(value) {
|
|
39
40
|
return (typeof value === "object" && value !== null || typeof value === "function") && typeof value.then === "function";
|
|
40
41
|
}
|
|
41
|
-
function chain(previous, next) {
|
|
42
|
-
return isPromiseLike(previous) ? Promise.resolve(previous).then(() => next()) : next();
|
|
43
|
-
}
|
|
44
42
|
var PayloadValidator = class {
|
|
45
43
|
issues = [];
|
|
46
44
|
activePayload = /* @__PURE__ */ new WeakSet();
|
|
47
45
|
activeRefs = /* @__PURE__ */ new Set();
|
|
46
|
+
refIndex;
|
|
48
47
|
rootSchema;
|
|
49
|
-
constructor(context, rootSchema
|
|
48
|
+
constructor(context, rootSchema) {
|
|
50
49
|
this.context = context;
|
|
51
|
-
this.allowAsync = allowAsync;
|
|
52
50
|
this.rootSchema = rootSchema;
|
|
51
|
+
this.refIndex = require_schema_ref_key.indexSchemaRefs(context.refs);
|
|
53
52
|
}
|
|
54
53
|
run(value) {
|
|
55
|
-
|
|
56
|
-
if (isPromiseLike(validation)) return Promise.resolve(validation).then(() => this.result());
|
|
54
|
+
this.validateNode(value, this.rootSchema, [], this.rootSchema);
|
|
57
55
|
return this.result();
|
|
58
56
|
}
|
|
59
57
|
result() {
|
|
@@ -93,35 +91,29 @@ var PayloadValidator = class {
|
|
|
93
91
|
}
|
|
94
92
|
validateNode(value, schema, path, root) {
|
|
95
93
|
switch (schema.kind) {
|
|
96
|
-
case "primitive":
|
|
94
|
+
case "primitive":
|
|
97
95
|
if (!this.matchesPrimitive(value, schema.name)) {
|
|
98
96
|
this.reject(path, "type", `expected ${schema.name}`);
|
|
99
97
|
return;
|
|
100
98
|
}
|
|
101
|
-
|
|
102
|
-
if ((schema.name === "string" || schema.name === "number") && schema.
|
|
103
|
-
|
|
104
|
-
return pending;
|
|
105
|
-
}
|
|
99
|
+
if ((schema.name === "string" || schema.name === "number") && schema.semanticPath) this.runSemantic(schema.semanticPath, value, schema, path, root);
|
|
100
|
+
if ((schema.name === "string" || schema.name === "number") && schema.constraints) this.runConstraints(schema.constraints, value, schema, path, root);
|
|
101
|
+
return;
|
|
106
102
|
case "literal":
|
|
107
103
|
if (!isLiteral(value) || !equalLiteral(value, schema.literal)) this.reject(path, "literal", "value does not match literal");
|
|
108
104
|
return;
|
|
109
105
|
case "record": return this.validateRecord(value, schema, path, root);
|
|
110
|
-
case "array":
|
|
106
|
+
case "array":
|
|
111
107
|
if (!isDenseArray(value)) {
|
|
112
108
|
this.reject(path, "array", "expected a dense array");
|
|
113
109
|
return;
|
|
114
110
|
}
|
|
115
111
|
if (!this.enterPayload(value, path)) return;
|
|
116
|
-
let
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
});
|
|
122
|
-
return pending;
|
|
123
|
-
}
|
|
124
|
-
case "tuple": {
|
|
112
|
+
for (let index = 0; index < value.length; index += 1) this.validateNode(value[index], schema.elementSchema, [...path, index], root);
|
|
113
|
+
this.leavePayload(value);
|
|
114
|
+
if (schema.constraints) this.runConstraints(schema.constraints, value, schema, path, root);
|
|
115
|
+
return;
|
|
116
|
+
case "tuple":
|
|
125
117
|
if (!isDenseArray(value)) {
|
|
126
118
|
this.reject(path, "tuple", "expected a dense array");
|
|
127
119
|
return;
|
|
@@ -131,15 +123,12 @@ var PayloadValidator = class {
|
|
|
131
123
|
return;
|
|
132
124
|
}
|
|
133
125
|
if (!this.enterPayload(value, path)) return;
|
|
134
|
-
let pending = void 0;
|
|
135
126
|
for (let index = 0; index < schema.elementSchemas.length; index += 1) {
|
|
136
127
|
const elementSchema = schema.elementSchemas[index];
|
|
137
|
-
if (elementSchema)
|
|
128
|
+
if (elementSchema) this.validateNode(value[index], elementSchema, [...path, index], root);
|
|
138
129
|
}
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
});
|
|
142
|
-
}
|
|
130
|
+
this.leavePayload(value);
|
|
131
|
+
return;
|
|
143
132
|
case "literalUnion":
|
|
144
133
|
if (!isLiteral(value) || !schema.values.some((candidate) => equalLiteral(candidate, value))) this.reject(path, "literal-union", "value is not one of the allowed literals");
|
|
145
134
|
return;
|
|
@@ -165,26 +154,23 @@ var PayloadValidator = class {
|
|
|
165
154
|
}
|
|
166
155
|
if (!this.enterPayload(value, path)) return;
|
|
167
156
|
const fields = new Map(schema.fields.map((field) => [field.key, field]));
|
|
168
|
-
let pending = void 0;
|
|
169
157
|
for (const field of schema.fields) {
|
|
170
158
|
if (!hasOwn(value, field.key)) {
|
|
171
159
|
if (field.required === true) this.reject([...path, field.key], "required", "required field is missing");
|
|
172
160
|
continue;
|
|
173
161
|
}
|
|
174
|
-
|
|
162
|
+
this.validateNode(value[field.key], field.schema, [...path, field.key], root);
|
|
175
163
|
}
|
|
176
164
|
for (const key of Object.keys(value)) {
|
|
177
165
|
if (fields.has(key)) continue;
|
|
178
166
|
if (!hasOwn(schema, "additionalFields")) this.reject([...path, key], "additional-field", "unknown field is not allowed");
|
|
179
167
|
else if (schema.additionalFields !== true) {
|
|
180
168
|
const additionalSchema = schema.additionalFields;
|
|
181
|
-
if (additionalSchema)
|
|
169
|
+
if (additionalSchema) this.validateNode(value[key], additionalSchema, [...path, key], root);
|
|
182
170
|
} else if (!this.isJsonValue(value[key], /* @__PURE__ */ new WeakSet())) this.reject([...path, key], "additional-value", "additional field must be JSON-compatible");
|
|
183
171
|
}
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
return schema.constraints ? this.runConstraints(schema.constraints, value, schema, path, root) : void 0;
|
|
187
|
-
});
|
|
172
|
+
this.leavePayload(value);
|
|
173
|
+
if (schema.constraints) this.runConstraints(schema.constraints, value, schema, path, root);
|
|
188
174
|
}
|
|
189
175
|
validateTaggedUnion(value, schema, path, root) {
|
|
190
176
|
if (!isPlainRecord(value) || hasAccessorOrSymbol(value)) {
|
|
@@ -207,15 +193,18 @@ var PayloadValidator = class {
|
|
|
207
193
|
return this.validateNode(value, variant.schema, path, root);
|
|
208
194
|
}
|
|
209
195
|
validateRef(value, schema, path, root) {
|
|
210
|
-
|
|
211
|
-
this.unsupported(path, "ref.resolver", "refPath requires an explicit resolver");
|
|
212
|
-
return;
|
|
213
|
-
}
|
|
214
|
-
const refKey = schema.refPath.join("\0");
|
|
196
|
+
const refKey = require_schema_ref_key.schemaRefKey(schema.refPath);
|
|
215
197
|
if (this.activeRefs.has(refKey)) {
|
|
216
198
|
this.unknown(path, "ref.cycle", "refPath resolution cycle could not be determined");
|
|
217
199
|
return;
|
|
218
200
|
}
|
|
201
|
+
const materialized = this.refIndex.get(refKey);
|
|
202
|
+
if (materialized !== void 0) return this.handleResolution(materialized, value, path, root);
|
|
203
|
+
if (!this.context.resolveRef) {
|
|
204
|
+
if (this.context.refs !== void 0) this.unknown(path, "ref.unresolved", "refPath is not present in the resolved environment");
|
|
205
|
+
else this.unsupported(path, "ref.resolver", "refPath requires an explicit resolver");
|
|
206
|
+
return;
|
|
207
|
+
}
|
|
219
208
|
this.activeRefs.add(refKey);
|
|
220
209
|
let resolved;
|
|
221
210
|
try {
|
|
@@ -231,19 +220,15 @@ var PayloadValidator = class {
|
|
|
231
220
|
return;
|
|
232
221
|
}
|
|
233
222
|
if (isPromiseLike(resolved)) {
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
223
|
+
this.unsupported(path, "ref.async", "synchronous validation requires a synchronous ref resolver");
|
|
224
|
+
this.activeRefs.delete(refKey);
|
|
225
|
+
return;
|
|
226
|
+
}
|
|
227
|
+
try {
|
|
228
|
+
this.handleResolution(resolved, value, path, root);
|
|
229
|
+
} finally {
|
|
230
|
+
this.activeRefs.delete(refKey);
|
|
242
231
|
}
|
|
243
|
-
const handled = this.handleResolution(resolved, value, path, root);
|
|
244
|
-
if (isPromiseLike(handled)) return Promise.resolve(handled).finally(() => this.activeRefs.delete(refKey));
|
|
245
|
-
this.activeRefs.delete(refKey);
|
|
246
|
-
return handled;
|
|
247
232
|
}
|
|
248
233
|
handleResolution(resolved, value, path, root) {
|
|
249
234
|
if (resolved === void 0) {
|
|
@@ -279,19 +264,17 @@ var PayloadValidator = class {
|
|
|
279
264
|
}), path, "semantic");
|
|
280
265
|
}
|
|
281
266
|
runConstraints(constraints, value, schema, path, root) {
|
|
282
|
-
let pending = void 0;
|
|
283
267
|
for (const constraint of constraints) {
|
|
284
268
|
if (!this.context.constraintProvider) {
|
|
285
269
|
this.unsupported(path, "constraint.provider", `constraint path ${constraint.constraintPath.join("/")} has no provider`);
|
|
286
270
|
continue;
|
|
287
271
|
}
|
|
288
|
-
|
|
272
|
+
this.applyProvider(() => this.context.constraintProvider(constraint.constraintPath, constraint.args, value, {
|
|
289
273
|
path,
|
|
290
274
|
schema,
|
|
291
275
|
rootSchema: root
|
|
292
|
-
}), path, "constraint")
|
|
276
|
+
}), path, "constraint");
|
|
293
277
|
}
|
|
294
|
-
return pending;
|
|
295
278
|
}
|
|
296
279
|
applyProvider(call, path, kind) {
|
|
297
280
|
let result;
|
|
@@ -302,13 +285,8 @@ var PayloadValidator = class {
|
|
|
302
285
|
return;
|
|
303
286
|
}
|
|
304
287
|
if (isPromiseLike(result)) {
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
return;
|
|
308
|
-
}
|
|
309
|
-
return Promise.resolve(result).then((decision) => this.applyDecision(decision, path, kind)).catch((error) => {
|
|
310
|
-
this.unknown(path, `${kind}.error`, `${kind} provider failed: ${error instanceof Error ? error.message : String(error)}`);
|
|
311
|
-
});
|
|
288
|
+
this.unsupported(path, `${kind}.async`, `synchronous validation requires a synchronous ${kind} provider`);
|
|
289
|
+
return;
|
|
312
290
|
}
|
|
313
291
|
return this.applyDecision(result, path, kind);
|
|
314
292
|
}
|
|
@@ -368,23 +346,8 @@ function validateDefinition(schema) {
|
|
|
368
346
|
function validatePayload(value, schema, context = {}) {
|
|
369
347
|
const validated = validateDefinition(schema);
|
|
370
348
|
if ("status" in validated) return validated;
|
|
371
|
-
|
|
372
|
-
if (isPromiseLike(result)) return {
|
|
373
|
-
status: "unknown",
|
|
374
|
-
issues: [{
|
|
375
|
-
code: "payload.unknown.async",
|
|
376
|
-
path: [],
|
|
377
|
-
message: "synchronous payload validation produced an asynchronous result"
|
|
378
|
-
}]
|
|
379
|
-
};
|
|
380
|
-
return result;
|
|
381
|
-
}
|
|
382
|
-
async function validatePayloadAsync(value, schema, context = {}) {
|
|
383
|
-
const validated = validateDefinition(schema);
|
|
384
|
-
if ("status" in validated) return validated;
|
|
385
|
-
return Promise.resolve(new PayloadValidator(context, validated, true).run(value));
|
|
349
|
+
return new PayloadValidator(context, validated).run(value);
|
|
386
350
|
}
|
|
387
351
|
|
|
388
352
|
//#endregion
|
|
389
|
-
exports.validatePayload = validatePayload;
|
|
390
|
-
exports.validatePayloadAsync = validatePayloadAsync;
|
|
353
|
+
exports.validatePayload = validatePayload;
|
package/dist/payload/index.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { a as PayloadResolution, c as PayloadValidationDiagnostic, d as validatePayload, i as PayloadProviderDecision, l as PayloadValidationResult, n as PayloadPath, o as PayloadResolutionContext, r as PayloadProviderContext, s as PayloadValidationContext, t as ConstraintProvider, u as SemanticProvider } from "../index-CzNxjqVg.cjs";
|
|
2
|
+
export { ConstraintProvider, PayloadPath, PayloadProviderContext, PayloadProviderDecision, PayloadResolution, PayloadResolutionContext, PayloadValidationContext, PayloadValidationDiagnostic, PayloadValidationResult, SemanticProvider, validatePayload };
|
package/dist/payload/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { a as PayloadResolution, c as PayloadValidationDiagnostic, d as validatePayload, i as PayloadProviderDecision, l as PayloadValidationResult, n as PayloadPath, o as PayloadResolutionContext, r as PayloadProviderContext, s as PayloadValidationContext, t as ConstraintProvider, u as SemanticProvider } from "../index-hrcM9oJe.js";
|
|
2
|
+
export { ConstraintProvider, PayloadPath, PayloadProviderContext, PayloadProviderDecision, PayloadResolution, PayloadResolutionContext, PayloadValidationContext, PayloadValidationDiagnostic, PayloadValidationResult, SemanticProvider, validatePayload };
|