schema-truth 0.8.12 → 0.8.13

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.
@@ -1,4 +1,4 @@
1
- import { bt as normalizeTypes, c as sanitizeSchema, yt as makeSafeKey } from "./helper-DRuGda2P.js";
1
+ import { St as normalizeTypes, c as sanitizeSchema, xt as makeSafeKey } from "./helper-ByoddrXL.js";
2
2
  // src/generator/ajv/integer.ts
3
3
  /**
4
4
  * Reconstruct a draft-07 integer schema. `minimum` is the only numeric keyword
package/dist/ajv.js CHANGED
@@ -1 +1 @@
1
- export { t as schemaToAjv } from "./ajv-91NQz0R7.js";
1
+ export { t as schemaToAjv } from "./ajv-DjHkU79T.js";
@@ -1,4 +1,4 @@
1
- import { A as unionPrimitiveTypes, An as QUOTE_OR_BACKSLASH_PATTERN, Bt as isNullTypeMember, C as isNullMatchedFirst, D as ownProperties, E as numberWirePattern, F as regexSource, G as planDocument, Gt as isQuoted, H as definitionsOf, Ht as isObjectPrototypeProperty, It as isArktypeDefinition, J as schemaNamer, Jt as isSchemaObject, Lt as isComposite, M as wireNullText, Mt as hasFixedLength, N as wireNumericKind, O as stringboolPattern, P as formatPattern, Q as enumWithoutWrappedNull, Rn as UNSAFE_GENERATED_MARKER, Rt as isDeepLocalPointer, S as integerWirePattern, T as isPrimitiveUnion, U as emitOptionsOf, Vt as isNullable, W as missingDefinitionComment, Xt as isStringWireLocation, Y as discriminatedMembers, Yt as isShapelessMember, _ as valueListLiteral, at as findCodeExtensionKeysInSchema, bt as normalizeTypes, c as sanitizeSchema, ct as constraintPredicate, d as hasParameterSerialization, et as itemsSchemaOf, f as parameterReaders, ft as regexLiteral, g as notPredicate, h as isBigintFormat, i as isEvaluatedKeyExpression, in as DEFAULT_ROOT_NAME, it as callbackType, j as wireArrayOnce, jt as hasFixedItemCount, k as stringboolTruthyPattern, kt as hasCombinator, lt as foldAllOfMembers, m as withoutParameterSerialization, nt as arktypeWrap, p as propertyEmitOptions, pn as INTEGER_TEXT_PATTERN, q as rootNameOf, qt as isRootRef, r as evaluatedProperties, rt as callbackReturn, sn as DEFINITION_REF_PREFIXES, st as constraintMessage, tt as arktypePreprocess, u as withPolymorphicBases, ut as isKeywordOnlyMember, v as hoistNestedRefs, vt as issueMessageExpression, w as isNullTextRead, x as impliedWireType, xn as NUMBER_RANGES, xt as resolveOpenAPIRef, yt as makeSafeKey } from "./helper-DRuGda2P.js";
1
+ import { A as unionPrimitiveTypes, Bn as UNSAFE_GENERATED_MARKER, Bt as isDeepLocalPointer, C as isNullMatchedFirst, Cn as NUMBER_RANGES, Ct as resolveOpenAPIRef, D as ownProperties, E as numberWirePattern, F as regexSource, G as planDocument, H as definitionsOf, Ht as isNullTypeMember, J as schemaNamer, M as wireNullText, Mn as QUOTE_OR_BACKSLASH_PATTERN, N as wireNumericKind, Nt as hasFixedItemCount, O as stringboolPattern, P as formatPattern, Pt as hasFixedLength, Q as enumWithoutWrappedNull, Qt as isStringWireLocation, Rt as isArktypeDefinition, S as integerWirePattern, St as normalizeTypes, T as isPrimitiveUnion, U as emitOptionsOf, Ut as isNullable, W as missingDefinitionComment, Wt as isObjectPrototypeProperty, Xt as isSchemaObject, Y as discriminatedMembers, Yt as isRootRef, Zt as isShapelessMember, _ as valueListLiteral, at as callbackType, bt as issueMessageExpression, c as sanitizeSchema, d as hasParameterSerialization, dt as foldAllOfMembers, et as itemsSchemaOf, f as parameterReaders, ft as isKeywordOnlyMember, g as notPredicate, h as isBigintFormat, hn as INTEGER_TEXT_PATTERN, i as isEvaluatedKeyExpression, it as callbackReturn, j as wireArrayOnce, jt as hasCombinator, k as stringboolTruthyPattern, ln as DEFINITION_REF_PREFIXES, lt as constraintMessage, m as withoutParameterSerialization, mt as regexLiteral, nt as arktypeUnionLimit, on as DEFAULT_ROOT_NAME, ot as dslUnionMembers, p as propertyEmitOptions, q as rootNameOf, qt as isQuoted, r as evaluatedProperties, rt as arktypeWrap, st as findCodeExtensionKeysInSchema, tt as arktypePreprocess, u as withPolymorphicBases, ut as constraintPredicate, v as hoistNestedRefs, w as isNullTextRead, x as impliedWireType, xt as makeSafeKey, zt as isComposite } from "./helper-ByoddrXL.js";
2
2
  import { n as bigintCall, r as bigintLiteral, t as bigintBounds } from "./bigint-CkHij6xv.js";
3
3
  // src/generator/arktype/number.ts
4
4
  /** The comparators of a numeric node: `>= 1`, `< 5`, `% 2`. */
@@ -201,7 +201,7 @@ function isDslLiteralUnion(members) {
201
201
  }
202
202
  /**
203
203
  * The ArkType definition of an enum: a `"a | b | c"` string union, or
204
- * `type.enumerated(a, b, c)` past {@link ARKTYPE_STRING_UNION_LIMIT} members. The members of an
204
+ * `type.enumerated(a, b, c)` past the members {@link arktypeUnionLimit} allows. The members of an
205
205
  * int64 / uint64 enum are bigint literals, as the value they match is.
206
206
  */
207
207
  function _enum(schema) {
@@ -221,7 +221,7 @@ function _enum(schema) {
221
221
  return expr;
222
222
  }
223
223
  const members = schema.enum.map((v) => lit(v, isBigint));
224
- if (members.length > 16) return `type.enumerated(${members.join(",")})${describe}`;
224
+ if (members.length > arktypeUnionLimit(members)) return `type.enumerated(${members.join(",")})${describe}`;
225
225
  const expr = `"${members.join(" | ")}"`;
226
226
  if (errorMessage) return `type(${expr})${describe}`;
227
227
  return expr;
@@ -475,16 +475,17 @@ function chunksOf(items, size) {
475
475
  }
476
476
  /**
477
477
  * A union of ArkType expressions. Quoted members join into one string-DSL union, unless
478
- * there are more than {@link ARKTYPE_STRING_UNION_LIMIT} of them: then literals become
478
+ * it has more members than {@link arktypeUnionLimit} allows: then literals become
479
479
  * `type.enumerated(...)` and anything else is joined in groups, so no single string is
480
480
  * long enough to exceed TypeScript's instantiation depth.
481
481
  */
482
482
  function unionStr(schemas, inScope = false) {
483
483
  if (!schemas.every(isQuoted)) return schemas.reduce(combine("|", inScope));
484
- const members = schemas.map((s) => s.slice(1, -1));
485
- if (members.length <= 16) return `"${members.join(" | ")}"`;
484
+ const members = schemas.flatMap((s) => dslUnionMembers(s.slice(1, -1)));
485
+ const limit = arktypeUnionLimit(members);
486
+ if (members.length <= limit) return `"${members.join(" | ")}"`;
486
487
  if (isDslLiteralUnion(members)) return `type.enumerated(${members.join(",")})`;
487
- return chunksOf(members, 16).map((group) => `"${group.join(" | ")}"`).reduce(combine("|", inScope));
488
+ return chunksOf(members, limit).map((group) => `"${group.join(" | ")}"`).reduce(combine("|", inScope));
488
489
  }
489
490
  function intersectionStr(schemas, inScope = false) {
490
491
  return schemas.every(isQuoted) ? `"${schemas.map((s) => s.slice(1, -1)).join(" & ")}"` : schemas.reduce(combine("&", inScope));
@@ -744,8 +745,8 @@ function node(schema, rootName, isArktype, options) {
744
745
  const unevaluatedItems = schema.unevaluatedItems;
745
746
  const baseTuple = arktypeWrap$1(wireArray(describeWithMessage(isSchemaObject(unevaluatedItems) ? (() => {
746
747
  const rest = arktype(unevaluatedItems, rootName, isArktype, options);
747
- const restInner = isQuoted(rest) ? rest.slice(1, -1) : rest;
748
- return `type([${items.join(",")},"...","${restInner}[]"])`;
748
+ const restArray = isQuoted(rest) ? `"${rest.slice(1, -1)}[]"` : isArktypeDefinition(rest) ? `[${rest},"[]"]` : `${rest}.array()`;
749
+ return `type([${items.join(",")},"...",${restArray}])`;
749
750
  })() : `type([${items.join(",")}])`, schema["x-prefixItems-message"])), schema);
750
751
  const unevalItemsMessage = schema["x-unevaluatedItems-message"];
751
752
  return unevaluatedItems === false && unevalItemsMessage ? `${baseTuple}.describe(${JSON.stringify(unevalItemsMessage)})` : baseTuple;
package/dist/arktype.js CHANGED
@@ -1 +1 @@
1
- export { t as schemaToArktype } from "./arktype-Cl_XiSs3.js";
1
+ export { t as schemaToArktype } from "./arktype-CbrtmKWv.js";
package/dist/cli/ajv.js CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
- import { t as schemaToAjv } from "../ajv-91NQz0R7.js";
3
- import { n as version, t as cli } from "../cli-BxbvZp5H.js";
2
+ import { t as schemaToAjv } from "../ajv-DjHkU79T.js";
3
+ import { n as version, t as cli } from "../cli-D_Sr9uXp.js";
4
4
  import * as Effect from "effect/Effect";
5
5
  import * as NodeRuntime from "@effect/platform-node/NodeRuntime";
6
6
  import * as NodeServices from "@effect/platform-node/NodeServices";
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
- import { t as schemaToArktype } from "../arktype-Cl_XiSs3.js";
3
- import { n as version, t as cli } from "../cli-BxbvZp5H.js";
2
+ import { t as schemaToArktype } from "../arktype-CbrtmKWv.js";
3
+ import { n as version, t as cli } from "../cli-D_Sr9uXp.js";
4
4
  import * as Effect from "effect/Effect";
5
5
  import * as NodeRuntime from "@effect/platform-node/NodeRuntime";
6
6
  import * as NodeServices from "@effect/platform-node/NodeServices";
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
- import { t as schemaToEffect } from "../effect-BLTKj8GH.js";
3
- import { n as version, t as cli } from "../cli-BxbvZp5H.js";
2
+ import { t as schemaToEffect } from "../effect-BqLfzMgM.js";
3
+ import { n as version, t as cli } from "../cli-D_Sr9uXp.js";
4
4
  import * as Effect from "effect/Effect";
5
5
  import * as NodeRuntime from "@effect/platform-node/NodeRuntime";
6
6
  import * as NodeServices from "@effect/platform-node/NodeServices";
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
- import { t as schemaToTypebox } from "../typebox-BTCR9bNo.js";
3
- import { n as version, t as cli } from "../cli-BxbvZp5H.js";
2
+ import { t as schemaToTypebox } from "../typebox-DdFjzmqK.js";
3
+ import { n as version, t as cli } from "../cli-D_Sr9uXp.js";
4
4
  import * as Effect from "effect/Effect";
5
5
  import * as NodeRuntime from "@effect/platform-node/NodeRuntime";
6
6
  import * as NodeServices from "@effect/platform-node/NodeServices";
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
- import { t as schemaToValibot } from "../valibot-C1qkFYn6.js";
3
- import { n as version, t as cli } from "../cli-BxbvZp5H.js";
2
+ import { t as schemaToValibot } from "../valibot-Bz-mcsf9.js";
3
+ import { n as version, t as cli } from "../cli-D_Sr9uXp.js";
4
4
  import * as Effect from "effect/Effect";
5
5
  import * as NodeRuntime from "@effect/platform-node/NodeRuntime";
6
6
  import * as NodeServices from "@effect/platform-node/NodeServices";
package/dist/cli/yup.js CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
- import { t as schemaToYup } from "../yup-Cec-EEni.js";
3
- import { n as version, t as cli } from "../cli-BxbvZp5H.js";
2
+ import { t as schemaToYup } from "../yup-rbHu00QS.js";
3
+ import { n as version, t as cli } from "../cli-D_Sr9uXp.js";
4
4
  import * as Effect from "effect/Effect";
5
5
  import * as NodeRuntime from "@effect/platform-node/NodeRuntime";
6
6
  import * as NodeServices from "@effect/platform-node/NodeServices";
package/dist/cli/zod.js CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
- import { t as schemaToZod } from "../zod-CnDLSw9x.js";
3
- import { n as version, t as cli } from "../cli-BxbvZp5H.js";
2
+ import { t as schemaToZod } from "../zod-Cvj9YJY_.js";
3
+ import { n as version, t as cli } from "../cli-D_Sr9uXp.js";
4
4
  import * as Effect from "effect/Effect";
5
5
  import * as NodeRuntime from "@effect/platform-node/NodeRuntime";
6
6
  import * as NodeServices from "@effect/platform-node/NodeServices";
@@ -1,4 +1,4 @@
1
- import { Kt as isRecord } from "./helper-DRuGda2P.js";
1
+ import { Jt as isRecord } from "./helper-ByoddrXL.js";
2
2
  import { i as fmt, n as parseSchemaFile } from "./parser-RBrkz7ZL.js";
3
3
  import * as Effect from "effect/Effect";
4
4
  import path from "node:path";
@@ -9,7 +9,7 @@ import * as Stdio from "effect/Stdio";
9
9
  import "@effect/platform-node/NodeFileSystem";
10
10
  import * as FileSystem from "effect/FileSystem";
11
11
  // package.json
12
- var version = "0.8.12";
12
+ var version = "0.8.13";
13
13
  // src/file/index.ts
14
14
  /** Creates the directory and its parents. An existing directory is not an error. */
15
15
  function mkdir(dir) {
@@ -1,4 +1,4 @@
1
- import { A as unionPrimitiveTypes, At as hasConditional, Bt as isNullTypeMember, D as ownProperties, E as numberWirePattern, F as regexSource, Ft as hasType, G as planDocument, H as definitionsOf, Ht as isObjectPrototypeProperty, J as schemaNamer, Jt as isSchemaObject, K as renderDefinitions, L as deepEqualExpression, Lt as isComposite, Mt as hasFixedLength, N as wireNumericKind, O as stringboolPattern, P as formatPattern, Q as enumWithoutWrappedNull, R as jsLiteral, Rn as UNSAFE_GENERATED_MARKER, S as integerWirePattern, T as isPrimitiveUnion, U as emitOptionsOf, Vt as isNullable, Xt as isStringWireLocation, Y as discriminatedMembers, Yt as isShapelessMember, Z as hasRootSelfReference, _ as valueListLiteral, at as findCodeExtensionKeysInSchema, b as effectWrap, bt as normalizeTypes, c as sanitizeSchema, ct as constraintPredicate, d as hasParameterSerialization, et as itemsSchemaOf, f as parameterReaders, ft as regexLiteral, g as notPredicate, gt as effectMessage, h as isBigintFormat, ht as effectErrorPart, i as isEvaluatedKeyExpression, in as DEFAULT_ROOT_NAME, j as wireArrayOnce, jt as hasFixedItemCount, k as stringboolTruthyPattern, kt as hasCombinator, l as refTarget, lt as foldAllOfMembers, m as withoutParameterSerialization, mt as effectError, p as propertyEmitOptions, pn as INTEGER_TEXT_PATTERN, q as rootNameOf, r as evaluatedProperties, s as typeDeclaration, st as constraintMessage, u as withPolymorphicBases, ut as isKeywordOnlyMember, v as hoistNestedRefs, w as isNullTextRead, x as impliedWireType, xn as NUMBER_RANGES, y as effectPreprocess, yt as makeSafeKey, zt as isDefaultOnlyMember } from "./helper-DRuGda2P.js";
1
+ import { A as unionPrimitiveTypes, Bn as UNSAFE_GENERATED_MARKER, Cn as NUMBER_RANGES, D as ownProperties, E as numberWirePattern, F as regexSource, G as planDocument, H as definitionsOf, Ht as isNullTypeMember, J as schemaNamer, K as renderDefinitions, L as deepEqualExpression, Lt as hasType, Mt as hasConditional, N as wireNumericKind, Nt as hasFixedItemCount, O as stringboolPattern, P as formatPattern, Pt as hasFixedLength, Q as enumWithoutWrappedNull, Qt as isStringWireLocation, R as jsLiteral, S as integerWirePattern, St as normalizeTypes, T as isPrimitiveUnion, U as emitOptionsOf, Ut as isNullable, Vt as isDefaultOnlyMember, Wt as isObjectPrototypeProperty, Xt as isSchemaObject, Y as discriminatedMembers, Z as hasRootSelfReference, Zt as isShapelessMember, _ as valueListLiteral, _t as effectErrorPart, b as effectWrap, c as sanitizeSchema, d as hasParameterSerialization, dt as foldAllOfMembers, et as itemsSchemaOf, f as parameterReaders, ft as isKeywordOnlyMember, g as notPredicate, gt as effectError, h as isBigintFormat, hn as INTEGER_TEXT_PATTERN, i as isEvaluatedKeyExpression, j as wireArrayOnce, jt as hasCombinator, k as stringboolTruthyPattern, l as refTarget, lt as constraintMessage, m as withoutParameterSerialization, mt as regexLiteral, on as DEFAULT_ROOT_NAME, p as propertyEmitOptions, q as rootNameOf, r as evaluatedProperties, s as typeDeclaration, st as findCodeExtensionKeysInSchema, u as withPolymorphicBases, ut as constraintPredicate, v as hoistNestedRefs, vt as effectMessage, w as isNullTextRead, x as impliedWireType, xt as makeSafeKey, y as effectPreprocess, zt as isComposite } from "./helper-ByoddrXL.js";
2
2
  import { n as bigintCall, r as bigintLiteral, t as bigintBounds } from "./bigint-CkHij6xv.js";
3
3
  // src/generator/effect/number.ts
4
4
  /** The bound and `multipleOf` checks of a numeric node. */
package/dist/effect.js CHANGED
@@ -1 +1 @@
1
- export { t as schemaToEffect } from "./effect-BLTKj8GH.js";
1
+ export { t as schemaToEffect } from "./effect-BqLfzMgM.js";
@@ -1620,6 +1620,51 @@ function readCodeExtension(schema, key, options) {
1620
1620
  }
1621
1621
  // src/helper/arktype-wrap.ts
1622
1622
  /**
1623
+ * The most members a string-DSL union of string literals (`"'a' | 'b' | ..."`) may have.
1624
+ * ArkType parses the string at the type level, and a longer union exceeds TypeScript's
1625
+ * instantiation depth (TS2589), so a longer one is written another way.
1626
+ */
1627
+ const ARKTYPE_STRING_UNION_LIMIT = 16;
1628
+ /**
1629
+ * The most members a string-DSL union may have when one of them is not a string literal
1630
+ * (`null`, a number, a keyword such as `string`): such a union exceeds TypeScript's
1631
+ * instantiation depth sooner, at 13 members.
1632
+ */
1633
+ const ARKTYPE_MIXED_UNION_LIMIT = 12;
1634
+ /** A string-DSL member that is one string literal. */
1635
+ const DSL_STRING_LITERAL_PATTERN = /^'[^'\\]*'$/u;
1636
+ /** The most members a string-DSL union of `members` may have. */
1637
+ function arktypeUnionLimit(members) {
1638
+ return members.every((member) => DSL_STRING_LITERAL_PATTERN.test(member)) ? ARKTYPE_STRING_UNION_LIMIT : ARKTYPE_MIXED_UNION_LIMIT;
1639
+ }
1640
+ /**
1641
+ * The top-level members of a string-DSL definition (its text without the outer quotes):
1642
+ * the text split at each ` | ` outside a quoted literal (where a backslash escapes the next
1643
+ * character) and outside brackets.
1644
+ */
1645
+ function dslUnionMembers(definition) {
1646
+ const members = [];
1647
+ let depth = 0;
1648
+ let quote = "";
1649
+ let start = 0;
1650
+ for (let i = 0; i < definition.length; i += 1) {
1651
+ const char = definition[i];
1652
+ if (quote !== "") {
1653
+ if (char === "\\") i += 1;
1654
+ else if (char === quote) quote = "";
1655
+ } else if (char === "'" || char === "\"") quote = char;
1656
+ else if (char === "(" || char === "[" || char === "{") depth += 1;
1657
+ else if (char === ")" || char === "]" || char === "}") depth -= 1;
1658
+ else if (depth === 0 && definition.startsWith(" | ", i)) {
1659
+ members.push(definition.slice(start, i));
1660
+ start = i + 3;
1661
+ i += 2;
1662
+ }
1663
+ }
1664
+ members.push(definition.slice(start));
1665
+ return members;
1666
+ }
1667
+ /**
1623
1668
  * A definition a callback checks values against at validation time. Inside
1624
1669
  * `scope({...})` it goes through the scope (bound to `$`), which resolves the aliases
1625
1670
  * it may name; the global `type(...)` cannot. An expression that already evaluates to a
@@ -1665,7 +1710,7 @@ function arktypePreprocess(readers, inner, input = "unknown") {
1665
1710
  function arktypeWrap(arktypeStr, schema, options) {
1666
1711
  const inScope = options?.scopeMode === true;
1667
1712
  const isDefinition = isArktypeDefinition;
1668
- const withNullable = isNullable(schema) && options?.nullSchema !== true ? isQuoted(arktypeStr) ? `"${arktypeStr.slice(1, -1)} | null"` : inScope && isDefinition(arktypeStr) ? `[${arktypeStr},"|","null"]` : `type(${arktypeStr}).or("null")` : arktypeStr;
1713
+ const withNullable = isNullable(schema) && options?.nullSchema !== true ? isQuoted(arktypeStr) && dslUnionMembers(arktypeStr.slice(1, -1)).length < ARKTYPE_MIXED_UNION_LIMIT ? `"${arktypeStr.slice(1, -1)} | null"` : inScope && isDefinition(arktypeStr) ? `[${arktypeStr},"|","null"]` : `type(${arktypeStr}).or("null")` : arktypeStr;
1669
1714
  const withReadonly = schema["x-readonly"] === true ? isDefinition(withNullable) ? `type(${withNullable}).readonly()` : `${withNullable}.readonly()` : withNullable;
1670
1715
  const brand = schema["x-brand"];
1671
1716
  const withBrand = typeof brand === "string" ? isDefinition(withReadonly) ? `type(${withReadonly}).brand("${brand}")` : `${withReadonly}.brand("${brand}")` : withReadonly;
@@ -3168,4 +3213,4 @@ function zodWrap(zodStr, schema, options) {
3168
3213
  if (preprocess) return preprocess;
3169
3214
  return withMeta;
3170
3215
  }
3171
- export { isOptionalByDefault as $, ARKTYPE_CODE_EXTENSION_KEYS as $t, unionPrimitiveTypes as A, QUOTE_OR_BACKSLASH_PATTERN as An, hasConditional as At, typeboxMetaOpts as B, WIRE_PRIMITIVE_ORDER as Bn, isNullTypeMember as Bt, isNullMatchedFirst as C, NUMERIC_KEYWORDS as Cn, toPascalCase as Ct, ownProperties as D, OUTPUT_EXTENSION as Dn, zodError as Dt, numberWirePattern as E, OPENAPI_COMPONENT_SUFFIX_MAP as En, zodBaseError as Et, regexSource as F, STRING_KEYWORDS as Fn, hasType as Ft, planDocument as G, isQuoted as Gt, definitionsOf as H, isObjectPrototypeProperty as Ht, timePattern as I, STRING_WIRE_LOCATIONS as In, isArktypeDefinition as It, schemaNamer as J, isSchemaObject as Jt, renderDefinitions as K, isRecord as Kt, deepEqualExpression as L, UNICODE_ESCAPE_PATTERN as Ln, isComposite as Lt, wireNullText as M, STRINGBOOL_PATTERN as Mn, hasFixedLength as Mt, wireNumericKind as N, STRINGBOOL_TRUTHY_PATTERN as Nn, hasNumericKeyword as Nt, stringboolPattern as O, PARAM_LOCATIONS as On, zodErrorPart as Ot, formatPattern as P, STRING_FORMATS as Pn, hasStringKeyword as Pt, enumWithoutWrappedNull as Q, ANCHOR_REF_PATTERN as Qt, jsLiteral as R, UNSAFE_GENERATED_MARKER as Rn, isDeepLocalPointer as Rt, integerWirePattern as S, NUMBER_WIRE_PATTERN as Sn, toIdentifierPascalCase as St, isPrimitiveUnion as T, OFFSET_PATTERN_SOURCE as Tn, valibotErrorPart as Tt, emitOptionsOf as U, isPlainObject as Ut, typeboxRefOpt as V, ZOD_CODE_EXTENSION_KEYS as Vn, isNullable as Vt, missingDefinitionComment as W, isPrimitive as Wt, cyclicDefinitionNames as X, isStringWireLocation as Xt, discriminatedMembers as Y, isShapelessMember as Yt, hasRootSelfReference as Z, ALL_CODE_EXTENSION_KEYS as Zt, valueListLiteral as _, MISSING_DEFINITION_PREFIX as _n, encodeNonAscii as _t, unlessEvaluated as a, DEFINITION_KEYWORDS as an, findCodeExtensionKeysInSchema as at, effectWrap as b, NUMBER_FORMATS as bn, normalizeTypes as bt, sanitizeSchema as c, EFFECT_CODE_EXTENSION_KEYS as cn, constraintPredicate as ct, hasParameterSerialization as d, IF_THEN_ELSE_UNSUPPORTED_MARKER as dn, patternSource as dt, ARROW_FUNCTION_PATTERN as en, itemsSchemaOf as et, parameterReaders as f, INPUT_EXTENSIONS as fn, regexLiteral as ft, notPredicate as g, JSON_SCHEMA_TYPES as gn, effectMessage as gt, isBigintFormat as h, ISO_4217_CURRENCY_CODES as hn, effectErrorPart as ht, isEvaluatedKeyExpression as i, DEFAULT_ROOT_NAME as in, callbackType as it, wireArrayOnce as j, ROOT_REFS as jn, hasFixedItemCount as jt, stringboolTruthyPattern as k, PARAM_STYLES as kn, hasCombinator as kt, refTarget as l, FORMAT_PATTERNS as ln, foldAllOfMembers as lt, withoutParameterSerialization as m, INTEGER_WIRE_PATTERN as mn, effectError as mt, valibotWrap as n, CONTENT_ENCODINGS as nn, arktypeWrap as nt, typeboxWrap as o, DEFINITION_POINTER_PATTERN as on, hasNotKeyword as ot, propertyEmitOptions as p, INTEGER_TEXT_PATTERN as pn, coerceDefault as pt, rootNameOf as q, isRootRef as qt, evaluatedProperties as r, DATE_PATTERN_SOURCE as rn, callbackReturn as rt, typeDeclaration as s, DEFINITION_REF_PREFIXES as sn, constraintMessage as st, zodWrap as t, COMPONENT_SCHEMA_REF_PREFIX as tn, arktypePreprocess as tt, withPolymorphicBases as u, IDENTIFIER_PATTERN as un, isKeywordOnlyMember as ut, hoistNestedRefs as v, NON_IDENTIFIER_CHARACTER_PATTERN as vn, issueMessageExpression as vt, isNullTextRead as w, OBJECT_PROTOTYPE_PROPERTIES as wn, valibotError as wt, impliedWireType as x, NUMBER_RANGES as xn, resolveOpenAPIRef as xt, effectPreprocess as y, NOT_KEYWORD_UNSUPPORTED_MARKER as yn, makeSafeKey as yt, typeboxDefaultOpt as z, VALIBOT_CODE_EXTENSION_KEYS as zn, isDefaultOnlyMember as zt };
3216
+ export { isOptionalByDefault as $, ALL_CODE_EXTENSION_KEYS as $t, unionPrimitiveTypes as A, PARAM_LOCATIONS as An, zodErrorPart as At, typeboxMetaOpts as B, UNSAFE_GENERATED_MARKER as Bn, isDeepLocalPointer as Bt, isNullMatchedFirst as C, NUMBER_RANGES as Cn, resolveOpenAPIRef as Ct, ownProperties as D, OFFSET_PATTERN_SOURCE as Dn, valibotErrorPart as Dt, numberWirePattern as E, OBJECT_PROTOTYPE_PROPERTIES as En, valibotError as Et, regexSource as F, STRINGBOOL_TRUTHY_PATTERN as Fn, hasNumericKeyword as Ft, planDocument as G, isPlainObject as Gt, definitionsOf as H, WIRE_PRIMITIVE_ORDER as Hn, isNullTypeMember as Ht, timePattern as I, STRING_FORMATS as In, hasStringKeyword as It, schemaNamer as J, isRecord as Jt, renderDefinitions as K, isPrimitive as Kt, deepEqualExpression as L, STRING_KEYWORDS as Ln, hasType as Lt, wireNullText as M, QUOTE_OR_BACKSLASH_PATTERN as Mn, hasConditional as Mt, wireNumericKind as N, ROOT_REFS as Nn, hasFixedItemCount as Nt, stringboolPattern as O, OPENAPI_COMPONENT_SUFFIX_MAP as On, zodBaseError as Ot, formatPattern as P, STRINGBOOL_PATTERN as Pn, hasFixedLength as Pt, enumWithoutWrappedNull as Q, isStringWireLocation as Qt, jsLiteral as R, STRING_WIRE_LOCATIONS as Rn, isArktypeDefinition as Rt, integerWirePattern as S, NUMBER_FORMATS as Sn, normalizeTypes as St, isPrimitiveUnion as T, NUMERIC_KEYWORDS as Tn, toPascalCase as Tt, emitOptionsOf as U, ZOD_CODE_EXTENSION_KEYS as Un, isNullable as Ut, typeboxRefOpt as V, VALIBOT_CODE_EXTENSION_KEYS as Vn, isDefaultOnlyMember as Vt, missingDefinitionComment as W, isObjectPrototypeProperty as Wt, cyclicDefinitionNames as X, isSchemaObject as Xt, discriminatedMembers as Y, isRootRef as Yt, hasRootSelfReference as Z, isShapelessMember as Zt, valueListLiteral as _, ISO_4217_CURRENCY_CODES as _n, effectErrorPart as _t, unlessEvaluated as a, DATE_PATTERN_SOURCE as an, callbackType as at, effectWrap as b, NON_IDENTIFIER_CHARACTER_PATTERN as bn, issueMessageExpression as bt, sanitizeSchema as c, DEFINITION_POINTER_PATTERN as cn, hasNotKeyword as ct, hasParameterSerialization as d, FORMAT_PATTERNS as dn, foldAllOfMembers as dt, ANCHOR_REF_PATTERN as en, itemsSchemaOf as et, parameterReaders as f, IDENTIFIER_PATTERN as fn, isKeywordOnlyMember as ft, notPredicate as g, INTEGER_WIRE_PATTERN as gn, effectError as gt, isBigintFormat as h, INTEGER_TEXT_PATTERN as hn, coerceDefault as ht, isEvaluatedKeyExpression as i, CONTENT_ENCODINGS as in, callbackReturn as it, wireArrayOnce as j, PARAM_STYLES as jn, hasCombinator as jt, stringboolTruthyPattern as k, OUTPUT_EXTENSION as kn, zodError as kt, refTarget as l, DEFINITION_REF_PREFIXES as ln, constraintMessage as lt, withoutParameterSerialization as m, INPUT_EXTENSIONS as mn, regexLiteral as mt, valibotWrap as n, ARROW_FUNCTION_PATTERN as nn, arktypeUnionLimit as nt, typeboxWrap as o, DEFAULT_ROOT_NAME as on, dslUnionMembers as ot, propertyEmitOptions as p, IF_THEN_ELSE_UNSUPPORTED_MARKER as pn, patternSource as pt, rootNameOf as q, isQuoted as qt, evaluatedProperties as r, COMPONENT_SCHEMA_REF_PREFIX as rn, arktypeWrap as rt, typeDeclaration as s, DEFINITION_KEYWORDS as sn, findCodeExtensionKeysInSchema as st, zodWrap as t, ARKTYPE_CODE_EXTENSION_KEYS as tn, arktypePreprocess as tt, withPolymorphicBases as u, EFFECT_CODE_EXTENSION_KEYS as un, constraintPredicate as ut, hoistNestedRefs as v, JSON_SCHEMA_TYPES as vn, effectMessage as vt, isNullTextRead as w, NUMBER_WIRE_PATTERN as wn, toIdentifierPascalCase as wt, impliedWireType as x, NOT_KEYWORD_UNSUPPORTED_MARKER as xn, makeSafeKey as xt, effectPreprocess as y, MISSING_DEFINITION_PREFIX as yn, encodeNonAscii as yt, typeboxDefaultOpt as z, UNICODE_ESCAPE_PATTERN as zn, isComposite as zt };
package/dist/index.js CHANGED
@@ -1,10 +1,10 @@
1
- import { $t as ARKTYPE_CODE_EXTENSION_KEYS, An as QUOTE_OR_BACKSLASH_PATTERN, Bn as WIRE_PRIMITIVE_ORDER, Cn as NUMERIC_KEYWORDS, Ct as toPascalCase, Dn as OUTPUT_EXTENSION, Dt as zodError, En as OPENAPI_COMPONENT_SUFFIX_MAP, Et as zodBaseError, Fn as STRING_KEYWORDS, In as STRING_WIRE_LOCATIONS, Ln as UNICODE_ESCAPE_PATTERN, Mn as STRINGBOOL_PATTERN, Nn as STRINGBOOL_TRUTHY_PATTERN, On as PARAM_LOCATIONS, Ot as zodErrorPart, Pn as STRING_FORMATS, Qt as ANCHOR_REF_PATTERN, Rn as UNSAFE_GENERATED_MARKER, Sn as NUMBER_WIRE_PATTERN, St as toIdentifierPascalCase, Tn as OFFSET_PATTERN_SOURCE, Tt as valibotErrorPart, Vn as ZOD_CODE_EXTENSION_KEYS, Zt as ALL_CODE_EXTENSION_KEYS, _n as MISSING_DEFINITION_PREFIX, _t as encodeNonAscii, an as DEFINITION_KEYWORDS, bn as NUMBER_FORMATS, bt as normalizeTypes, cn as EFFECT_CODE_EXTENSION_KEYS, dn as IF_THEN_ELSE_UNSUPPORTED_MARKER, en as ARROW_FUNCTION_PATTERN, fn as INPUT_EXTENSIONS, gn as JSON_SCHEMA_TYPES, gt as effectMessage, hn as ISO_4217_CURRENCY_CODES, ht as effectErrorPart, in as DEFAULT_ROOT_NAME, jn as ROOT_REFS, kn as PARAM_STYLES, ln as FORMAT_PATTERNS, mn as INTEGER_WIRE_PATTERN, mt as effectError, nn as CONTENT_ENCODINGS, on as DEFINITION_POINTER_PATTERN, pn as INTEGER_TEXT_PATTERN, pt as coerceDefault, rn as DATE_PATTERN_SOURCE, sn as DEFINITION_REF_PREFIXES, tn as COMPONENT_SCHEMA_REF_PREFIX, un as IDENTIFIER_PATTERN, vn as NON_IDENTIFIER_CHARACTER_PATTERN, vt as issueMessageExpression, wn as OBJECT_PROTOTYPE_PROPERTIES, wt as valibotError, xn as NUMBER_RANGES, xt as resolveOpenAPIRef, yn as NOT_KEYWORD_UNSUPPORTED_MARKER, yt as makeSafeKey, zn as VALIBOT_CODE_EXTENSION_KEYS } from "./helper-DRuGda2P.js";
1
+ import { $t as ALL_CODE_EXTENSION_KEYS, An as PARAM_LOCATIONS, At as zodErrorPart, Bn as UNSAFE_GENERATED_MARKER, Cn as NUMBER_RANGES, Ct as resolveOpenAPIRef, Dn as OFFSET_PATTERN_SOURCE, Dt as valibotErrorPart, En as OBJECT_PROTOTYPE_PROPERTIES, Et as valibotError, Fn as STRINGBOOL_TRUTHY_PATTERN, Hn as WIRE_PRIMITIVE_ORDER, In as STRING_FORMATS, Ln as STRING_KEYWORDS, Mn as QUOTE_OR_BACKSLASH_PATTERN, Nn as ROOT_REFS, On as OPENAPI_COMPONENT_SUFFIX_MAP, Ot as zodBaseError, Pn as STRINGBOOL_PATTERN, Rn as STRING_WIRE_LOCATIONS, Sn as NUMBER_FORMATS, St as normalizeTypes, Tn as NUMERIC_KEYWORDS, Tt as toPascalCase, Un as ZOD_CODE_EXTENSION_KEYS, Vn as VALIBOT_CODE_EXTENSION_KEYS, _n as ISO_4217_CURRENCY_CODES, _t as effectErrorPart, an as DATE_PATTERN_SOURCE, bn as NON_IDENTIFIER_CHARACTER_PATTERN, bt as issueMessageExpression, cn as DEFINITION_POINTER_PATTERN, dn as FORMAT_PATTERNS, en as ANCHOR_REF_PATTERN, fn as IDENTIFIER_PATTERN, gn as INTEGER_WIRE_PATTERN, gt as effectError, hn as INTEGER_TEXT_PATTERN, ht as coerceDefault, in as CONTENT_ENCODINGS, jn as PARAM_STYLES, kn as OUTPUT_EXTENSION, kt as zodError, ln as DEFINITION_REF_PREFIXES, mn as INPUT_EXTENSIONS, nn as ARROW_FUNCTION_PATTERN, on as DEFAULT_ROOT_NAME, pn as IF_THEN_ELSE_UNSUPPORTED_MARKER, rn as COMPONENT_SCHEMA_REF_PREFIX, sn as DEFINITION_KEYWORDS, tn as ARKTYPE_CODE_EXTENSION_KEYS, un as EFFECT_CODE_EXTENSION_KEYS, vn as JSON_SCHEMA_TYPES, vt as effectMessage, wn as NUMBER_WIRE_PATTERN, wt as toIdentifierPascalCase, xn as NOT_KEYWORD_UNSUPPORTED_MARKER, xt as makeSafeKey, yn as MISSING_DEFINITION_PREFIX, yt as encodeNonAscii, zn as UNICODE_ESCAPE_PATTERN } from "./helper-ByoddrXL.js";
2
2
  import { i as fmt, n as parseSchemaFile, r as FormatError, t as ParseError } from "./parser-RBrkz7ZL.js";
3
- import { n as ajv, t as schemaToAjv } from "./ajv-91NQz0R7.js";
4
- import { n as arktype, t as schemaToArktype } from "./arktype-Cl_XiSs3.js";
5
- import { n as effect, r as wholeValueMessage, t as schemaToEffect } from "./effect-BLTKj8GH.js";
6
- import { n as nestedTypeboxOptions, r as typebox, t as schemaToTypebox } from "./typebox-BTCR9bNo.js";
7
- import { n as valibot, t as schemaToValibot } from "./valibot-C1qkFYn6.js";
8
- import { n as yup, t as schemaToYup } from "./yup-Cec-EEni.js";
9
- import { i as zod, n as forwardIssue, r as nestedIssueMessageWrap, t as schemaToZod } from "./zod-CnDLSw9x.js";
3
+ import { n as ajv, t as schemaToAjv } from "./ajv-DjHkU79T.js";
4
+ import { n as arktype, t as schemaToArktype } from "./arktype-CbrtmKWv.js";
5
+ import { n as effect, r as wholeValueMessage, t as schemaToEffect } from "./effect-BqLfzMgM.js";
6
+ import { n as nestedTypeboxOptions, r as typebox, t as schemaToTypebox } from "./typebox-DdFjzmqK.js";
7
+ import { n as valibot, t as schemaToValibot } from "./valibot-Bz-mcsf9.js";
8
+ import { n as yup, t as schemaToYup } from "./yup-rbHu00QS.js";
9
+ import { i as zod, n as forwardIssue, r as nestedIssueMessageWrap, t as schemaToZod } from "./zod-Cvj9YJY_.js";
10
10
  export { ALL_CODE_EXTENSION_KEYS, ANCHOR_REF_PATTERN, ARKTYPE_CODE_EXTENSION_KEYS, ARROW_FUNCTION_PATTERN, COMPONENT_SCHEMA_REF_PREFIX, CONTENT_ENCODINGS, DATE_PATTERN_SOURCE, DEFAULT_ROOT_NAME, DEFINITION_KEYWORDS, DEFINITION_POINTER_PATTERN, DEFINITION_REF_PREFIXES, EFFECT_CODE_EXTENSION_KEYS, FORMAT_PATTERNS, FormatError, IDENTIFIER_PATTERN, IF_THEN_ELSE_UNSUPPORTED_MARKER, INPUT_EXTENSIONS, INTEGER_TEXT_PATTERN, INTEGER_WIRE_PATTERN, ISO_4217_CURRENCY_CODES, JSON_SCHEMA_TYPES, MISSING_DEFINITION_PREFIX, NON_IDENTIFIER_CHARACTER_PATTERN, NOT_KEYWORD_UNSUPPORTED_MARKER, NUMBER_FORMATS, NUMBER_RANGES, NUMBER_WIRE_PATTERN, NUMERIC_KEYWORDS, OBJECT_PROTOTYPE_PROPERTIES, OFFSET_PATTERN_SOURCE, OPENAPI_COMPONENT_SUFFIX_MAP, OUTPUT_EXTENSION, PARAM_LOCATIONS, PARAM_STYLES, ParseError, QUOTE_OR_BACKSLASH_PATTERN, ROOT_REFS, STRINGBOOL_PATTERN, STRINGBOOL_TRUTHY_PATTERN, STRING_FORMATS, STRING_KEYWORDS, STRING_WIRE_LOCATIONS, UNICODE_ESCAPE_PATTERN, UNSAFE_GENERATED_MARKER, VALIBOT_CODE_EXTENSION_KEYS, WIRE_PRIMITIVE_ORDER, ZOD_CODE_EXTENSION_KEYS, ajv, arktype, coerceDefault, effect, effectError, effectErrorPart, effectMessage, encodeNonAscii, fmt, forwardIssue, issueMessageExpression, makeSafeKey, nestedIssueMessageWrap, nestedTypeboxOptions, normalizeTypes, parseSchemaFile, resolveOpenAPIRef, schemaToAjv, schemaToArktype, schemaToEffect, schemaToTypebox, schemaToValibot, schemaToYup, schemaToZod, toIdentifierPascalCase, toPascalCase, typebox, valibot, valibotError, valibotErrorPart, wholeValueMessage, yup, zod, zodBaseError, zodError, zodErrorPart };
@@ -1,4 +1,4 @@
1
- import { $ as isOptionalByDefault, B as typeboxMetaOpts, Bt as isNullTypeMember, G as planDocument, H as definitionsOf, J as schemaNamer, K as renderDefinitions, Lt as isComposite, Mt as hasFixedLength, Nt as hasNumericKeyword, O as stringboolPattern, Pt as hasStringKeyword, Q as enumWithoutWrappedNull, Rt as isDeepLocalPointer, Sn as NUMBER_WIRE_PATTERN, U as emitOptionsOf, V as typeboxRefOpt, Vt as isNullable, W as missingDefinitionComment, X as cyclicDefinitionNames, Xt as isStringWireLocation, Y as discriminatedMembers, Yt as isShapelessMember, Z as hasRootSelfReference, bt as normalizeTypes, c as sanitizeSchema, dt as patternSource, et as itemsSchemaOf, in as DEFAULT_ROOT_NAME, k as stringboolTruthyPattern, kt as hasCombinator, lt as foldAllOfMembers, mn as INTEGER_WIRE_PATTERN, o as typeboxWrap, ot as hasNotKeyword, q as rootNameOf, qt as isRootRef, sn as DEFINITION_REF_PREFIXES, u as withPolymorphicBases, ut as isKeywordOnlyMember, v as hoistNestedRefs, xt as resolveOpenAPIRef, yn as NOT_KEYWORD_UNSUPPORTED_MARKER, yt as makeSafeKey, z as typeboxDefaultOpt, zt as isDefaultOnlyMember } from "./helper-DRuGda2P.js";
1
+ import { $ as isOptionalByDefault, B as typeboxMetaOpts, Bt as isDeepLocalPointer, Ct as resolveOpenAPIRef, Ft as hasNumericKeyword, G as planDocument, H as definitionsOf, Ht as isNullTypeMember, It as hasStringKeyword, J as schemaNamer, K as renderDefinitions, O as stringboolPattern, Pt as hasFixedLength, Q as enumWithoutWrappedNull, Qt as isStringWireLocation, St as normalizeTypes, U as emitOptionsOf, Ut as isNullable, V as typeboxRefOpt, Vt as isDefaultOnlyMember, W as missingDefinitionComment, X as cyclicDefinitionNames, Y as discriminatedMembers, Yt as isRootRef, Z as hasRootSelfReference, Zt as isShapelessMember, c as sanitizeSchema, ct as hasNotKeyword, dt as foldAllOfMembers, et as itemsSchemaOf, ft as isKeywordOnlyMember, gn as INTEGER_WIRE_PATTERN, jt as hasCombinator, k as stringboolTruthyPattern, ln as DEFINITION_REF_PREFIXES, o as typeboxWrap, on as DEFAULT_ROOT_NAME, pt as patternSource, q as rootNameOf, u as withPolymorphicBases, v as hoistNestedRefs, wn as NUMBER_WIRE_PATTERN, xn as NOT_KEYWORD_UNSUPPORTED_MARKER, xt as makeSafeKey, z as typeboxDefaultOpt, zt as isComposite } from "./helper-ByoddrXL.js";
2
2
  import { t as bigintBounds } from "./bigint-CkHij6xv.js";
3
3
  // src/generator/typebox/enum.ts
4
4
  function lit(v) {
package/dist/typebox.js CHANGED
@@ -1 +1 @@
1
- export { t as schemaToTypebox } from "./typebox-BTCR9bNo.js";
1
+ export { t as schemaToTypebox } from "./typebox-DdFjzmqK.js";
@@ -1,4 +1,4 @@
1
- import { $ as isOptionalByDefault, A as unionPrimitiveTypes, At as hasConditional, Bt as isNullTypeMember, D as ownProperties, E as numberWirePattern, F as regexSource, Ft as hasType, G as planDocument, H as definitionsOf, Ht as isObjectPrototypeProperty, J as schemaNamer, Jt as isSchemaObject, K as renderDefinitions, L as deepEqualExpression, Mt as hasFixedLength, N as wireNumericKind, O as stringboolPattern, P as formatPattern, Q as enumWithoutWrappedNull, R as jsLiteral, Rn as UNSAFE_GENERATED_MARKER, S as integerWirePattern, T as isPrimitiveUnion, Tt as valibotErrorPart, U as emitOptionsOf, Vt as isNullable, Wt as isPrimitive, Xt as isStringWireLocation, Y as discriminatedMembers, Yt as isShapelessMember, Z as hasRootSelfReference, _ as valueListLiteral, a as unlessEvaluated, at as findCodeExtensionKeysInSchema, bt as normalizeTypes, c as sanitizeSchema, ct as constraintPredicate, d as hasParameterSerialization, et as itemsSchemaOf, f as parameterReaders, ft as regexLiteral, g as notPredicate, h as isBigintFormat, i as isEvaluatedKeyExpression, in as DEFAULT_ROOT_NAME, j as wireArrayOnce, jt as hasFixedItemCount, k as stringboolTruthyPattern, kt as hasCombinator, l as refTarget, lt as foldAllOfMembers, m as withoutParameterSerialization, n as valibotWrap, p as propertyEmitOptions, pn as INTEGER_TEXT_PATTERN, q as rootNameOf, r as evaluatedProperties, s as typeDeclaration, st as constraintMessage, u as withPolymorphicBases, ut as isKeywordOnlyMember, v as hoistNestedRefs, vt as issueMessageExpression, w as isNullTextRead, wt as valibotError, x as impliedWireType, xn as NUMBER_RANGES, yt as makeSafeKey, zt as isDefaultOnlyMember } from "./helper-DRuGda2P.js";
1
+ import { $ as isOptionalByDefault, A as unionPrimitiveTypes, Bn as UNSAFE_GENERATED_MARKER, Cn as NUMBER_RANGES, D as ownProperties, Dt as valibotErrorPart, E as numberWirePattern, Et as valibotError, F as regexSource, G as planDocument, H as definitionsOf, Ht as isNullTypeMember, J as schemaNamer, K as renderDefinitions, Kt as isPrimitive, L as deepEqualExpression, Lt as hasType, Mt as hasConditional, N as wireNumericKind, Nt as hasFixedItemCount, O as stringboolPattern, P as formatPattern, Pt as hasFixedLength, Q as enumWithoutWrappedNull, Qt as isStringWireLocation, R as jsLiteral, S as integerWirePattern, St as normalizeTypes, T as isPrimitiveUnion, U as emitOptionsOf, Ut as isNullable, Vt as isDefaultOnlyMember, Wt as isObjectPrototypeProperty, Xt as isSchemaObject, Y as discriminatedMembers, Z as hasRootSelfReference, Zt as isShapelessMember, _ as valueListLiteral, a as unlessEvaluated, bt as issueMessageExpression, c as sanitizeSchema, d as hasParameterSerialization, dt as foldAllOfMembers, et as itemsSchemaOf, f as parameterReaders, ft as isKeywordOnlyMember, g as notPredicate, h as isBigintFormat, hn as INTEGER_TEXT_PATTERN, i as isEvaluatedKeyExpression, j as wireArrayOnce, jt as hasCombinator, k as stringboolTruthyPattern, l as refTarget, lt as constraintMessage, m as withoutParameterSerialization, mt as regexLiteral, n as valibotWrap, on as DEFAULT_ROOT_NAME, p as propertyEmitOptions, q as rootNameOf, r as evaluatedProperties, s as typeDeclaration, st as findCodeExtensionKeysInSchema, u as withPolymorphicBases, ut as constraintPredicate, v as hoistNestedRefs, w as isNullTextRead, x as impliedWireType, xt as makeSafeKey } from "./helper-ByoddrXL.js";
2
2
  import { n as bigintCall, r as bigintLiteral, t as bigintBounds } from "./bigint-CkHij6xv.js";
3
3
  // src/generator/valibot/type.ts
4
4
  /** The TypeScript type declared beside a recursive Valibot schema: its output type. */
package/dist/valibot.js CHANGED
@@ -1 +1 @@
1
- export { t as schemaToValibot } from "./valibot-C1qkFYn6.js";
1
+ export { t as schemaToValibot } from "./valibot-Bz-mcsf9.js";
@@ -1,4 +1,4 @@
1
- import { J as schemaNamer, bt as normalizeTypes, c as sanitizeSchema, q as rootNameOf, yt as makeSafeKey } from "./helper-DRuGda2P.js";
1
+ import { J as schemaNamer, St as normalizeTypes, c as sanitizeSchema, q as rootNameOf, xt as makeSafeKey } from "./helper-ByoddrXL.js";
2
2
  // src/generator/yup/integer.ts
3
3
  /**
4
4
  * Generate a Yup integer schema as `yup.number().integer()`, with `minimum`
package/dist/yup.js CHANGED
@@ -1 +1 @@
1
- export { t as schemaToYup } from "./yup-Cec-EEni.js";
1
+ export { t as schemaToYup } from "./yup-rbHu00QS.js";
@@ -1,4 +1,4 @@
1
- import { A as unionPrimitiveTypes, At as hasConditional, Bt as isNullTypeMember, C as isNullMatchedFirst, Dt as zodError, E as numberWirePattern, Et as zodBaseError, Ft as hasType, G as planDocument, H as definitionsOf, Ht as isObjectPrototypeProperty, I as timePattern, J as schemaNamer, Jt as isSchemaObject, K as renderDefinitions, L as deepEqualExpression, Lt as isComposite, M as wireNullText, Mt as hasFixedLength, N as wireNumericKind, Ot as zodErrorPart, Q as enumWithoutWrappedNull, Rn as UNSAFE_GENERATED_MARKER, S as integerWirePattern, T as isPrimitiveUnion, U as emitOptionsOf, Ut as isPlainObject, Vt as isNullable, Wt as isPrimitive, Xt as isStringWireLocation, Y as discriminatedMembers, Yt as isShapelessMember, Z as hasRootSelfReference, _ as valueListLiteral, a as unlessEvaluated, at as findCodeExtensionKeysInSchema, bt as normalizeTypes, c as sanitizeSchema, ct as constraintPredicate, d as hasParameterSerialization, et as itemsSchemaOf, f as parameterReaders, ft as regexLiteral, g as notPredicate, h as isBigintFormat, hn as ISO_4217_CURRENCY_CODES, i as isEvaluatedKeyExpression, in as DEFAULT_ROOT_NAME, j as wireArrayOnce, kt as hasCombinator, l as refTarget, lt as foldAllOfMembers, m as withoutParameterSerialization, p as propertyEmitOptions, q as rootNameOf, r as evaluatedProperties, s as typeDeclaration, st as constraintMessage, t as zodWrap, u as withPolymorphicBases, ut as isKeywordOnlyMember, v as hoistNestedRefs, vt as issueMessageExpression, w as isNullTextRead, x as impliedWireType, yt as makeSafeKey, zt as isDefaultOnlyMember } from "./helper-DRuGda2P.js";
1
+ import { A as unionPrimitiveTypes, At as zodErrorPart, Bn as UNSAFE_GENERATED_MARKER, C as isNullMatchedFirst, E as numberWirePattern, G as planDocument, Gt as isPlainObject, H as definitionsOf, Ht as isNullTypeMember, I as timePattern, J as schemaNamer, K as renderDefinitions, Kt as isPrimitive, L as deepEqualExpression, Lt as hasType, M as wireNullText, Mt as hasConditional, N as wireNumericKind, Ot as zodBaseError, Pt as hasFixedLength, Q as enumWithoutWrappedNull, Qt as isStringWireLocation, S as integerWirePattern, St as normalizeTypes, T as isPrimitiveUnion, U as emitOptionsOf, Ut as isNullable, Vt as isDefaultOnlyMember, Wt as isObjectPrototypeProperty, Xt as isSchemaObject, Y as discriminatedMembers, Z as hasRootSelfReference, Zt as isShapelessMember, _ as valueListLiteral, _n as ISO_4217_CURRENCY_CODES, a as unlessEvaluated, bt as issueMessageExpression, c as sanitizeSchema, d as hasParameterSerialization, dt as foldAllOfMembers, et as itemsSchemaOf, f as parameterReaders, ft as isKeywordOnlyMember, g as notPredicate, h as isBigintFormat, i as isEvaluatedKeyExpression, j as wireArrayOnce, jt as hasCombinator, kt as zodError, l as refTarget, lt as constraintMessage, m as withoutParameterSerialization, mt as regexLiteral, on as DEFAULT_ROOT_NAME, p as propertyEmitOptions, q as rootNameOf, r as evaluatedProperties, s as typeDeclaration, st as findCodeExtensionKeysInSchema, t as zodWrap, u as withPolymorphicBases, ut as constraintPredicate, v as hoistNestedRefs, w as isNullTextRead, x as impliedWireType, xt as makeSafeKey, zt as isComposite } from "./helper-ByoddrXL.js";
2
2
  import { n as bigintCall, r as bigintLiteral, t as bigintBounds } from "./bigint-CkHij6xv.js";
3
3
  // src/generator/zod/type.ts
4
4
  /** The TypeScript type declared beside a recursive Zod schema. */
package/dist/zod.js CHANGED
@@ -1 +1 @@
1
- export { t as schemaToZod } from "./zod-CnDLSw9x.js";
1
+ export { t as schemaToZod } from "./zod-Cvj9YJY_.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "schema-truth",
3
- "version": "0.8.12",
3
+ "version": "0.8.13",
4
4
  "description": "Generate Zod/Valibot/Effect/TypeBox/ArkType/Ajv/Yup schemas from JSON or YAML files",
5
5
  "keywords": [
6
6
  "ajv",