@stryke/json 0.13.1 → 0.14.2

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/CHANGELOG.md CHANGED
@@ -2,6 +2,37 @@
2
2
 
3
3
  # Changelog for Stryke - JSON
4
4
 
5
+ ## [0.14.2](https://github.com/storm-software/stryke/releases/tag/json%400.14.2) (03/06/2026)
6
+
7
+ ### Updated Dependencies
8
+
9
+ - Updated **type-checks** to **v0.5.33**
10
+ - Updated **types** to **v0.10.47**
11
+
12
+ ## [0.14.1](https://github.com/storm-software/stryke/releases/tag/json%400.14.1) (03/06/2026)
13
+
14
+ ### Updated Dependencies
15
+
16
+ - Updated **type-checks** to **v0.5.32**
17
+ - Updated **types** to **v0.10.46**
18
+
19
+ ## [0.14.0](https://github.com/storm-software/stryke/releases/tag/json%400.14.0) (03/03/2026)
20
+
21
+ ### Features
22
+
23
+ - **json:** Added new JSON Schema metadata fields ([b267a780](https://github.com/storm-software/stryke/commit/b267a780))
24
+
25
+ ## [0.13.1](https://github.com/storm-software/stryke/releases/tag/json%400.13.1) (03/03/2026)
26
+
27
+ ### Bug Fixes
28
+
29
+ - **json:** Resolve issue in Object JSON schema type-checker ([819f4c9a](https://github.com/storm-software/stryke/commit/819f4c9a))
30
+
31
+ ### Updated Dependencies
32
+
33
+ - Updated **type-checks** to **v0.5.31**
34
+ - Updated **types** to **v0.10.45**
35
+
5
36
  ## [0.13.0](https://github.com/storm-software/stryke/releases/tag/json%400.13.0) (03/03/2026)
6
37
 
7
38
  ### Features
package/dist/index.d.cts CHANGED
@@ -1,12 +1,12 @@
1
1
  import { t as canonicalJson } from "./canonical-3PQxSh5G.cjs";
2
2
  import { a as isArrayEnd, i as find, n as ObjectReference, o as isArrayReference, r as Reference, s as isObjectReference, t as ArrayReference } from "./find-reference-BuuNqqOh.cjs";
3
3
  import { a as isValidIndex, c as unescapePointerSegment, i as isRoot, n as formatJsonPointer, o as parent, r as isInteger, s as parseJsonPointer, t as escapePointerSegment } from "./parse-DCHSu_0u.cjs";
4
- import { $ as TypeAnnotation, A as JsonSchema7PrimitiveLiteralType, B as JsonSchema7UndefinedType, C as JsonSchema7NativeEnumType, D as JsonSchema7NumberType, E as JsonSchema7NullableType, F as JsonSchema7SetType, G as Leaf, H as JsonSchema7UnknownType, I as JsonSchema7StringType, J as PrimitiveTypeAnnotation, K as LeafTypeAnnotation, L as JsonSchema7TupleType, M as JsonSchema7RecordPropertyNamesType, N as JsonSchema7RecordType, O as JsonSchema7ObjectType, P as JsonSchema7RefType, Q as Tree, R as JsonSchema7Type, S as JsonSchema7Meta, T as JsonSchema7NullType, U as JsonSerializeOptions, V as JsonSchema7UnionType, W as JsonValue, X as SimpleTypeAnnotation, Y as SerializableJsonValue, Z as SymbolTypeAnnotation, _ as JsonSchema7BooleanType, a as CustomTypeAnnotation, b as JsonSchema7LiteralType, c as JsonObject, d as JsonParserResult, et as TypedArrayAnnotation, f as JsonSchema7AllOfType, g as JsonSchema7BigintType, h as JsonSchema7ArrayType, i as CompositeTypeAnnotation, j as JsonSchema7PrimitiveUnionType, k as JsonSchema7Primitive, l as JsonParseOptions, m as JsonSchema7AnyType, n as ClassInstance, o as InnerNode, p as JsonSchema7AnyOfType, q as PrimitiveJsonValue, r as ClassTypeAnnotation, s as JsonArray, t as Class, u as JsonParserInterface, v as JsonSchema7DateType, w as JsonSchema7NeverType, x as JsonSchema7MapType, y as JsonSchema7EnumType, z as JsonSchema7TypeUnion } from "./types-BzNIRhpI.cjs";
5
- import { a as isJsonSchema7NumberType, c as isJsonSchema7StringType, i as isJsonSchema7LiteralType, l as isJsonSchema7TupleType, n as isJsonSchema7ArrayType, o as isJsonSchema7ObjectType, r as isJsonSchema7BooleanType, s as isJsonSchema7PrimitiveLiteralType, t as isJsonSchema7AllOfType, u as isStandardJsonSchema } from "./schema-CuBX00tF.cjs";
6
- import { t as StormJSON } from "./storm-json-DiBg5b6r.cjs";
4
+ import { $ as TypeAnnotation, A as JsonSchema7PrimitiveLiteralType, B as JsonSchema7UndefinedType, C as JsonSchema7NativeEnumType, D as JsonSchema7NumberType, E as JsonSchema7NullableType, F as JsonSchema7SetType, G as Leaf, H as JsonSchema7UnknownType, I as JsonSchema7StringType, J as PrimitiveTypeAnnotation, K as LeafTypeAnnotation, L as JsonSchema7TupleType, M as JsonSchema7RecordPropertyNamesType, N as JsonSchema7RecordType, O as JsonSchema7ObjectType, P as JsonSchema7RefType, Q as Tree, R as JsonSchema7Type, S as JsonSchema7Metadata, T as JsonSchema7NullType, U as JsonSerializeOptions, V as JsonSchema7UnionType, W as JsonValue, X as SimpleTypeAnnotation, Y as SerializableJsonValue, Z as SymbolTypeAnnotation, _ as JsonSchema7BooleanType, a as CustomTypeAnnotation, b as JsonSchema7LiteralType, c as JsonObject, d as JsonParserResult, et as TypedArrayAnnotation, f as JsonSchema7AllOfType, g as JsonSchema7BigintType, h as JsonSchema7ArrayType, i as CompositeTypeAnnotation, j as JsonSchema7PrimitiveUnionType, k as JsonSchema7Primitive, l as JsonParseOptions, m as JsonSchema7AnyType, n as ClassInstance, o as InnerNode, p as JsonSchema7AnyOfType, q as PrimitiveJsonValue, r as ClassTypeAnnotation, s as JsonArray, t as Class, u as JsonParserInterface, v as JsonSchema7DateType, w as JsonSchema7NeverType, x as JsonSchema7MapType, y as JsonSchema7EnumType, z as JsonSchema7TypeUnion } from "./types-D63uxyvD.cjs";
5
+ import { a as isJsonSchema7NumberType, c as isJsonSchema7StringType, i as isJsonSchema7LiteralType, l as isJsonSchema7TupleType, n as isJsonSchema7ArrayType, o as isJsonSchema7ObjectType, r as isJsonSchema7BooleanType, s as isJsonSchema7PrimitiveLiteralType, t as isJsonSchema7AllOfType, u as isStandardJsonSchema } from "./schema-2v56H8cX.cjs";
6
+ import { t as StormJSON } from "./storm-json-ozGpy0oq.cjs";
7
7
  import { t as codeFrameColumns } from "./code-frames-ClyQ9O1l.cjs";
8
8
  import { n as parse, r as safeParse, t as Options } from "./parse-ygKFNauQ.cjs";
9
9
  import { t as formatParseError } from "./parse-error-CGKcBkMJ.cjs";
10
10
  import { n as stringify, t as invalidKeyChars } from "./stringify-mAxwby9q.cjs";
11
11
  import { t as stripComments } from "./strip-comments-AOXnoydB.cjs";
12
- export { ArrayReference, Class, ClassInstance, ClassTypeAnnotation, CompositeTypeAnnotation, CustomTypeAnnotation, InnerNode, JsonArray, JsonObject, JsonParseOptions, JsonParserInterface, JsonParserResult, JsonSchema7AllOfType, JsonSchema7AnyOfType, JsonSchema7AnyType, JsonSchema7ArrayType, JsonSchema7BigintType, JsonSchema7BooleanType, JsonSchema7DateType, JsonSchema7EnumType, JsonSchema7LiteralType, JsonSchema7MapType, JsonSchema7Meta, JsonSchema7NativeEnumType, JsonSchema7NeverType, JsonSchema7NullType, JsonSchema7NullableType, JsonSchema7NumberType, JsonSchema7ObjectType, JsonSchema7Primitive, JsonSchema7PrimitiveLiteralType, JsonSchema7PrimitiveUnionType, JsonSchema7RecordPropertyNamesType, JsonSchema7RecordType, JsonSchema7RefType, JsonSchema7SetType, JsonSchema7StringType, JsonSchema7TupleType, JsonSchema7Type, JsonSchema7TypeUnion, JsonSchema7UndefinedType, JsonSchema7UnionType, JsonSchema7UnknownType, JsonSerializeOptions, JsonValue, Leaf, LeafTypeAnnotation, ObjectReference, Options, PrimitiveJsonValue, PrimitiveTypeAnnotation, Reference, SerializableJsonValue, SimpleTypeAnnotation, StormJSON, SymbolTypeAnnotation, Tree, TypeAnnotation, TypedArrayAnnotation, canonicalJson, codeFrameColumns, escapePointerSegment, find, formatJsonPointer, formatParseError, invalidKeyChars, isArrayEnd, isArrayReference, isInteger, isJsonSchema7AllOfType, isJsonSchema7ArrayType, isJsonSchema7BooleanType, isJsonSchema7LiteralType, isJsonSchema7NumberType, isJsonSchema7ObjectType, isJsonSchema7PrimitiveLiteralType, isJsonSchema7StringType, isJsonSchema7TupleType, isObjectReference, isRoot, isStandardJsonSchema, isValidIndex, parent, parse, parseJsonPointer, safeParse, stringify, stripComments, unescapePointerSegment };
12
+ export { ArrayReference, Class, ClassInstance, ClassTypeAnnotation, CompositeTypeAnnotation, CustomTypeAnnotation, InnerNode, JsonArray, JsonObject, JsonParseOptions, JsonParserInterface, JsonParserResult, JsonSchema7AllOfType, JsonSchema7AnyOfType, JsonSchema7AnyType, JsonSchema7ArrayType, JsonSchema7BigintType, JsonSchema7BooleanType, JsonSchema7DateType, JsonSchema7EnumType, JsonSchema7LiteralType, JsonSchema7MapType, JsonSchema7Metadata, JsonSchema7NativeEnumType, JsonSchema7NeverType, JsonSchema7NullType, JsonSchema7NullableType, JsonSchema7NumberType, JsonSchema7ObjectType, JsonSchema7Primitive, JsonSchema7PrimitiveLiteralType, JsonSchema7PrimitiveUnionType, JsonSchema7RecordPropertyNamesType, JsonSchema7RecordType, JsonSchema7RefType, JsonSchema7SetType, JsonSchema7StringType, JsonSchema7TupleType, JsonSchema7Type, JsonSchema7TypeUnion, JsonSchema7UndefinedType, JsonSchema7UnionType, JsonSchema7UnknownType, JsonSerializeOptions, JsonValue, Leaf, LeafTypeAnnotation, ObjectReference, Options, PrimitiveJsonValue, PrimitiveTypeAnnotation, Reference, SerializableJsonValue, SimpleTypeAnnotation, StormJSON, SymbolTypeAnnotation, Tree, TypeAnnotation, TypedArrayAnnotation, canonicalJson, codeFrameColumns, escapePointerSegment, find, formatJsonPointer, formatParseError, invalidKeyChars, isArrayEnd, isArrayReference, isInteger, isJsonSchema7AllOfType, isJsonSchema7ArrayType, isJsonSchema7BooleanType, isJsonSchema7LiteralType, isJsonSchema7NumberType, isJsonSchema7ObjectType, isJsonSchema7PrimitiveLiteralType, isJsonSchema7StringType, isJsonSchema7TupleType, isObjectReference, isRoot, isStandardJsonSchema, isValidIndex, parent, parse, parseJsonPointer, safeParse, stringify, stripComments, unescapePointerSegment };
package/dist/index.d.mts CHANGED
@@ -1,13 +1,13 @@
1
1
  import { t as canonicalJson } from "./canonical-DZDrZ9dv.mjs";
2
2
  import { a as isArrayEnd, i as find, n as ObjectReference, o as isArrayReference, r as Reference, s as isObjectReference, t as ArrayReference } from "./find-reference-MHRH7HJ_.mjs";
3
3
  import { a as isValidIndex, c as unescapePointerSegment, i as isRoot, n as formatJsonPointer, o as parent, r as isInteger, s as parseJsonPointer, t as escapePointerSegment } from "./parse-DaiwKCLz.mjs";
4
- import { $ as TypeAnnotation, A as JsonSchema7PrimitiveLiteralType, B as JsonSchema7UndefinedType, C as JsonSchema7NativeEnumType, D as JsonSchema7NumberType, E as JsonSchema7NullableType, F as JsonSchema7SetType, G as Leaf, H as JsonSchema7UnknownType, I as JsonSchema7StringType, J as PrimitiveTypeAnnotation, K as LeafTypeAnnotation, L as JsonSchema7TupleType, M as JsonSchema7RecordPropertyNamesType, N as JsonSchema7RecordType, O as JsonSchema7ObjectType, P as JsonSchema7RefType, Q as Tree, R as JsonSchema7Type, S as JsonSchema7Meta, T as JsonSchema7NullType, U as JsonSerializeOptions, V as JsonSchema7UnionType, W as JsonValue, X as SimpleTypeAnnotation, Y as SerializableJsonValue, Z as SymbolTypeAnnotation, _ as JsonSchema7BooleanType, a as CustomTypeAnnotation, b as JsonSchema7LiteralType, c as JsonObject, d as JsonParserResult, et as TypedArrayAnnotation, f as JsonSchema7AllOfType, g as JsonSchema7BigintType, h as JsonSchema7ArrayType, i as CompositeTypeAnnotation, j as JsonSchema7PrimitiveUnionType, k as JsonSchema7Primitive, l as JsonParseOptions, m as JsonSchema7AnyType, n as ClassInstance, o as InnerNode, p as JsonSchema7AnyOfType, q as PrimitiveJsonValue, r as ClassTypeAnnotation, s as JsonArray, t as Class, u as JsonParserInterface, v as JsonSchema7DateType, w as JsonSchema7NeverType, x as JsonSchema7MapType, y as JsonSchema7EnumType, z as JsonSchema7TypeUnion } from "./types-BAtAPir9.mjs";
5
- import { a as isJsonSchema7NumberType, c as isJsonSchema7StringType, i as isJsonSchema7LiteralType, l as isJsonSchema7TupleType, n as isJsonSchema7ArrayType, o as isJsonSchema7ObjectType, r as isJsonSchema7BooleanType, s as isJsonSchema7PrimitiveLiteralType, t as isJsonSchema7AllOfType, u as isStandardJsonSchema } from "./schema-D5wPTiM4.mjs";
6
- import { t as StormJSON } from "./storm-json-DJwb3Ou-.mjs";
4
+ import { $ as TypeAnnotation, A as JsonSchema7PrimitiveLiteralType, B as JsonSchema7UndefinedType, C as JsonSchema7NativeEnumType, D as JsonSchema7NumberType, E as JsonSchema7NullableType, F as JsonSchema7SetType, G as Leaf, H as JsonSchema7UnknownType, I as JsonSchema7StringType, J as PrimitiveTypeAnnotation, K as LeafTypeAnnotation, L as JsonSchema7TupleType, M as JsonSchema7RecordPropertyNamesType, N as JsonSchema7RecordType, O as JsonSchema7ObjectType, P as JsonSchema7RefType, Q as Tree, R as JsonSchema7Type, S as JsonSchema7Metadata, T as JsonSchema7NullType, U as JsonSerializeOptions, V as JsonSchema7UnionType, W as JsonValue, X as SimpleTypeAnnotation, Y as SerializableJsonValue, Z as SymbolTypeAnnotation, _ as JsonSchema7BooleanType, a as CustomTypeAnnotation, b as JsonSchema7LiteralType, c as JsonObject, d as JsonParserResult, et as TypedArrayAnnotation, f as JsonSchema7AllOfType, g as JsonSchema7BigintType, h as JsonSchema7ArrayType, i as CompositeTypeAnnotation, j as JsonSchema7PrimitiveUnionType, k as JsonSchema7Primitive, l as JsonParseOptions, m as JsonSchema7AnyType, n as ClassInstance, o as InnerNode, p as JsonSchema7AnyOfType, q as PrimitiveJsonValue, r as ClassTypeAnnotation, s as JsonArray, t as Class, u as JsonParserInterface, v as JsonSchema7DateType, w as JsonSchema7NeverType, x as JsonSchema7MapType, y as JsonSchema7EnumType, z as JsonSchema7TypeUnion } from "./types-BIGezdc1.mjs";
5
+ import { a as isJsonSchema7NumberType, c as isJsonSchema7StringType, i as isJsonSchema7LiteralType, l as isJsonSchema7TupleType, n as isJsonSchema7ArrayType, o as isJsonSchema7ObjectType, r as isJsonSchema7BooleanType, s as isJsonSchema7PrimitiveLiteralType, t as isJsonSchema7AllOfType, u as isStandardJsonSchema } from "./schema-gkar7Syy.mjs";
6
+ import { t as StormJSON } from "./storm-json-CPrgK23I.mjs";
7
7
  import { t as codeFrameColumns } from "./code-frames-BOS_tt9F.mjs";
8
8
  import { n as parse, r as safeParse, t as Options } from "./parse-XXQfTfNE.mjs";
9
9
  import { t as formatParseError } from "./parse-error-CDt01Gvc.mjs";
10
10
  import { n as stringify, t as invalidKeyChars } from "./stringify-DtMcg2Wy.mjs";
11
11
  import { t as stripComments } from "./strip-comments-BNN6Uf4e.mjs";
12
12
  import "./index-e6k85DKM.mjs";
13
- export { ArrayReference, Class, ClassInstance, ClassTypeAnnotation, CompositeTypeAnnotation, CustomTypeAnnotation, InnerNode, JsonArray, JsonObject, JsonParseOptions, JsonParserInterface, JsonParserResult, JsonSchema7AllOfType, JsonSchema7AnyOfType, JsonSchema7AnyType, JsonSchema7ArrayType, JsonSchema7BigintType, JsonSchema7BooleanType, JsonSchema7DateType, JsonSchema7EnumType, JsonSchema7LiteralType, JsonSchema7MapType, JsonSchema7Meta, JsonSchema7NativeEnumType, JsonSchema7NeverType, JsonSchema7NullType, JsonSchema7NullableType, JsonSchema7NumberType, JsonSchema7ObjectType, JsonSchema7Primitive, JsonSchema7PrimitiveLiteralType, JsonSchema7PrimitiveUnionType, JsonSchema7RecordPropertyNamesType, JsonSchema7RecordType, JsonSchema7RefType, JsonSchema7SetType, JsonSchema7StringType, JsonSchema7TupleType, JsonSchema7Type, JsonSchema7TypeUnion, JsonSchema7UndefinedType, JsonSchema7UnionType, JsonSchema7UnknownType, JsonSerializeOptions, JsonValue, Leaf, LeafTypeAnnotation, ObjectReference, Options, PrimitiveJsonValue, PrimitiveTypeAnnotation, Reference, SerializableJsonValue, SimpleTypeAnnotation, StormJSON, SymbolTypeAnnotation, Tree, TypeAnnotation, TypedArrayAnnotation, canonicalJson, codeFrameColumns, escapePointerSegment, find, formatJsonPointer, formatParseError, invalidKeyChars, isArrayEnd, isArrayReference, isInteger, isJsonSchema7AllOfType, isJsonSchema7ArrayType, isJsonSchema7BooleanType, isJsonSchema7LiteralType, isJsonSchema7NumberType, isJsonSchema7ObjectType, isJsonSchema7PrimitiveLiteralType, isJsonSchema7StringType, isJsonSchema7TupleType, isObjectReference, isRoot, isStandardJsonSchema, isValidIndex, parent, parse, parseJsonPointer, safeParse, stringify, stripComments, unescapePointerSegment };
13
+ export { ArrayReference, Class, ClassInstance, ClassTypeAnnotation, CompositeTypeAnnotation, CustomTypeAnnotation, InnerNode, JsonArray, JsonObject, JsonParseOptions, JsonParserInterface, JsonParserResult, JsonSchema7AllOfType, JsonSchema7AnyOfType, JsonSchema7AnyType, JsonSchema7ArrayType, JsonSchema7BigintType, JsonSchema7BooleanType, JsonSchema7DateType, JsonSchema7EnumType, JsonSchema7LiteralType, JsonSchema7MapType, JsonSchema7Metadata, JsonSchema7NativeEnumType, JsonSchema7NeverType, JsonSchema7NullType, JsonSchema7NullableType, JsonSchema7NumberType, JsonSchema7ObjectType, JsonSchema7Primitive, JsonSchema7PrimitiveLiteralType, JsonSchema7PrimitiveUnionType, JsonSchema7RecordPropertyNamesType, JsonSchema7RecordType, JsonSchema7RefType, JsonSchema7SetType, JsonSchema7StringType, JsonSchema7TupleType, JsonSchema7Type, JsonSchema7TypeUnion, JsonSchema7UndefinedType, JsonSchema7UnionType, JsonSchema7UnknownType, JsonSerializeOptions, JsonValue, Leaf, LeafTypeAnnotation, ObjectReference, Options, PrimitiveJsonValue, PrimitiveTypeAnnotation, Reference, SerializableJsonValue, SimpleTypeAnnotation, StormJSON, SymbolTypeAnnotation, Tree, TypeAnnotation, TypedArrayAnnotation, canonicalJson, codeFrameColumns, escapePointerSegment, find, formatJsonPointer, formatParseError, invalidKeyChars, isArrayEnd, isArrayReference, isInteger, isJsonSchema7AllOfType, isJsonSchema7ArrayType, isJsonSchema7BooleanType, isJsonSchema7LiteralType, isJsonSchema7NumberType, isJsonSchema7ObjectType, isJsonSchema7PrimitiveLiteralType, isJsonSchema7StringType, isJsonSchema7TupleType, isObjectReference, isRoot, isStandardJsonSchema, isValidIndex, parent, parse, parseJsonPointer, safeParse, stringify, stripComments, unescapePointerSegment };
@@ -1,4 +1,4 @@
1
- import { A as JsonSchema7PrimitiveLiteralType, D as JsonSchema7NumberType, I as JsonSchema7StringType, L as JsonSchema7TupleType, O as JsonSchema7ObjectType, R as JsonSchema7Type, _ as JsonSchema7BooleanType, b as JsonSchema7LiteralType, f as JsonSchema7AllOfType, h as JsonSchema7ArrayType } from "./types-BzNIRhpI.cjs";
1
+ import { A as JsonSchema7PrimitiveLiteralType, D as JsonSchema7NumberType, I as JsonSchema7StringType, L as JsonSchema7TupleType, O as JsonSchema7ObjectType, _ as JsonSchema7BooleanType, b as JsonSchema7LiteralType, f as JsonSchema7AllOfType, h as JsonSchema7ArrayType } from "./types-D63uxyvD.cjs";
2
2
  import { StandardJSONSchemaV1 } from "@standard-schema/spec";
3
3
 
4
4
  //#region src/schema.d.ts
@@ -9,63 +9,63 @@ import { StandardJSONSchemaV1 } from "@standard-schema/spec";
9
9
  * @param schema - The schema to check
10
10
  * @returns True if the schema is a {@link JsonSchema7AllOfType}, false otherwise
11
11
  */
12
- declare function isJsonSchema7AllOfType(schema: JsonSchema7Type): schema is JsonSchema7AllOfType;
12
+ declare function isJsonSchema7AllOfType(schema: any): schema is JsonSchema7AllOfType;
13
13
  /**
14
14
  * Type guard for {@link JsonSchema7ObjectType}
15
15
  *
16
16
  * @param schema - The schema to check
17
17
  * @returns True if the schema is a {@link JsonSchema7ObjectType}, false otherwise
18
18
  */
19
- declare function isJsonSchema7ObjectType(schema: JsonSchema7Type): schema is JsonSchema7ObjectType;
19
+ declare function isJsonSchema7ObjectType(schema: any): schema is JsonSchema7ObjectType;
20
20
  /**
21
21
  * Type guard for {@link JsonSchema7StringType}
22
22
  *
23
23
  * @param schema - The schema to check
24
24
  * @returns True if the schema is a {@link JsonSchema7StringType}, false otherwise
25
25
  */
26
- declare function isJsonSchema7StringType(schema: JsonSchema7Type): schema is JsonSchema7StringType;
26
+ declare function isJsonSchema7StringType(schema: any): schema is JsonSchema7StringType;
27
27
  /**
28
28
  * Type guard for {@link JsonSchema7NumberType}
29
29
  *
30
30
  * @param schema - The schema to check
31
31
  * @returns True if the schema is a {@link JsonSchema7NumberType}, false otherwise
32
32
  */
33
- declare function isJsonSchema7NumberType(schema: JsonSchema7Type): schema is JsonSchema7NumberType;
33
+ declare function isJsonSchema7NumberType(schema: any): schema is JsonSchema7NumberType;
34
34
  /**
35
35
  * Type guard for {@link JsonSchema7BooleanType}
36
36
  *
37
37
  * @param schema - The schema to check
38
38
  * @returns True if the schema is a {@link JsonSchema7BooleanType}, false otherwise
39
39
  */
40
- declare function isJsonSchema7BooleanType(schema: JsonSchema7Type): schema is JsonSchema7BooleanType;
40
+ declare function isJsonSchema7BooleanType(schema: any): schema is JsonSchema7BooleanType;
41
41
  /**
42
42
  * Type guard for {@link JsonSchema7ArrayType}
43
43
  *
44
44
  * @param schema - The schema to check
45
45
  * @returns True if the schema is a {@link JsonSchema7ArrayType}, false otherwise
46
46
  */
47
- declare function isJsonSchema7ArrayType(schema: JsonSchema7Type): schema is JsonSchema7ArrayType;
47
+ declare function isJsonSchema7ArrayType(schema: any): schema is JsonSchema7ArrayType;
48
48
  /**
49
49
  * Type guard for {@link JsonSchema7TupleType}
50
50
  *
51
51
  * @param schema - The schema to check
52
52
  * @returns True if the schema is a {@link JsonSchema7TupleType}, false otherwise
53
53
  */
54
- declare function isJsonSchema7TupleType(schema: JsonSchema7Type): schema is JsonSchema7TupleType;
54
+ declare function isJsonSchema7TupleType(schema: any): schema is JsonSchema7TupleType;
55
55
  /**
56
56
  * Type guard for {@link JsonSchema7PrimitiveLiteralType}
57
57
  *
58
58
  * @param schema - The schema to check
59
59
  * @returns True if the schema is a {@link JsonSchema7PrimitiveLiteralType}, false otherwise
60
60
  */
61
- declare function isJsonSchema7PrimitiveLiteralType(schema: JsonSchema7Type): schema is JsonSchema7PrimitiveLiteralType;
61
+ declare function isJsonSchema7PrimitiveLiteralType(schema: any): schema is JsonSchema7PrimitiveLiteralType;
62
62
  /**
63
63
  * Type guard for {@link JsonSchema7LiteralType}
64
64
  *
65
65
  * @param schema - The schema to check
66
66
  * @returns True if the schema is a {@link JsonSchema7LiteralType}, false otherwise
67
67
  */
68
- declare function isJsonSchema7LiteralType(schema: JsonSchema7Type): schema is JsonSchema7LiteralType;
68
+ declare function isJsonSchema7LiteralType(schema: any): schema is JsonSchema7LiteralType;
69
69
  /**
70
70
  * Type guard to check if a value is a {@link StandardJSONSchemaV1 | Standard JSON Schema}.
71
71
  *
@@ -80,4 +80,4 @@ declare function isJsonSchema7LiteralType(schema: JsonSchema7Type): schema is Js
80
80
  declare function isStandardJsonSchema<Input = unknown, Output = Input>(value: any): value is StandardJSONSchemaV1<Input, Output>;
81
81
  //#endregion
82
82
  export { isJsonSchema7NumberType as a, isJsonSchema7StringType as c, isJsonSchema7LiteralType as i, isJsonSchema7TupleType as l, isJsonSchema7ArrayType as n, isJsonSchema7ObjectType as o, isJsonSchema7BooleanType as r, isJsonSchema7PrimitiveLiteralType as s, isJsonSchema7AllOfType as t, isStandardJsonSchema as u };
83
- //# sourceMappingURL=schema-CuBX00tF.d.cts.map
83
+ //# sourceMappingURL=schema-2v56H8cX.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schema-2v56H8cX.d.cts","names":[],"sources":["../src/schema.ts"],"sourcesContent":[],"mappings":";;;;;;;AAuCA;AAgBA;AAYA;AAYA;AAcgB,iBAtDA,sBAAA,CAwDH,MAAA,EAAA,GAAA,CAAA,EAAA,MAAsB,IAtDtB,oBAsDsB;AAUnC;AAYA;AAiBA;AAwBA;AAyBA;;AAEiC,iBAlIjB,uBAAA,CAkIiB,MAAA,EAAA,GAAA,CAAA,EAAA,MAAA,IAhIpB,qBAgIoB;;;;;;;iBAtHjB,uBAAA,yBAEH;;;;;;;iBAUG,uBAAA,yBAEH;;;;;;;iBAYG,wBAAA,yBAEH;;;;;;;iBAUG,sBAAA,yBAEH;;;;;;;iBAUG,sBAAA,yBAEH;;;;;;;iBAeG,iCAAA,yBAEH;;;;;;;iBAsBG,wBAAA,yBAEH;;;;;;;;;;;;iBAuBG,+CAA+C,6BAEnD,qBAAqB,OAAO"}
@@ -1 +1 @@
1
- {"version":3,"file":"schema-DpcwD3dE.mjs","names":[],"sources":["../src/schema.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Stryke\n\n This code was released as part of the Stryke project. Stryke\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/stryke.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/stryke\n Documentation: https://docs.stormsoftware.com/projects/stryke\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport type { StandardJSONSchemaV1 } from \"@standard-schema/spec\";\nimport { isFunction } from \"@stryke/type-checks/is-function\";\nimport { isSetObject } from \"@stryke/type-checks/is-set-object\";\nimport type {\n JsonSchema7AllOfType,\n JsonSchema7ArrayType,\n JsonSchema7BooleanType,\n JsonSchema7LiteralType,\n JsonSchema7NumberType,\n JsonSchema7ObjectType,\n JsonSchema7PrimitiveLiteralType,\n JsonSchema7StringType,\n JsonSchema7TupleType,\n JsonSchema7Type\n} from \"./types\";\n\n/**\n * Type guard for {@link JsonSchema7AllOfType}\n *\n * @param schema - The schema to check\n * @returns True if the schema is a {@link JsonSchema7AllOfType}, false otherwise\n */\nexport function isJsonSchema7AllOfType(\n schema: JsonSchema7Type\n): schema is JsonSchema7AllOfType {\n if (\"type\" in schema && schema.type === \"string\") {\n return false;\n }\n\n return \"allOf\" in schema;\n}\n\n/**\n * Type guard for {@link JsonSchema7ObjectType}\n *\n * @param schema - The schema to check\n * @returns True if the schema is a {@link JsonSchema7ObjectType}, false otherwise\n */\nexport function isJsonSchema7ObjectType(\n schema: JsonSchema7Type\n): schema is JsonSchema7ObjectType {\n return \"type\" in schema && schema.type === \"object\";\n}\n\n/**\n * Type guard for {@link JsonSchema7StringType}\n *\n * @param schema - The schema to check\n * @returns True if the schema is a {@link JsonSchema7StringType}, false otherwise\n */\nexport function isJsonSchema7StringType(\n schema: JsonSchema7Type\n): schema is JsonSchema7StringType {\n return \"type\" in schema && schema.type === \"string\";\n}\n\n/**\n * Type guard for {@link JsonSchema7NumberType}\n *\n * @param schema - The schema to check\n * @returns True if the schema is a {@link JsonSchema7NumberType}, false otherwise\n */\nexport function isJsonSchema7NumberType(\n schema: JsonSchema7Type\n): schema is JsonSchema7NumberType {\n return (\n \"type\" in schema && (schema.type === \"number\" || schema.type === \"integer\")\n );\n}\n\n/**\n * Type guard for {@link JsonSchema7BooleanType}\n *\n * @param schema - The schema to check\n * @returns True if the schema is a {@link JsonSchema7BooleanType}, false otherwise\n */\nexport function isJsonSchema7BooleanType(\n schema: JsonSchema7Type\n): schema is JsonSchema7BooleanType {\n return \"type\" in schema && schema.type === \"boolean\";\n}\n\n/**\n * Type guard for {@link JsonSchema7ArrayType}\n *\n * @param schema - The schema to check\n * @returns True if the schema is a {@link JsonSchema7ArrayType}, false otherwise\n */\nexport function isJsonSchema7ArrayType(\n schema: JsonSchema7Type\n): schema is JsonSchema7ArrayType {\n return \"type\" in schema && schema.type === \"array\" && \"items\" in schema;\n}\n\n/**\n * Type guard for {@link JsonSchema7TupleType}\n *\n * @param schema - The schema to check\n * @returns True if the schema is a {@link JsonSchema7TupleType}, false otherwise\n */\nexport function isJsonSchema7TupleType(\n schema: JsonSchema7Type\n): schema is JsonSchema7TupleType {\n return (\n \"type\" in schema &&\n schema.type === \"array\" &&\n \"items\" in schema &&\n Array.isArray(schema.items)\n );\n}\n\n/**\n * Type guard for {@link JsonSchema7PrimitiveLiteralType}\n *\n * @param schema - The schema to check\n * @returns True if the schema is a {@link JsonSchema7PrimitiveLiteralType}, false otherwise\n */\nexport function isJsonSchema7PrimitiveLiteralType(\n schema: JsonSchema7Type\n): schema is JsonSchema7PrimitiveLiteralType {\n if (!(\"type\" in schema)) {\n return false;\n }\n\n const { type } = schema;\n\n return (\n (type === \"string\" ||\n type === \"number\" ||\n type === \"integer\" ||\n type === \"boolean\") &&\n \"const\" in schema\n );\n}\n\n/**\n * Type guard for {@link JsonSchema7LiteralType}\n *\n * @param schema - The schema to check\n * @returns True if the schema is a {@link JsonSchema7LiteralType}, false otherwise\n */\nexport function isJsonSchema7LiteralType(\n schema: JsonSchema7Type\n): schema is JsonSchema7LiteralType {\n if (isJsonSchema7PrimitiveLiteralType(schema)) {\n return true;\n }\n\n if (!(\"type\" in schema)) {\n return false;\n }\n\n return schema.type === \"object\" || schema.type === \"array\";\n}\n\n/**\n * Type guard to check if a value is a {@link StandardJSONSchemaV1 | Standard JSON Schema}.\n *\n * @remarks\n * This function checks if the value has the structure of a Standard JSON Schema, which includes a `~standard` property with a `jsonSchema` object that has `input` and `output` functions.\n *\n * @see https://standardschema.dev/json-schema\n *\n * @param value - The value to check.\n * @returns True if the value is a {@link StandardJSONSchemaV1 | Standard JSON Schema}, false otherwise.\n */\nexport function isStandardJsonSchema<Input = unknown, Output = Input>(\n value: any\n): value is StandardJSONSchemaV1<Input, Output> {\n return (\n isSetObject(value) &&\n \"~standard\" in value &&\n isSetObject(value[\"~standard\"]) &&\n \"jsonSchema\" in value[\"~standard\"] &&\n isSetObject(value[\"~standard\"].jsonSchema) &&\n \"input\" in value[\"~standard\"].jsonSchema &&\n isFunction(value[\"~standard\"].jsonSchema.input) &&\n \"output\" in value[\"~standard\"].jsonSchema &&\n isFunction(value[\"~standard\"].jsonSchema.output)\n );\n}\n"],"mappings":";;;;;;;;;AAwCA,SAAgB,uBACd,QACgC;AAChC,KAAI,UAAU,UAAU,OAAO,SAAS,SACtC,QAAO;AAGT,QAAO,WAAW;;;;;;;;AASpB,SAAgB,wBACd,QACiC;AACjC,QAAO,UAAU,UAAU,OAAO,SAAS;;;;;;;;AAS7C,SAAgB,wBACd,QACiC;AACjC,QAAO,UAAU,UAAU,OAAO,SAAS;;;;;;;;AAS7C,SAAgB,wBACd,QACiC;AACjC,QACE,UAAU,WAAW,OAAO,SAAS,YAAY,OAAO,SAAS;;;;;;;;AAUrE,SAAgB,yBACd,QACkC;AAClC,QAAO,UAAU,UAAU,OAAO,SAAS;;;;;;;;AAS7C,SAAgB,uBACd,QACgC;AAChC,QAAO,UAAU,UAAU,OAAO,SAAS,WAAW,WAAW;;;;;;;;AASnE,SAAgB,uBACd,QACgC;AAChC,QACE,UAAU,UACV,OAAO,SAAS,WAChB,WAAW,UACX,MAAM,QAAQ,OAAO,MAAM;;;;;;;;AAU/B,SAAgB,kCACd,QAC2C;AAC3C,KAAI,EAAE,UAAU,QACd,QAAO;CAGT,MAAM,EAAE,SAAS;AAEjB,SACG,SAAS,YACR,SAAS,YACT,SAAS,aACT,SAAS,cACX,WAAW;;;;;;;;AAUf,SAAgB,yBACd,QACkC;AAClC,KAAI,kCAAkC,OAAO,CAC3C,QAAO;AAGT,KAAI,EAAE,UAAU,QACd,QAAO;AAGT,QAAO,OAAO,SAAS,YAAY,OAAO,SAAS;;;;;;;;;;;;;AAcrD,SAAgB,qBACd,OAC8C;AAC9C,QACE,YAAY,MAAM,IAClB,eAAe,SACf,YAAY,MAAM,aAAa,IAC/B,gBAAgB,MAAM,gBACtB,YAAY,MAAM,aAAa,WAAW,IAC1C,WAAW,MAAM,aAAa,cAC9B,WAAW,MAAM,aAAa,WAAW,MAAM,IAC/C,YAAY,MAAM,aAAa,cAC/B,WAAW,MAAM,aAAa,WAAW,OAAO"}
1
+ {"version":3,"file":"schema-DpcwD3dE.mjs","names":[],"sources":["../src/schema.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Stryke\n\n This code was released as part of the Stryke project. Stryke\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/stryke.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/stryke\n Documentation: https://docs.stormsoftware.com/projects/stryke\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport type { StandardJSONSchemaV1 } from \"@standard-schema/spec\";\nimport { isFunction } from \"@stryke/type-checks/is-function\";\nimport { isSetObject } from \"@stryke/type-checks/is-set-object\";\nimport type {\n JsonSchema7AllOfType,\n JsonSchema7ArrayType,\n JsonSchema7BooleanType,\n JsonSchema7LiteralType,\n JsonSchema7NumberType,\n JsonSchema7ObjectType,\n JsonSchema7PrimitiveLiteralType,\n JsonSchema7StringType,\n JsonSchema7TupleType\n} from \"./types\";\n\n/**\n * Type guard for {@link JsonSchema7AllOfType}\n *\n * @param schema - The schema to check\n * @returns True if the schema is a {@link JsonSchema7AllOfType}, false otherwise\n */\nexport function isJsonSchema7AllOfType(\n schema: any\n): schema is JsonSchema7AllOfType {\n if (\"type\" in schema && schema.type === \"string\") {\n return false;\n }\n\n return \"allOf\" in schema;\n}\n\n/**\n * Type guard for {@link JsonSchema7ObjectType}\n *\n * @param schema - The schema to check\n * @returns True if the schema is a {@link JsonSchema7ObjectType}, false otherwise\n */\nexport function isJsonSchema7ObjectType(\n schema: any\n): schema is JsonSchema7ObjectType {\n return \"type\" in schema && schema.type === \"object\";\n}\n\n/**\n * Type guard for {@link JsonSchema7StringType}\n *\n * @param schema - The schema to check\n * @returns True if the schema is a {@link JsonSchema7StringType}, false otherwise\n */\nexport function isJsonSchema7StringType(\n schema: any\n): schema is JsonSchema7StringType {\n return \"type\" in schema && schema.type === \"string\";\n}\n\n/**\n * Type guard for {@link JsonSchema7NumberType}\n *\n * @param schema - The schema to check\n * @returns True if the schema is a {@link JsonSchema7NumberType}, false otherwise\n */\nexport function isJsonSchema7NumberType(\n schema: any\n): schema is JsonSchema7NumberType {\n return (\n \"type\" in schema && (schema.type === \"number\" || schema.type === \"integer\")\n );\n}\n\n/**\n * Type guard for {@link JsonSchema7BooleanType}\n *\n * @param schema - The schema to check\n * @returns True if the schema is a {@link JsonSchema7BooleanType}, false otherwise\n */\nexport function isJsonSchema7BooleanType(\n schema: any\n): schema is JsonSchema7BooleanType {\n return \"type\" in schema && schema.type === \"boolean\";\n}\n\n/**\n * Type guard for {@link JsonSchema7ArrayType}\n *\n * @param schema - The schema to check\n * @returns True if the schema is a {@link JsonSchema7ArrayType}, false otherwise\n */\nexport function isJsonSchema7ArrayType(\n schema: any\n): schema is JsonSchema7ArrayType {\n return \"type\" in schema && schema.type === \"array\" && \"items\" in schema;\n}\n\n/**\n * Type guard for {@link JsonSchema7TupleType}\n *\n * @param schema - The schema to check\n * @returns True if the schema is a {@link JsonSchema7TupleType}, false otherwise\n */\nexport function isJsonSchema7TupleType(\n schema: any\n): schema is JsonSchema7TupleType {\n return (\n \"type\" in schema &&\n schema.type === \"array\" &&\n \"items\" in schema &&\n Array.isArray(schema.items)\n );\n}\n\n/**\n * Type guard for {@link JsonSchema7PrimitiveLiteralType}\n *\n * @param schema - The schema to check\n * @returns True if the schema is a {@link JsonSchema7PrimitiveLiteralType}, false otherwise\n */\nexport function isJsonSchema7PrimitiveLiteralType(\n schema: any\n): schema is JsonSchema7PrimitiveLiteralType {\n if (!(\"type\" in schema)) {\n return false;\n }\n\n const { type } = schema;\n\n return (\n (type === \"string\" ||\n type === \"number\" ||\n type === \"integer\" ||\n type === \"boolean\") &&\n \"const\" in schema\n );\n}\n\n/**\n * Type guard for {@link JsonSchema7LiteralType}\n *\n * @param schema - The schema to check\n * @returns True if the schema is a {@link JsonSchema7LiteralType}, false otherwise\n */\nexport function isJsonSchema7LiteralType(\n schema: any\n): schema is JsonSchema7LiteralType {\n if (isJsonSchema7PrimitiveLiteralType(schema)) {\n return true;\n }\n\n if (!(\"type\" in schema)) {\n return false;\n }\n\n return schema.type === \"object\" || schema.type === \"array\";\n}\n\n/**\n * Type guard to check if a value is a {@link StandardJSONSchemaV1 | Standard JSON Schema}.\n *\n * @remarks\n * This function checks if the value has the structure of a Standard JSON Schema, which includes a `~standard` property with a `jsonSchema` object that has `input` and `output` functions.\n *\n * @see https://standardschema.dev/json-schema\n *\n * @param value - The value to check.\n * @returns True if the value is a {@link StandardJSONSchemaV1 | Standard JSON Schema}, false otherwise.\n */\nexport function isStandardJsonSchema<Input = unknown, Output = Input>(\n value: any\n): value is StandardJSONSchemaV1<Input, Output> {\n return (\n isSetObject(value) &&\n \"~standard\" in value &&\n isSetObject(value[\"~standard\"]) &&\n \"jsonSchema\" in value[\"~standard\"] &&\n isSetObject(value[\"~standard\"].jsonSchema) &&\n \"input\" in value[\"~standard\"].jsonSchema &&\n isFunction(value[\"~standard\"].jsonSchema.input) &&\n \"output\" in value[\"~standard\"].jsonSchema &&\n isFunction(value[\"~standard\"].jsonSchema.output)\n );\n}\n"],"mappings":";;;;;;;;;AAuCA,SAAgB,uBACd,QACgC;AAChC,KAAI,UAAU,UAAU,OAAO,SAAS,SACtC,QAAO;AAGT,QAAO,WAAW;;;;;;;;AASpB,SAAgB,wBACd,QACiC;AACjC,QAAO,UAAU,UAAU,OAAO,SAAS;;;;;;;;AAS7C,SAAgB,wBACd,QACiC;AACjC,QAAO,UAAU,UAAU,OAAO,SAAS;;;;;;;;AAS7C,SAAgB,wBACd,QACiC;AACjC,QACE,UAAU,WAAW,OAAO,SAAS,YAAY,OAAO,SAAS;;;;;;;;AAUrE,SAAgB,yBACd,QACkC;AAClC,QAAO,UAAU,UAAU,OAAO,SAAS;;;;;;;;AAS7C,SAAgB,uBACd,QACgC;AAChC,QAAO,UAAU,UAAU,OAAO,SAAS,WAAW,WAAW;;;;;;;;AASnE,SAAgB,uBACd,QACgC;AAChC,QACE,UAAU,UACV,OAAO,SAAS,WAChB,WAAW,UACX,MAAM,QAAQ,OAAO,MAAM;;;;;;;;AAU/B,SAAgB,kCACd,QAC2C;AAC3C,KAAI,EAAE,UAAU,QACd,QAAO;CAGT,MAAM,EAAE,SAAS;AAEjB,SACG,SAAS,YACR,SAAS,YACT,SAAS,aACT,SAAS,cACX,WAAW;;;;;;;;AAUf,SAAgB,yBACd,QACkC;AAClC,KAAI,kCAAkC,OAAO,CAC3C,QAAO;AAGT,KAAI,EAAE,UAAU,QACd,QAAO;AAGT,QAAO,OAAO,SAAS,YAAY,OAAO,SAAS;;;;;;;;;;;;;AAcrD,SAAgB,qBACd,OAC8C;AAC9C,QACE,YAAY,MAAM,IAClB,eAAe,SACf,YAAY,MAAM,aAAa,IAC/B,gBAAgB,MAAM,gBACtB,YAAY,MAAM,aAAa,WAAW,IAC1C,WAAW,MAAM,aAAa,cAC9B,WAAW,MAAM,aAAa,WAAW,MAAM,IAC/C,YAAY,MAAM,aAAa,cAC/B,WAAW,MAAM,aAAa,WAAW,OAAO"}
@@ -1,4 +1,4 @@
1
- import { A as JsonSchema7PrimitiveLiteralType, D as JsonSchema7NumberType, I as JsonSchema7StringType, L as JsonSchema7TupleType, O as JsonSchema7ObjectType, R as JsonSchema7Type, _ as JsonSchema7BooleanType, b as JsonSchema7LiteralType, f as JsonSchema7AllOfType, h as JsonSchema7ArrayType } from "./types-BAtAPir9.mjs";
1
+ import { A as JsonSchema7PrimitiveLiteralType, D as JsonSchema7NumberType, I as JsonSchema7StringType, L as JsonSchema7TupleType, O as JsonSchema7ObjectType, _ as JsonSchema7BooleanType, b as JsonSchema7LiteralType, f as JsonSchema7AllOfType, h as JsonSchema7ArrayType } from "./types-BIGezdc1.mjs";
2
2
  import { StandardJSONSchemaV1 } from "@standard-schema/spec";
3
3
 
4
4
  //#region src/schema.d.ts
@@ -9,63 +9,63 @@ import { StandardJSONSchemaV1 } from "@standard-schema/spec";
9
9
  * @param schema - The schema to check
10
10
  * @returns True if the schema is a {@link JsonSchema7AllOfType}, false otherwise
11
11
  */
12
- declare function isJsonSchema7AllOfType(schema: JsonSchema7Type): schema is JsonSchema7AllOfType;
12
+ declare function isJsonSchema7AllOfType(schema: any): schema is JsonSchema7AllOfType;
13
13
  /**
14
14
  * Type guard for {@link JsonSchema7ObjectType}
15
15
  *
16
16
  * @param schema - The schema to check
17
17
  * @returns True if the schema is a {@link JsonSchema7ObjectType}, false otherwise
18
18
  */
19
- declare function isJsonSchema7ObjectType(schema: JsonSchema7Type): schema is JsonSchema7ObjectType;
19
+ declare function isJsonSchema7ObjectType(schema: any): schema is JsonSchema7ObjectType;
20
20
  /**
21
21
  * Type guard for {@link JsonSchema7StringType}
22
22
  *
23
23
  * @param schema - The schema to check
24
24
  * @returns True if the schema is a {@link JsonSchema7StringType}, false otherwise
25
25
  */
26
- declare function isJsonSchema7StringType(schema: JsonSchema7Type): schema is JsonSchema7StringType;
26
+ declare function isJsonSchema7StringType(schema: any): schema is JsonSchema7StringType;
27
27
  /**
28
28
  * Type guard for {@link JsonSchema7NumberType}
29
29
  *
30
30
  * @param schema - The schema to check
31
31
  * @returns True if the schema is a {@link JsonSchema7NumberType}, false otherwise
32
32
  */
33
- declare function isJsonSchema7NumberType(schema: JsonSchema7Type): schema is JsonSchema7NumberType;
33
+ declare function isJsonSchema7NumberType(schema: any): schema is JsonSchema7NumberType;
34
34
  /**
35
35
  * Type guard for {@link JsonSchema7BooleanType}
36
36
  *
37
37
  * @param schema - The schema to check
38
38
  * @returns True if the schema is a {@link JsonSchema7BooleanType}, false otherwise
39
39
  */
40
- declare function isJsonSchema7BooleanType(schema: JsonSchema7Type): schema is JsonSchema7BooleanType;
40
+ declare function isJsonSchema7BooleanType(schema: any): schema is JsonSchema7BooleanType;
41
41
  /**
42
42
  * Type guard for {@link JsonSchema7ArrayType}
43
43
  *
44
44
  * @param schema - The schema to check
45
45
  * @returns True if the schema is a {@link JsonSchema7ArrayType}, false otherwise
46
46
  */
47
- declare function isJsonSchema7ArrayType(schema: JsonSchema7Type): schema is JsonSchema7ArrayType;
47
+ declare function isJsonSchema7ArrayType(schema: any): schema is JsonSchema7ArrayType;
48
48
  /**
49
49
  * Type guard for {@link JsonSchema7TupleType}
50
50
  *
51
51
  * @param schema - The schema to check
52
52
  * @returns True if the schema is a {@link JsonSchema7TupleType}, false otherwise
53
53
  */
54
- declare function isJsonSchema7TupleType(schema: JsonSchema7Type): schema is JsonSchema7TupleType;
54
+ declare function isJsonSchema7TupleType(schema: any): schema is JsonSchema7TupleType;
55
55
  /**
56
56
  * Type guard for {@link JsonSchema7PrimitiveLiteralType}
57
57
  *
58
58
  * @param schema - The schema to check
59
59
  * @returns True if the schema is a {@link JsonSchema7PrimitiveLiteralType}, false otherwise
60
60
  */
61
- declare function isJsonSchema7PrimitiveLiteralType(schema: JsonSchema7Type): schema is JsonSchema7PrimitiveLiteralType;
61
+ declare function isJsonSchema7PrimitiveLiteralType(schema: any): schema is JsonSchema7PrimitiveLiteralType;
62
62
  /**
63
63
  * Type guard for {@link JsonSchema7LiteralType}
64
64
  *
65
65
  * @param schema - The schema to check
66
66
  * @returns True if the schema is a {@link JsonSchema7LiteralType}, false otherwise
67
67
  */
68
- declare function isJsonSchema7LiteralType(schema: JsonSchema7Type): schema is JsonSchema7LiteralType;
68
+ declare function isJsonSchema7LiteralType(schema: any): schema is JsonSchema7LiteralType;
69
69
  /**
70
70
  * Type guard to check if a value is a {@link StandardJSONSchemaV1 | Standard JSON Schema}.
71
71
  *
@@ -80,4 +80,4 @@ declare function isJsonSchema7LiteralType(schema: JsonSchema7Type): schema is Js
80
80
  declare function isStandardJsonSchema<Input = unknown, Output = Input>(value: any): value is StandardJSONSchemaV1<Input, Output>;
81
81
  //#endregion
82
82
  export { isJsonSchema7NumberType as a, isJsonSchema7StringType as c, isJsonSchema7LiteralType as i, isJsonSchema7TupleType as l, isJsonSchema7ArrayType as n, isJsonSchema7ObjectType as o, isJsonSchema7BooleanType as r, isJsonSchema7PrimitiveLiteralType as s, isJsonSchema7AllOfType as t, isStandardJsonSchema as u };
83
- //# sourceMappingURL=schema-D5wPTiM4.d.mts.map
83
+ //# sourceMappingURL=schema-gkar7Syy.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schema-gkar7Syy.d.mts","names":[],"sources":["../src/schema.ts"],"sourcesContent":[],"mappings":";;;;;;;AAuCA;AAgBA;AAYA;AAYA;AAcgB,iBAtDA,sBAAA,CAwDH,MAAA,EAAA,GAAA,CAAA,EAAA,MAAsB,IAtDtB,oBAsDsB;AAUnC;AAYA;AAiBA;AAwBA;AAyBA;;AAEiC,iBAlIjB,uBAAA,CAkIiB,MAAA,EAAA,GAAA,CAAA,EAAA,MAAA,IAhIpB,qBAgIoB;;;;;;;iBAtHjB,uBAAA,yBAEH;;;;;;;iBAUG,uBAAA,yBAEH;;;;;;;iBAYG,wBAAA,yBAEH;;;;;;;iBAUG,sBAAA,yBAEH;;;;;;;iBAUG,sBAAA,yBAEH;;;;;;;iBAeG,iCAAA,yBAEH;;;;;;;iBAsBG,wBAAA,yBAEH;;;;;;;;;;;;iBAuBG,+CAA+C,6BAEnD,qBAAqB,OAAO"}
package/dist/schema.d.cts CHANGED
@@ -1,2 +1,2 @@
1
- import { a as isJsonSchema7NumberType, c as isJsonSchema7StringType, i as isJsonSchema7LiteralType, l as isJsonSchema7TupleType, n as isJsonSchema7ArrayType, o as isJsonSchema7ObjectType, r as isJsonSchema7BooleanType, s as isJsonSchema7PrimitiveLiteralType, t as isJsonSchema7AllOfType, u as isStandardJsonSchema } from "./schema-CuBX00tF.cjs";
1
+ import { a as isJsonSchema7NumberType, c as isJsonSchema7StringType, i as isJsonSchema7LiteralType, l as isJsonSchema7TupleType, n as isJsonSchema7ArrayType, o as isJsonSchema7ObjectType, r as isJsonSchema7BooleanType, s as isJsonSchema7PrimitiveLiteralType, t as isJsonSchema7AllOfType, u as isStandardJsonSchema } from "./schema-2v56H8cX.cjs";
2
2
  export { isJsonSchema7AllOfType, isJsonSchema7ArrayType, isJsonSchema7BooleanType, isJsonSchema7LiteralType, isJsonSchema7NumberType, isJsonSchema7ObjectType, isJsonSchema7PrimitiveLiteralType, isJsonSchema7StringType, isJsonSchema7TupleType, isStandardJsonSchema };
package/dist/schema.d.mts CHANGED
@@ -1,3 +1,3 @@
1
- import "./types-BAtAPir9.mjs";
2
- import { a as isJsonSchema7NumberType, c as isJsonSchema7StringType, i as isJsonSchema7LiteralType, l as isJsonSchema7TupleType, n as isJsonSchema7ArrayType, o as isJsonSchema7ObjectType, r as isJsonSchema7BooleanType, s as isJsonSchema7PrimitiveLiteralType, t as isJsonSchema7AllOfType, u as isStandardJsonSchema } from "./schema-D5wPTiM4.mjs";
1
+ import "./types-BIGezdc1.mjs";
2
+ import { a as isJsonSchema7NumberType, c as isJsonSchema7StringType, i as isJsonSchema7LiteralType, l as isJsonSchema7TupleType, n as isJsonSchema7ArrayType, o as isJsonSchema7ObjectType, r as isJsonSchema7BooleanType, s as isJsonSchema7PrimitiveLiteralType, t as isJsonSchema7AllOfType, u as isStandardJsonSchema } from "./schema-gkar7Syy.mjs";
3
3
  export { isJsonSchema7AllOfType, isJsonSchema7ArrayType, isJsonSchema7BooleanType, isJsonSchema7LiteralType, isJsonSchema7NumberType, isJsonSchema7ObjectType, isJsonSchema7PrimitiveLiteralType, isJsonSchema7StringType, isJsonSchema7TupleType, isStandardJsonSchema };
@@ -1,4 +1,4 @@
1
- import { U as JsonSerializeOptions, W as JsonValue, d as JsonParserResult, l as JsonParseOptions, t as Class } from "./types-BAtAPir9.mjs";
1
+ import { U as JsonSerializeOptions, W as JsonValue, d as JsonParserResult, l as JsonParseOptions, t as Class } from "./types-BIGezdc1.mjs";
2
2
  import SuperJSON from "superjson";
3
3
 
4
4
  //#region src/storm-json.d.ts
@@ -67,4 +67,4 @@ declare class StormJSON extends SuperJSON {
67
67
  }
68
68
  //#endregion
69
69
  export { StormJSON as t };
70
- //# sourceMappingURL=storm-json-DJwb3Ou-.d.mts.map
70
+ //# sourceMappingURL=storm-json-CPrgK23I.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"storm-json-DJwb3Ou-.d.mts","names":[],"sources":["../src/storm-json.ts"],"sourcesContent":[],"mappings":";;;;;;;AA0CA;;;;AAuB2C,cAvB9B,SAAA,SAAkB,SAAA,CAuBY;EAAY,CAAA,OAAA;EAUS,WAAA,QAAA,CAAA,CAAA,EA9BhC,SA8BgC;EAarD;;;EAyBN,OAAA,WAAA,CAAA,QAAA,OAAA,CAAA,CAAA,OAAA,EAxDQ,gBAwDR,CAAA,EAvDA,KAuDA;EAiCmB;;;EAGQ,OAAA,SAAA,CAAA,MAAA,EApFW,SAoFX,CAAA,EApFuB,gBAoFvB;EACR;;;;;;gDA3EwC;;;;;;;;;6BAarD,aACG;;;;;;;;;+DAuBA,mBACT;;;;;;;;;mDAiCmB,YAAY,2CAGd,UAAU,iCACR,gBAAgB,4CACC;;;;;;yCAkBnB"}
1
+ {"version":3,"file":"storm-json-CPrgK23I.d.mts","names":[],"sources":["../src/storm-json.ts"],"sourcesContent":[],"mappings":";;;;;;;AA0CA;;;;AAuB2C,cAvB9B,SAAA,SAAkB,SAAA,CAuBY;EAAY,CAAA,OAAA;EAUS,WAAA,QAAA,CAAA,CAAA,EA9BhC,SA8BgC;EAarD;;;EAyBN,OAAA,WAAA,CAAA,QAAA,OAAA,CAAA,CAAA,OAAA,EAxDQ,gBAwDR,CAAA,EAvDA,KAuDA;EAiCmB;;;EAGQ,OAAA,SAAA,CAAA,MAAA,EApFW,SAoFX,CAAA,EApFuB,gBAoFvB;EACR;;;;;;gDA3EwC;;;;;;;;;6BAarD,aACG;;;;;;;;;+DAuBA,mBACT;;;;;;;;;mDAiCmB,YAAY,2CAGd,UAAU,iCACR,gBAAgB,4CACC;;;;;;yCAkBnB"}
@@ -1,4 +1,4 @@
1
- import { U as JsonSerializeOptions, W as JsonValue, d as JsonParserResult, l as JsonParseOptions, t as Class } from "./types-BzNIRhpI.cjs";
1
+ import { U as JsonSerializeOptions, W as JsonValue, d as JsonParserResult, l as JsonParseOptions, t as Class } from "./types-D63uxyvD.cjs";
2
2
  import SuperJSON from "superjson";
3
3
 
4
4
  //#region src/storm-json.d.ts
@@ -67,4 +67,4 @@ declare class StormJSON extends SuperJSON {
67
67
  }
68
68
  //#endregion
69
69
  export { StormJSON as t };
70
- //# sourceMappingURL=storm-json-DiBg5b6r.d.cts.map
70
+ //# sourceMappingURL=storm-json-ozGpy0oq.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"storm-json-DiBg5b6r.d.cts","names":[],"sources":["../src/storm-json.ts"],"sourcesContent":[],"mappings":";;;;;;;AA0CA;;;;AAuB2C,cAvB9B,SAAA,SAAkB,SAAA,CAuBY;EAAY,CAAA,OAAA;EAUS,WAAA,QAAA,CAAA,CAAA,EA9BhC,SA8BgC;EAarD;;;EAyBN,OAAA,WAAA,CAAA,QAAA,OAAA,CAAA,CAAA,OAAA,EAxDQ,gBAwDR,CAAA,EAvDA,KAuDA;EAiCmB;;;EAGQ,OAAA,SAAA,CAAA,MAAA,EApFW,SAoFX,CAAA,EApFuB,gBAoFvB;EACR;;;;;;gDA3EwC;;;;;;;;;6BAarD,aACG;;;;;;;;;+DAuBA,mBACT;;;;;;;;;mDAiCmB,YAAY,2CAGd,UAAU,iCACR,gBAAgB,4CACC;;;;;;yCAkBnB"}
1
+ {"version":3,"file":"storm-json-ozGpy0oq.d.cts","names":[],"sources":["../src/storm-json.ts"],"sourcesContent":[],"mappings":";;;;;;;AA0CA;;;;AAuB2C,cAvB9B,SAAA,SAAkB,SAAA,CAuBY;EAAY,CAAA,OAAA;EAUS,WAAA,QAAA,CAAA,CAAA,EA9BhC,SA8BgC;EAarD;;;EAyBN,OAAA,WAAA,CAAA,QAAA,OAAA,CAAA,CAAA,OAAA,EAxDQ,gBAwDR,CAAA,EAvDA,KAuDA;EAiCmB;;;EAGQ,OAAA,SAAA,CAAA,MAAA,EApFW,SAoFX,CAAA,EApFuB,gBAoFvB;EACR;;;;;;gDA3EwC;;;;;;;;;6BAarD,aACG;;;;;;;;;+DAuBA,mBACT;;;;;;;;;mDAiCmB,YAAY,2CAGd,UAAU,iCACR,gBAAgB,4CACC;;;;;;yCAkBnB"}
@@ -1,2 +1,2 @@
1
- import { t as StormJSON } from "./storm-json-DiBg5b6r.cjs";
1
+ import { t as StormJSON } from "./storm-json-ozGpy0oq.cjs";
2
2
  export { StormJSON };
@@ -1,3 +1,3 @@
1
- import "./types-BAtAPir9.mjs";
2
- import { t as StormJSON } from "./storm-json-DJwb3Ou-.mjs";
1
+ import "./types-BIGezdc1.mjs";
2
+ import { t as StormJSON } from "./storm-json-CPrgK23I.mjs";
3
3
  export { StormJSON };
@@ -64,16 +64,68 @@ interface JsonParserInterface {
64
64
  deserialize: <TData = any>(payload: JsonParserResult) => TData;
65
65
  register: <TData = any, TJsonValue extends JsonValue = JsonValue>(name: string, serialize: (object: JsonValue) => TJsonValue, deserialize: (payload: TJsonValue) => TData, isApplicable: (data: any) => data is TData) => void;
66
66
  }
67
- interface JsonSchema7AnyType {
67
+ interface JsonSchema7Metadata {
68
+ /**
69
+ * The `$id` keyword is used to identify a schema and can be used for referencing the schema within other schemas. It is a URI that serves as a unique identifier for the schema.
70
+ *
71
+ * @see https://datatracker.ietf.org/doc/html/draft-handrews-json-schema-validation-01#section-8.2.1
72
+ */
73
+ $id?: string;
74
+ /**
75
+ * The `$schema` keyword is used to specify the version of the JSON Schema specification that the schema adheres to. It is a URI that indicates which version of the JSON Schema specification the schema is written against.
76
+ *
77
+ * @see https://datatracker.ietf.org/doc/html/draft-handrews-json-schema-validation-01#section-8.2.2
78
+ */
79
+ $schema?: string;
80
+ /**
81
+ * The `$comment` keyword is used to add comments to a JSON Schema. It allows schema authors to include human-readable explanations or notes within the schema without affecting its validation behavior.
82
+ *
83
+ * @see https://datatracker.ietf.org/doc/html/draft-handrews-json-schema-validation-01#section-8.2.3
84
+ */
85
+ $comment?: string;
86
+ /**
87
+ * The `$defs` keyword is used to define reusable sub-schemas within a JSON Schema. It allows you to define sub-schemas that can be referenced elsewhere in the schema using the `$ref` keyword. The `$defs` keyword is an object where each key is a unique identifier for the sub-schema, and the value is the sub-schema itself.
88
+ *
89
+ * @see https://datatracker.ietf.org/doc/html/draft-handrews-json-schema-validation-01#section-8.2.4
90
+ * @see https://datatracker.ietf.org/doc/html/draft-bhutton-json-schema-00#section-8.2.4
91
+ * @see https://datatracker.ietf.org/doc/html/draft-bhutton-json-schema-validation-00#appendix-A
92
+ */
93
+ $defs?: {
94
+ [key: string]: JsonSchema7Type;
95
+ };
96
+ /**
97
+ * The `name` keyword is a custom metadata property that can be used to provide a human-readable name for the schema. It is not part of the official JSON Schema specification but can be useful for documentation and identification purposes.
98
+ */
99
+ name?: string;
100
+ /**
101
+ * The `title` keyword is a custom metadata property that can be used to provide a human-readable title for the schema. It is not part of the official JSON Schema specification but can be useful for documentation and identification purposes.
102
+ */
103
+ title?: string;
104
+ /**
105
+ * The `default` keyword is used to specify a default value for a property in a JSON Schema. It provides a default value that can be used when an instance does not provide a value for that property.
106
+ *
107
+ * @see https://datatracker.ietf.org/doc/html/draft-handrews-json-schema-validation-01#section-8.2.5
108
+ */
109
+ default?: any;
110
+ /**
111
+ * The `description` keyword is used to provide a human-readable description of the schema or a specific property within the schema. It is not part of the official JSON Schema specification but can be useful for documentation purposes.
112
+ */
113
+ description?: string;
114
+ /**
115
+ * The `alias` keyword is a custom metadata property that can be used to provide alternative names or aliases for the schema. It is not part of the official JSON Schema specification but can be useful for documentation and identification purposes.
116
+ */
117
+ alias?: string | string[];
118
+ }
119
+ interface JsonSchema7AnyType extends JsonSchema7Metadata {
68
120
  $ref?: string;
69
121
  }
70
- interface JsonSchema7ArrayType {
122
+ interface JsonSchema7ArrayType extends JsonSchema7Metadata {
71
123
  type: "array";
72
124
  items?: JsonSchema7Type;
73
125
  minItems?: number;
74
126
  maxItems?: number;
75
127
  }
76
- interface JsonSchema7BigintType {
128
+ interface JsonSchema7BigintType extends JsonSchema7Metadata {
77
129
  type: "integer";
78
130
  format: "int64";
79
131
  minimum?: bigint;
@@ -82,33 +134,33 @@ interface JsonSchema7BigintType {
82
134
  exclusiveMaximum?: bigint;
83
135
  multipleOf?: bigint;
84
136
  }
85
- interface JsonSchema7BooleanType {
137
+ interface JsonSchema7BooleanType extends JsonSchema7Metadata {
86
138
  type: "boolean";
87
139
  }
88
- type JsonSchema7DateType = {
140
+ type JsonSchema7DateType = JsonSchema7Metadata & ({
89
141
  type: "integer" | "string";
90
142
  format: "unix-time" | "date-time" | "date";
91
143
  minimum?: number;
92
144
  maximum?: number;
93
145
  } | {
94
146
  anyOf: JsonSchema7DateType[];
95
- };
96
- interface JsonSchema7EnumType {
147
+ });
148
+ interface JsonSchema7EnumType extends JsonSchema7Metadata {
97
149
  type: "string";
98
150
  enum: string[];
99
151
  }
100
- interface JsonSchema7AllOfType {
152
+ interface JsonSchema7AllOfType extends JsonSchema7Metadata {
101
153
  allOf: JsonSchema7Type[];
102
154
  unevaluatedProperties?: boolean;
103
155
  }
104
- interface JsonSchema7PrimitiveLiteralType {
156
+ interface JsonSchema7PrimitiveLiteralType extends JsonSchema7Metadata {
105
157
  type: "string" | "number" | "integer" | "boolean";
106
158
  const: string | number | boolean;
107
159
  }
108
- type JsonSchema7LiteralType = JsonSchema7PrimitiveLiteralType | {
160
+ type JsonSchema7LiteralType = JsonSchema7Metadata & (JsonSchema7PrimitiveLiteralType | {
109
161
  type: "object" | "array";
110
- };
111
- interface JsonSchema7MapType {
162
+ });
163
+ interface JsonSchema7MapType extends JsonSchema7Metadata {
112
164
  type: "array";
113
165
  maxItems: 125;
114
166
  items: {
@@ -118,22 +170,22 @@ interface JsonSchema7MapType {
118
170
  maxItems: 2;
119
171
  };
120
172
  }
121
- interface JsonSchema7NativeEnumType {
173
+ interface JsonSchema7NativeEnumType extends JsonSchema7Metadata {
122
174
  type: "string" | "number" | ["string", "number"];
123
175
  enum: (string | number)[];
124
176
  }
125
- interface JsonSchema7NeverType {
177
+ interface JsonSchema7NeverType extends JsonSchema7Metadata {
126
178
  not: JsonSchema7AnyType;
127
179
  }
128
- interface JsonSchema7NullType {
180
+ interface JsonSchema7NullType extends JsonSchema7Metadata {
129
181
  type: "null";
130
182
  }
131
- type JsonSchema7NullableType = {
183
+ type JsonSchema7NullableType = JsonSchema7Metadata & ({
132
184
  anyOf: [JsonSchema7Type, JsonSchema7NullType];
133
185
  } | {
134
186
  type: [string, "null"];
135
- };
136
- interface JsonSchema7NumberType {
187
+ });
188
+ interface JsonSchema7NumberType extends JsonSchema7Metadata {
137
189
  type: "number" | "integer";
138
190
  minimum?: number;
139
191
  exclusiveMinimum?: number;
@@ -141,13 +193,13 @@ interface JsonSchema7NumberType {
141
193
  exclusiveMaximum?: number;
142
194
  multipleOf?: number;
143
195
  }
144
- interface JsonSchema7ObjectType {
196
+ interface JsonSchema7ObjectType extends JsonSchema7Metadata {
145
197
  type: "object";
146
198
  properties: Record<string, JsonSchema7Type>;
147
199
  additionalProperties?: boolean | JsonSchema7Type;
148
200
  required?: string[];
149
201
  }
150
- interface JsonSchema7StringType {
202
+ interface JsonSchema7StringType extends JsonSchema7Metadata {
151
203
  type: "string";
152
204
  minLength?: number;
153
205
  maxLength?: number;
@@ -155,20 +207,20 @@ interface JsonSchema7StringType {
155
207
  pattern?: string;
156
208
  contentEncoding?: string;
157
209
  }
158
- interface JsonSchema7SetType {
210
+ interface JsonSchema7SetType extends JsonSchema7Metadata {
159
211
  type: "array";
160
212
  uniqueItems: true;
161
213
  items?: JsonSchema7Type;
162
214
  minItems?: number;
163
215
  maxItems?: number;
164
216
  }
165
- type JsonSchema7RecordPropertyNamesType = Omit<JsonSchema7StringType, "type"> | Omit<JsonSchema7EnumType, "type">;
166
- interface JsonSchema7RecordType {
217
+ type JsonSchema7RecordPropertyNamesType = JsonSchema7Metadata & (Omit<JsonSchema7StringType, "type"> | Omit<JsonSchema7EnumType, "type">);
218
+ interface JsonSchema7RecordType extends JsonSchema7Metadata {
167
219
  type: "object";
168
220
  additionalProperties?: JsonSchema7Type | true;
169
221
  propertyNames?: JsonSchema7RecordPropertyNamesType;
170
222
  }
171
- type JsonSchema7TupleType = {
223
+ type JsonSchema7TupleType = JsonSchema7Metadata & {
172
224
  type: "array";
173
225
  minItems: number;
174
226
  items: JsonSchema7Type[];
@@ -177,46 +229,30 @@ type JsonSchema7TupleType = {
177
229
  } | {
178
230
  additionalItems?: JsonSchema7Type;
179
231
  });
180
- interface JsonSchema7UndefinedType {
232
+ interface JsonSchema7UndefinedType extends JsonSchema7Metadata {
181
233
  not: JsonSchema7AnyType;
182
234
  }
183
235
  type JsonSchema7Primitive = "string" | "number" | "integer" | "boolean" | "null";
184
- type JsonSchema7UnionType = JsonSchema7PrimitiveUnionType | JsonSchema7AnyOfType;
185
- type JsonSchema7PrimitiveUnionType = {
236
+ type JsonSchema7UnionType = JsonSchema7Metadata & (JsonSchema7PrimitiveUnionType | JsonSchema7AnyOfType);
237
+ type JsonSchema7PrimitiveUnionType = JsonSchema7Metadata & ({
186
238
  type: JsonSchema7Primitive | JsonSchema7Primitive[];
187
239
  } | {
188
240
  type: JsonSchema7Primitive | JsonSchema7Primitive[];
189
241
  enum: (string | number | bigint | boolean | null)[];
190
- };
191
- type JsonSchema7UnknownType = JsonSchema7AnyType;
192
- interface JsonSchema7AnyOfType {
242
+ });
243
+ type JsonSchema7UnknownType = JsonSchema7Metadata & JsonSchema7AnyType;
244
+ interface JsonSchema7AnyOfType extends JsonSchema7Metadata {
193
245
  anyOf: JsonSchema7Type[];
194
246
  }
195
- interface JsonSchema7RefType {
247
+ interface JsonSchema7RefType extends JsonSchema7Metadata {
196
248
  $ref: string;
197
249
  }
198
- interface JsonSchema7Meta {
199
- $id?: string;
200
- $ref?: string;
201
- $schema?: string;
202
- $comment?: string;
203
- title?: string;
204
- default?: any;
205
- description?: string;
206
- /**
207
- * @see https://datatracker.ietf.org/doc/html/draft-bhutton-json-schema-00#section-8.2.4
208
- * @see https://datatracker.ietf.org/doc/html/draft-bhutton-json-schema-validation-00#appendix-A
209
- */
210
- $defs?: {
211
- [key: string]: JsonSchema7Type;
212
- };
213
- }
214
250
  type JsonSchema7TypeUnion = JsonSchema7StringType | JsonSchema7ArrayType | JsonSchema7NumberType | JsonSchema7BigintType | JsonSchema7BooleanType | JsonSchema7DateType | JsonSchema7EnumType | JsonSchema7LiteralType | JsonSchema7NativeEnumType | JsonSchema7NullType | JsonSchema7NumberType | JsonSchema7ObjectType | JsonSchema7RecordType | JsonSchema7TupleType | JsonSchema7UnionType | JsonSchema7UndefinedType | JsonSchema7RefType | JsonSchema7NeverType | JsonSchema7MapType | JsonSchema7AnyType | JsonSchema7NullableType | JsonSchema7AllOfType | JsonSchema7UnknownType | JsonSchema7SetType;
215
251
  /**
216
252
  * JSON Schema v7
217
253
  * @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01
218
254
  */
219
- type JsonSchema7Type = JsonSchema7TypeUnion & JsonSchema7Meta;
255
+ type JsonSchema7Type = JsonSchema7TypeUnion & JsonSchema7Metadata;
220
256
  //#endregion
221
- export { TypeAnnotation as $, JsonSchema7PrimitiveLiteralType as A, JsonSchema7UndefinedType as B, JsonSchema7NativeEnumType as C, JsonSchema7NumberType as D, JsonSchema7NullableType as E, JsonSchema7SetType as F, Leaf as G, JsonSchema7UnknownType as H, JsonSchema7StringType as I, PrimitiveTypeAnnotation as J, LeafTypeAnnotation as K, JsonSchema7TupleType as L, JsonSchema7RecordPropertyNamesType as M, JsonSchema7RecordType as N, JsonSchema7ObjectType as O, JsonSchema7RefType as P, Tree as Q, JsonSchema7Type as R, JsonSchema7Meta as S, JsonSchema7NullType as T, JsonSerializeOptions as U, JsonSchema7UnionType as V, JsonValue as W, SimpleTypeAnnotation as X, SerializableJsonValue as Y, SymbolTypeAnnotation as Z, JsonSchema7BooleanType as _, CustomTypeAnnotation as a, JsonSchema7LiteralType as b, JsonObject as c, JsonParserResult as d, TypedArrayAnnotation as et, JsonSchema7AllOfType as f, JsonSchema7BigintType as g, JsonSchema7ArrayType as h, CompositeTypeAnnotation as i, JsonSchema7PrimitiveUnionType as j, JsonSchema7Primitive as k, JsonParseOptions as l, JsonSchema7AnyType as m, ClassInstance as n, InnerNode as o, JsonSchema7AnyOfType as p, PrimitiveJsonValue as q, ClassTypeAnnotation as r, JsonArray as s, Class as t, JsonParserInterface as u, JsonSchema7DateType as v, JsonSchema7NeverType as w, JsonSchema7MapType as x, JsonSchema7EnumType as y, JsonSchema7TypeUnion as z };
222
- //# sourceMappingURL=types-BAtAPir9.d.mts.map
257
+ export { TypeAnnotation as $, JsonSchema7PrimitiveLiteralType as A, JsonSchema7UndefinedType as B, JsonSchema7NativeEnumType as C, JsonSchema7NumberType as D, JsonSchema7NullableType as E, JsonSchema7SetType as F, Leaf as G, JsonSchema7UnknownType as H, JsonSchema7StringType as I, PrimitiveTypeAnnotation as J, LeafTypeAnnotation as K, JsonSchema7TupleType as L, JsonSchema7RecordPropertyNamesType as M, JsonSchema7RecordType as N, JsonSchema7ObjectType as O, JsonSchema7RefType as P, Tree as Q, JsonSchema7Type as R, JsonSchema7Metadata as S, JsonSchema7NullType as T, JsonSerializeOptions as U, JsonSchema7UnionType as V, JsonValue as W, SimpleTypeAnnotation as X, SerializableJsonValue as Y, SymbolTypeAnnotation as Z, JsonSchema7BooleanType as _, CustomTypeAnnotation as a, JsonSchema7LiteralType as b, JsonObject as c, JsonParserResult as d, TypedArrayAnnotation as et, JsonSchema7AllOfType as f, JsonSchema7BigintType as g, JsonSchema7ArrayType as h, CompositeTypeAnnotation as i, JsonSchema7PrimitiveUnionType as j, JsonSchema7Primitive as k, JsonParseOptions as l, JsonSchema7AnyType as m, ClassInstance as n, InnerNode as o, JsonSchema7AnyOfType as p, PrimitiveJsonValue as q, ClassTypeAnnotation as r, JsonArray as s, Class as t, JsonParserInterface as u, JsonSchema7DateType as v, JsonSchema7NeverType as w, JsonSchema7MapType as x, JsonSchema7EnumType as y, JsonSchema7TypeUnion as z };
258
+ //# sourceMappingURL=types-BIGezdc1.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types-BIGezdc1.d.mts","names":[],"sources":["../src/types.ts"],"sourcesContent":[],"mappings":";;;KAoBY,kBAAA;UAEK,KAAA;EAFL,KAAA,GAAA,IAAA,EAAA,GAAA,EAAA,CAAA,EAAkB,GAAA;AAE9B;AAIY,KAAA,S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,KAAK;UAE7B,qBAAA,SAA8B;;yBAEtB;kBACP;;KAGN,oBAAA,GAAuB;;;SAG1B;;;;oBAMiB;;UAIT,wBAAA,SAAiC;OAC3C;;KAGK,oBAAA;KAOA,oBAAA,GAAuB,uBAChC,gCAAgC;KAEvB,6BAAA,GAAgC;QAG9B,uBAAuB;;QAGvB,uBAAuB;;;KAKzB,sBAAA,GAAyB,sBAAsB;UAE1C,oBAAA,SAA6B;SACrC;;UAGQ,kBAAA,SAA2B;;;KAIhC,oBAAA,GACR,wBACA,uBACA,wBACA,wBACA,yBACA,sBACA,sBACA,yBACA,4BACA,sBACA,wBACA,wBACA,wBACA,uBACA,uBACA,2BACA,qBACA,uBACA,qBACA,qBACA,0BACA,uBACA,yBACA;;;;;KAMQ,eAAA,GAAkB,uBAAuB"}
@@ -64,16 +64,68 @@ interface JsonParserInterface {
64
64
  deserialize: <TData = any>(payload: JsonParserResult) => TData;
65
65
  register: <TData = any, TJsonValue extends JsonValue = JsonValue>(name: string, serialize: (object: JsonValue) => TJsonValue, deserialize: (payload: TJsonValue) => TData, isApplicable: (data: any) => data is TData) => void;
66
66
  }
67
- interface JsonSchema7AnyType {
67
+ interface JsonSchema7Metadata {
68
+ /**
69
+ * The `$id` keyword is used to identify a schema and can be used for referencing the schema within other schemas. It is a URI that serves as a unique identifier for the schema.
70
+ *
71
+ * @see https://datatracker.ietf.org/doc/html/draft-handrews-json-schema-validation-01#section-8.2.1
72
+ */
73
+ $id?: string;
74
+ /**
75
+ * The `$schema` keyword is used to specify the version of the JSON Schema specification that the schema adheres to. It is a URI that indicates which version of the JSON Schema specification the schema is written against.
76
+ *
77
+ * @see https://datatracker.ietf.org/doc/html/draft-handrews-json-schema-validation-01#section-8.2.2
78
+ */
79
+ $schema?: string;
80
+ /**
81
+ * The `$comment` keyword is used to add comments to a JSON Schema. It allows schema authors to include human-readable explanations or notes within the schema without affecting its validation behavior.
82
+ *
83
+ * @see https://datatracker.ietf.org/doc/html/draft-handrews-json-schema-validation-01#section-8.2.3
84
+ */
85
+ $comment?: string;
86
+ /**
87
+ * The `$defs` keyword is used to define reusable sub-schemas within a JSON Schema. It allows you to define sub-schemas that can be referenced elsewhere in the schema using the `$ref` keyword. The `$defs` keyword is an object where each key is a unique identifier for the sub-schema, and the value is the sub-schema itself.
88
+ *
89
+ * @see https://datatracker.ietf.org/doc/html/draft-handrews-json-schema-validation-01#section-8.2.4
90
+ * @see https://datatracker.ietf.org/doc/html/draft-bhutton-json-schema-00#section-8.2.4
91
+ * @see https://datatracker.ietf.org/doc/html/draft-bhutton-json-schema-validation-00#appendix-A
92
+ */
93
+ $defs?: {
94
+ [key: string]: JsonSchema7Type;
95
+ };
96
+ /**
97
+ * The `name` keyword is a custom metadata property that can be used to provide a human-readable name for the schema. It is not part of the official JSON Schema specification but can be useful for documentation and identification purposes.
98
+ */
99
+ name?: string;
100
+ /**
101
+ * The `title` keyword is a custom metadata property that can be used to provide a human-readable title for the schema. It is not part of the official JSON Schema specification but can be useful for documentation and identification purposes.
102
+ */
103
+ title?: string;
104
+ /**
105
+ * The `default` keyword is used to specify a default value for a property in a JSON Schema. It provides a default value that can be used when an instance does not provide a value for that property.
106
+ *
107
+ * @see https://datatracker.ietf.org/doc/html/draft-handrews-json-schema-validation-01#section-8.2.5
108
+ */
109
+ default?: any;
110
+ /**
111
+ * The `description` keyword is used to provide a human-readable description of the schema or a specific property within the schema. It is not part of the official JSON Schema specification but can be useful for documentation purposes.
112
+ */
113
+ description?: string;
114
+ /**
115
+ * The `alias` keyword is a custom metadata property that can be used to provide alternative names or aliases for the schema. It is not part of the official JSON Schema specification but can be useful for documentation and identification purposes.
116
+ */
117
+ alias?: string | string[];
118
+ }
119
+ interface JsonSchema7AnyType extends JsonSchema7Metadata {
68
120
  $ref?: string;
69
121
  }
70
- interface JsonSchema7ArrayType {
122
+ interface JsonSchema7ArrayType extends JsonSchema7Metadata {
71
123
  type: "array";
72
124
  items?: JsonSchema7Type;
73
125
  minItems?: number;
74
126
  maxItems?: number;
75
127
  }
76
- interface JsonSchema7BigintType {
128
+ interface JsonSchema7BigintType extends JsonSchema7Metadata {
77
129
  type: "integer";
78
130
  format: "int64";
79
131
  minimum?: bigint;
@@ -82,33 +134,33 @@ interface JsonSchema7BigintType {
82
134
  exclusiveMaximum?: bigint;
83
135
  multipleOf?: bigint;
84
136
  }
85
- interface JsonSchema7BooleanType {
137
+ interface JsonSchema7BooleanType extends JsonSchema7Metadata {
86
138
  type: "boolean";
87
139
  }
88
- type JsonSchema7DateType = {
140
+ type JsonSchema7DateType = JsonSchema7Metadata & ({
89
141
  type: "integer" | "string";
90
142
  format: "unix-time" | "date-time" | "date";
91
143
  minimum?: number;
92
144
  maximum?: number;
93
145
  } | {
94
146
  anyOf: JsonSchema7DateType[];
95
- };
96
- interface JsonSchema7EnumType {
147
+ });
148
+ interface JsonSchema7EnumType extends JsonSchema7Metadata {
97
149
  type: "string";
98
150
  enum: string[];
99
151
  }
100
- interface JsonSchema7AllOfType {
152
+ interface JsonSchema7AllOfType extends JsonSchema7Metadata {
101
153
  allOf: JsonSchema7Type[];
102
154
  unevaluatedProperties?: boolean;
103
155
  }
104
- interface JsonSchema7PrimitiveLiteralType {
156
+ interface JsonSchema7PrimitiveLiteralType extends JsonSchema7Metadata {
105
157
  type: "string" | "number" | "integer" | "boolean";
106
158
  const: string | number | boolean;
107
159
  }
108
- type JsonSchema7LiteralType = JsonSchema7PrimitiveLiteralType | {
160
+ type JsonSchema7LiteralType = JsonSchema7Metadata & (JsonSchema7PrimitiveLiteralType | {
109
161
  type: "object" | "array";
110
- };
111
- interface JsonSchema7MapType {
162
+ });
163
+ interface JsonSchema7MapType extends JsonSchema7Metadata {
112
164
  type: "array";
113
165
  maxItems: 125;
114
166
  items: {
@@ -118,22 +170,22 @@ interface JsonSchema7MapType {
118
170
  maxItems: 2;
119
171
  };
120
172
  }
121
- interface JsonSchema7NativeEnumType {
173
+ interface JsonSchema7NativeEnumType extends JsonSchema7Metadata {
122
174
  type: "string" | "number" | ["string", "number"];
123
175
  enum: (string | number)[];
124
176
  }
125
- interface JsonSchema7NeverType {
177
+ interface JsonSchema7NeverType extends JsonSchema7Metadata {
126
178
  not: JsonSchema7AnyType;
127
179
  }
128
- interface JsonSchema7NullType {
180
+ interface JsonSchema7NullType extends JsonSchema7Metadata {
129
181
  type: "null";
130
182
  }
131
- type JsonSchema7NullableType = {
183
+ type JsonSchema7NullableType = JsonSchema7Metadata & ({
132
184
  anyOf: [JsonSchema7Type, JsonSchema7NullType];
133
185
  } | {
134
186
  type: [string, "null"];
135
- };
136
- interface JsonSchema7NumberType {
187
+ });
188
+ interface JsonSchema7NumberType extends JsonSchema7Metadata {
137
189
  type: "number" | "integer";
138
190
  minimum?: number;
139
191
  exclusiveMinimum?: number;
@@ -141,13 +193,13 @@ interface JsonSchema7NumberType {
141
193
  exclusiveMaximum?: number;
142
194
  multipleOf?: number;
143
195
  }
144
- interface JsonSchema7ObjectType {
196
+ interface JsonSchema7ObjectType extends JsonSchema7Metadata {
145
197
  type: "object";
146
198
  properties: Record<string, JsonSchema7Type>;
147
199
  additionalProperties?: boolean | JsonSchema7Type;
148
200
  required?: string[];
149
201
  }
150
- interface JsonSchema7StringType {
202
+ interface JsonSchema7StringType extends JsonSchema7Metadata {
151
203
  type: "string";
152
204
  minLength?: number;
153
205
  maxLength?: number;
@@ -155,20 +207,20 @@ interface JsonSchema7StringType {
155
207
  pattern?: string;
156
208
  contentEncoding?: string;
157
209
  }
158
- interface JsonSchema7SetType {
210
+ interface JsonSchema7SetType extends JsonSchema7Metadata {
159
211
  type: "array";
160
212
  uniqueItems: true;
161
213
  items?: JsonSchema7Type;
162
214
  minItems?: number;
163
215
  maxItems?: number;
164
216
  }
165
- type JsonSchema7RecordPropertyNamesType = Omit<JsonSchema7StringType, "type"> | Omit<JsonSchema7EnumType, "type">;
166
- interface JsonSchema7RecordType {
217
+ type JsonSchema7RecordPropertyNamesType = JsonSchema7Metadata & (Omit<JsonSchema7StringType, "type"> | Omit<JsonSchema7EnumType, "type">);
218
+ interface JsonSchema7RecordType extends JsonSchema7Metadata {
167
219
  type: "object";
168
220
  additionalProperties?: JsonSchema7Type | true;
169
221
  propertyNames?: JsonSchema7RecordPropertyNamesType;
170
222
  }
171
- type JsonSchema7TupleType = {
223
+ type JsonSchema7TupleType = JsonSchema7Metadata & {
172
224
  type: "array";
173
225
  minItems: number;
174
226
  items: JsonSchema7Type[];
@@ -177,46 +229,30 @@ type JsonSchema7TupleType = {
177
229
  } | {
178
230
  additionalItems?: JsonSchema7Type;
179
231
  });
180
- interface JsonSchema7UndefinedType {
232
+ interface JsonSchema7UndefinedType extends JsonSchema7Metadata {
181
233
  not: JsonSchema7AnyType;
182
234
  }
183
235
  type JsonSchema7Primitive = "string" | "number" | "integer" | "boolean" | "null";
184
- type JsonSchema7UnionType = JsonSchema7PrimitiveUnionType | JsonSchema7AnyOfType;
185
- type JsonSchema7PrimitiveUnionType = {
236
+ type JsonSchema7UnionType = JsonSchema7Metadata & (JsonSchema7PrimitiveUnionType | JsonSchema7AnyOfType);
237
+ type JsonSchema7PrimitiveUnionType = JsonSchema7Metadata & ({
186
238
  type: JsonSchema7Primitive | JsonSchema7Primitive[];
187
239
  } | {
188
240
  type: JsonSchema7Primitive | JsonSchema7Primitive[];
189
241
  enum: (string | number | bigint | boolean | null)[];
190
- };
191
- type JsonSchema7UnknownType = JsonSchema7AnyType;
192
- interface JsonSchema7AnyOfType {
242
+ });
243
+ type JsonSchema7UnknownType = JsonSchema7Metadata & JsonSchema7AnyType;
244
+ interface JsonSchema7AnyOfType extends JsonSchema7Metadata {
193
245
  anyOf: JsonSchema7Type[];
194
246
  }
195
- interface JsonSchema7RefType {
247
+ interface JsonSchema7RefType extends JsonSchema7Metadata {
196
248
  $ref: string;
197
249
  }
198
- interface JsonSchema7Meta {
199
- $id?: string;
200
- $ref?: string;
201
- $schema?: string;
202
- $comment?: string;
203
- title?: string;
204
- default?: any;
205
- description?: string;
206
- /**
207
- * @see https://datatracker.ietf.org/doc/html/draft-bhutton-json-schema-00#section-8.2.4
208
- * @see https://datatracker.ietf.org/doc/html/draft-bhutton-json-schema-validation-00#appendix-A
209
- */
210
- $defs?: {
211
- [key: string]: JsonSchema7Type;
212
- };
213
- }
214
250
  type JsonSchema7TypeUnion = JsonSchema7StringType | JsonSchema7ArrayType | JsonSchema7NumberType | JsonSchema7BigintType | JsonSchema7BooleanType | JsonSchema7DateType | JsonSchema7EnumType | JsonSchema7LiteralType | JsonSchema7NativeEnumType | JsonSchema7NullType | JsonSchema7NumberType | JsonSchema7ObjectType | JsonSchema7RecordType | JsonSchema7TupleType | JsonSchema7UnionType | JsonSchema7UndefinedType | JsonSchema7RefType | JsonSchema7NeverType | JsonSchema7MapType | JsonSchema7AnyType | JsonSchema7NullableType | JsonSchema7AllOfType | JsonSchema7UnknownType | JsonSchema7SetType;
215
251
  /**
216
252
  * JSON Schema v7
217
253
  * @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01
218
254
  */
219
- type JsonSchema7Type = JsonSchema7TypeUnion & JsonSchema7Meta;
255
+ type JsonSchema7Type = JsonSchema7TypeUnion & JsonSchema7Metadata;
220
256
  //#endregion
221
- export { TypeAnnotation as $, JsonSchema7PrimitiveLiteralType as A, JsonSchema7UndefinedType as B, JsonSchema7NativeEnumType as C, JsonSchema7NumberType as D, JsonSchema7NullableType as E, JsonSchema7SetType as F, Leaf as G, JsonSchema7UnknownType as H, JsonSchema7StringType as I, PrimitiveTypeAnnotation as J, LeafTypeAnnotation as K, JsonSchema7TupleType as L, JsonSchema7RecordPropertyNamesType as M, JsonSchema7RecordType as N, JsonSchema7ObjectType as O, JsonSchema7RefType as P, Tree as Q, JsonSchema7Type as R, JsonSchema7Meta as S, JsonSchema7NullType as T, JsonSerializeOptions as U, JsonSchema7UnionType as V, JsonValue as W, SimpleTypeAnnotation as X, SerializableJsonValue as Y, SymbolTypeAnnotation as Z, JsonSchema7BooleanType as _, CustomTypeAnnotation as a, JsonSchema7LiteralType as b, JsonObject as c, JsonParserResult as d, TypedArrayAnnotation as et, JsonSchema7AllOfType as f, JsonSchema7BigintType as g, JsonSchema7ArrayType as h, CompositeTypeAnnotation as i, JsonSchema7PrimitiveUnionType as j, JsonSchema7Primitive as k, JsonParseOptions as l, JsonSchema7AnyType as m, ClassInstance as n, InnerNode as o, JsonSchema7AnyOfType as p, PrimitiveJsonValue as q, ClassTypeAnnotation as r, JsonArray as s, Class as t, JsonParserInterface as u, JsonSchema7DateType as v, JsonSchema7NeverType as w, JsonSchema7MapType as x, JsonSchema7EnumType as y, JsonSchema7TypeUnion as z };
222
- //# sourceMappingURL=types-BzNIRhpI.d.cts.map
257
+ export { TypeAnnotation as $, JsonSchema7PrimitiveLiteralType as A, JsonSchema7UndefinedType as B, JsonSchema7NativeEnumType as C, JsonSchema7NumberType as D, JsonSchema7NullableType as E, JsonSchema7SetType as F, Leaf as G, JsonSchema7UnknownType as H, JsonSchema7StringType as I, PrimitiveTypeAnnotation as J, LeafTypeAnnotation as K, JsonSchema7TupleType as L, JsonSchema7RecordPropertyNamesType as M, JsonSchema7RecordType as N, JsonSchema7ObjectType as O, JsonSchema7RefType as P, Tree as Q, JsonSchema7Type as R, JsonSchema7Metadata as S, JsonSchema7NullType as T, JsonSerializeOptions as U, JsonSchema7UnionType as V, JsonValue as W, SimpleTypeAnnotation as X, SerializableJsonValue as Y, SymbolTypeAnnotation as Z, JsonSchema7BooleanType as _, CustomTypeAnnotation as a, JsonSchema7LiteralType as b, JsonObject as c, JsonParserResult as d, TypedArrayAnnotation as et, JsonSchema7AllOfType as f, JsonSchema7BigintType as g, JsonSchema7ArrayType as h, CompositeTypeAnnotation as i, JsonSchema7PrimitiveUnionType as j, JsonSchema7Primitive as k, JsonParseOptions as l, JsonSchema7AnyType as m, ClassInstance as n, InnerNode as o, JsonSchema7AnyOfType as p, PrimitiveJsonValue as q, ClassTypeAnnotation as r, JsonArray as s, Class as t, JsonParserInterface as u, JsonSchema7DateType as v, JsonSchema7NeverType as w, JsonSchema7MapType as x, JsonSchema7EnumType as y, JsonSchema7TypeUnion as z };
258
+ //# sourceMappingURL=types-D63uxyvD.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types-D63uxyvD.d.cts","names":[],"sources":["../src/types.ts"],"sourcesContent":[],"mappings":";;;KAoBY,kBAAA;UAEK,KAAA;EAFL,KAAA,GAAA,IAAA,EAAA,GAAA,EAAA,CAAA,EAAkB,GAAA;AAE9B;AAIY,KAAA,SAAA,GAAY,kBAAH,GAAwB,SAAxB,GAAoC,UAApC;AAAG,KAEZ,SAAA,GAAY,KAFA,CAEM,SAFN,CAAA;AAAqB,UAI5B,UAAA,CAJ4B;EAAY,CAAA,GAAA,EAAA,MAAA,CAAA,EAKxC,SALwC;;AAE7C,KAMA,aAAA,GANkB,GAAA;AAEb,KAML,qBAAA,GALK,MAAS,GAOtB,GAPsB,CAOlB,SAPkB,CAAA,GAQtB,GARsB,CAQlB,SARkB,EAQP,SARO,CAAA,GAAA,SAAA,GAAA,MAAA,GAWtB,IAXsB,GAYtB,aAZsB,GAatB,MAbsB;AAGd,KAYA,IAZA,CAAA,CAAA,CAAA,GAYU,SAZG,CAYO,CAZP,CAAA,GAYY,IAZZ,CAYiB,CAZjB,CAAA;AAEb,KAWA,IAXA,CAAA,CAAA,CAAA,GAAA,CAWW,CAXX,CAAA;AAEJ,KAUI,SAVJ,CAAA,CAAA,CAAA,GAAA,CAUoB,CAVpB,EAUuB,MAVvB,CAAA,MAAA,EAUsC,IAVtC,CAU2C,CAV3C,CAAA,CAAA,CAAA;AAAJ,KAYQ,uBAAA,GAZR,QAAA,GAAA,WAAA,GAAA,QAAA;AACI,KAYI,kBAAA,GACR,uBAbI,GAAA,QAAA,GAAA,MAAA,GAAA,OAAA,GAAA,KAAA;AAAW,KAmBP,oBAAA,GAnBO,CAAA,aAAA,EAAA,MAAA,CAAA;AAAf,KAoBQ,mBAAA,GApBR,CAAA,OAAA,EAAA,MAAA,CAAA;AAGA,KAkBQ,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,yBAAA,SAAkC;;;;UAKlC,oBAAA,SAA6B;OACvC;;UAGU,mBAAA,SAA4B;;;KAIjC,uBAAA,GAA0B;UAGtB,iBAAiB;;;;UAOhB,qBAAA,SAA8B;;;;;;;;UAS9B,qBAAA,SAA8B;;cAEjC,eAAe;mCACM;;;UAIlB,qBAAA,SAA8B;;;;;;;;UAmB9B,kBAAA,SAA2B;;;UAGlC;;;;KAKE,kCAAA,GAAqC,uBAC9C,KAAK,iCAAiC,KAAK;UAE7B,qBAAA,SAA8B;;yBAEtB;kBACP;;KAGN,oBAAA,GAAuB;;;SAG1B;;;;oBAMiB;;UAIT,wBAAA,SAAiC;OAC3C;;KAGK,oBAAA;KAOA,oBAAA,GAAuB,uBAChC,gCAAgC;KAEvB,6BAAA,GAAgC;QAG9B,uBAAuB;;QAGvB,uBAAuB;;;KAKzB,sBAAA,GAAyB,sBAAsB;UAE1C,oBAAA,SAA6B;SACrC;;UAGQ,kBAAA,SAA2B;;;KAIhC,oBAAA,GACR,wBACA,uBACA,wBACA,wBACA,yBACA,sBACA,sBACA,yBACA,4BACA,sBACA,wBACA,wBACA,wBACA,uBACA,uBACA,2BACA,qBACA,uBACA,qBACA,qBACA,0BACA,uBACA,yBACA;;;;;KAMQ,eAAA,GAAkB,uBAAuB"}
package/dist/types.d.cts CHANGED
@@ -1,2 +1,2 @@
1
- import { $ as TypeAnnotation, A as JsonSchema7PrimitiveLiteralType, B as JsonSchema7UndefinedType, C as JsonSchema7NativeEnumType, D as JsonSchema7NumberType, E as JsonSchema7NullableType, F as JsonSchema7SetType, G as Leaf, H as JsonSchema7UnknownType, I as JsonSchema7StringType, J as PrimitiveTypeAnnotation, K as LeafTypeAnnotation, L as JsonSchema7TupleType, M as JsonSchema7RecordPropertyNamesType, N as JsonSchema7RecordType, O as JsonSchema7ObjectType, P as JsonSchema7RefType, Q as Tree, R as JsonSchema7Type, S as JsonSchema7Meta, T as JsonSchema7NullType, U as JsonSerializeOptions, V as JsonSchema7UnionType, W as JsonValue, X as SimpleTypeAnnotation, Y as SerializableJsonValue, Z as SymbolTypeAnnotation, _ as JsonSchema7BooleanType, a as CustomTypeAnnotation, b as JsonSchema7LiteralType, c as JsonObject, d as JsonParserResult, et as TypedArrayAnnotation, f as JsonSchema7AllOfType, g as JsonSchema7BigintType, h as JsonSchema7ArrayType, i as CompositeTypeAnnotation, j as JsonSchema7PrimitiveUnionType, k as JsonSchema7Primitive, l as JsonParseOptions, m as JsonSchema7AnyType, n as ClassInstance, o as InnerNode, p as JsonSchema7AnyOfType, q as PrimitiveJsonValue, r as ClassTypeAnnotation, s as JsonArray, t as Class, u as JsonParserInterface, v as JsonSchema7DateType, w as JsonSchema7NeverType, x as JsonSchema7MapType, y as JsonSchema7EnumType, z as JsonSchema7TypeUnion } from "./types-BzNIRhpI.cjs";
2
- export { Class, ClassInstance, ClassTypeAnnotation, CompositeTypeAnnotation, CustomTypeAnnotation, InnerNode, JsonArray, JsonObject, JsonParseOptions, JsonParserInterface, JsonParserResult, JsonSchema7AllOfType, JsonSchema7AnyOfType, JsonSchema7AnyType, JsonSchema7ArrayType, JsonSchema7BigintType, JsonSchema7BooleanType, JsonSchema7DateType, JsonSchema7EnumType, JsonSchema7LiteralType, JsonSchema7MapType, JsonSchema7Meta, JsonSchema7NativeEnumType, JsonSchema7NeverType, JsonSchema7NullType, JsonSchema7NullableType, JsonSchema7NumberType, JsonSchema7ObjectType, JsonSchema7Primitive, JsonSchema7PrimitiveLiteralType, JsonSchema7PrimitiveUnionType, JsonSchema7RecordPropertyNamesType, JsonSchema7RecordType, JsonSchema7RefType, JsonSchema7SetType, JsonSchema7StringType, JsonSchema7TupleType, JsonSchema7Type, JsonSchema7TypeUnion, JsonSchema7UndefinedType, JsonSchema7UnionType, JsonSchema7UnknownType, JsonSerializeOptions, JsonValue, Leaf, LeafTypeAnnotation, PrimitiveJsonValue, PrimitiveTypeAnnotation, SerializableJsonValue, SimpleTypeAnnotation, SymbolTypeAnnotation, Tree, TypeAnnotation, TypedArrayAnnotation };
1
+ import { $ as TypeAnnotation, A as JsonSchema7PrimitiveLiteralType, B as JsonSchema7UndefinedType, C as JsonSchema7NativeEnumType, D as JsonSchema7NumberType, E as JsonSchema7NullableType, F as JsonSchema7SetType, G as Leaf, H as JsonSchema7UnknownType, I as JsonSchema7StringType, J as PrimitiveTypeAnnotation, K as LeafTypeAnnotation, L as JsonSchema7TupleType, M as JsonSchema7RecordPropertyNamesType, N as JsonSchema7RecordType, O as JsonSchema7ObjectType, P as JsonSchema7RefType, Q as Tree, R as JsonSchema7Type, S as JsonSchema7Metadata, T as JsonSchema7NullType, U as JsonSerializeOptions, V as JsonSchema7UnionType, W as JsonValue, X as SimpleTypeAnnotation, Y as SerializableJsonValue, Z as SymbolTypeAnnotation, _ as JsonSchema7BooleanType, a as CustomTypeAnnotation, b as JsonSchema7LiteralType, c as JsonObject, d as JsonParserResult, et as TypedArrayAnnotation, f as JsonSchema7AllOfType, g as JsonSchema7BigintType, h as JsonSchema7ArrayType, i as CompositeTypeAnnotation, j as JsonSchema7PrimitiveUnionType, k as JsonSchema7Primitive, l as JsonParseOptions, m as JsonSchema7AnyType, n as ClassInstance, o as InnerNode, p as JsonSchema7AnyOfType, q as PrimitiveJsonValue, r as ClassTypeAnnotation, s as JsonArray, t as Class, u as JsonParserInterface, v as JsonSchema7DateType, w as JsonSchema7NeverType, x as JsonSchema7MapType, y as JsonSchema7EnumType, z as JsonSchema7TypeUnion } from "./types-D63uxyvD.cjs";
2
+ export { Class, ClassInstance, ClassTypeAnnotation, CompositeTypeAnnotation, CustomTypeAnnotation, InnerNode, JsonArray, JsonObject, JsonParseOptions, JsonParserInterface, JsonParserResult, JsonSchema7AllOfType, JsonSchema7AnyOfType, JsonSchema7AnyType, JsonSchema7ArrayType, JsonSchema7BigintType, JsonSchema7BooleanType, JsonSchema7DateType, JsonSchema7EnumType, JsonSchema7LiteralType, JsonSchema7MapType, JsonSchema7Metadata, JsonSchema7NativeEnumType, JsonSchema7NeverType, JsonSchema7NullType, JsonSchema7NullableType, JsonSchema7NumberType, JsonSchema7ObjectType, JsonSchema7Primitive, JsonSchema7PrimitiveLiteralType, JsonSchema7PrimitiveUnionType, JsonSchema7RecordPropertyNamesType, JsonSchema7RecordType, JsonSchema7RefType, JsonSchema7SetType, JsonSchema7StringType, JsonSchema7TupleType, JsonSchema7Type, JsonSchema7TypeUnion, JsonSchema7UndefinedType, JsonSchema7UnionType, JsonSchema7UnknownType, JsonSerializeOptions, JsonValue, Leaf, LeafTypeAnnotation, PrimitiveJsonValue, PrimitiveTypeAnnotation, SerializableJsonValue, SimpleTypeAnnotation, SymbolTypeAnnotation, Tree, TypeAnnotation, TypedArrayAnnotation };
package/dist/types.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- import { $ as TypeAnnotation, A as JsonSchema7PrimitiveLiteralType, B as JsonSchema7UndefinedType, C as JsonSchema7NativeEnumType, D as JsonSchema7NumberType, E as JsonSchema7NullableType, F as JsonSchema7SetType, G as Leaf, H as JsonSchema7UnknownType, I as JsonSchema7StringType, J as PrimitiveTypeAnnotation, K as LeafTypeAnnotation, L as JsonSchema7TupleType, M as JsonSchema7RecordPropertyNamesType, N as JsonSchema7RecordType, O as JsonSchema7ObjectType, P as JsonSchema7RefType, Q as Tree, R as JsonSchema7Type, S as JsonSchema7Meta, T as JsonSchema7NullType, U as JsonSerializeOptions, V as JsonSchema7UnionType, W as JsonValue, X as SimpleTypeAnnotation, Y as SerializableJsonValue, Z as SymbolTypeAnnotation, _ as JsonSchema7BooleanType, a as CustomTypeAnnotation, b as JsonSchema7LiteralType, c as JsonObject, d as JsonParserResult, et as TypedArrayAnnotation, f as JsonSchema7AllOfType, g as JsonSchema7BigintType, h as JsonSchema7ArrayType, i as CompositeTypeAnnotation, j as JsonSchema7PrimitiveUnionType, k as JsonSchema7Primitive, l as JsonParseOptions, m as JsonSchema7AnyType, n as ClassInstance, o as InnerNode, p as JsonSchema7AnyOfType, q as PrimitiveJsonValue, r as ClassTypeAnnotation, s as JsonArray, t as Class, u as JsonParserInterface, v as JsonSchema7DateType, w as JsonSchema7NeverType, x as JsonSchema7MapType, y as JsonSchema7EnumType, z as JsonSchema7TypeUnion } from "./types-BAtAPir9.mjs";
2
- export { Class, ClassInstance, ClassTypeAnnotation, CompositeTypeAnnotation, CustomTypeAnnotation, InnerNode, JsonArray, JsonObject, JsonParseOptions, JsonParserInterface, JsonParserResult, JsonSchema7AllOfType, JsonSchema7AnyOfType, JsonSchema7AnyType, JsonSchema7ArrayType, JsonSchema7BigintType, JsonSchema7BooleanType, JsonSchema7DateType, JsonSchema7EnumType, JsonSchema7LiteralType, JsonSchema7MapType, JsonSchema7Meta, JsonSchema7NativeEnumType, JsonSchema7NeverType, JsonSchema7NullType, JsonSchema7NullableType, JsonSchema7NumberType, JsonSchema7ObjectType, JsonSchema7Primitive, JsonSchema7PrimitiveLiteralType, JsonSchema7PrimitiveUnionType, JsonSchema7RecordPropertyNamesType, JsonSchema7RecordType, JsonSchema7RefType, JsonSchema7SetType, JsonSchema7StringType, JsonSchema7TupleType, JsonSchema7Type, JsonSchema7TypeUnion, JsonSchema7UndefinedType, JsonSchema7UnionType, JsonSchema7UnknownType, JsonSerializeOptions, JsonValue, Leaf, LeafTypeAnnotation, PrimitiveJsonValue, PrimitiveTypeAnnotation, SerializableJsonValue, SimpleTypeAnnotation, SymbolTypeAnnotation, Tree, TypeAnnotation, TypedArrayAnnotation };
1
+ import { $ as TypeAnnotation, A as JsonSchema7PrimitiveLiteralType, B as JsonSchema7UndefinedType, C as JsonSchema7NativeEnumType, D as JsonSchema7NumberType, E as JsonSchema7NullableType, F as JsonSchema7SetType, G as Leaf, H as JsonSchema7UnknownType, I as JsonSchema7StringType, J as PrimitiveTypeAnnotation, K as LeafTypeAnnotation, L as JsonSchema7TupleType, M as JsonSchema7RecordPropertyNamesType, N as JsonSchema7RecordType, O as JsonSchema7ObjectType, P as JsonSchema7RefType, Q as Tree, R as JsonSchema7Type, S as JsonSchema7Metadata, T as JsonSchema7NullType, U as JsonSerializeOptions, V as JsonSchema7UnionType, W as JsonValue, X as SimpleTypeAnnotation, Y as SerializableJsonValue, Z as SymbolTypeAnnotation, _ as JsonSchema7BooleanType, a as CustomTypeAnnotation, b as JsonSchema7LiteralType, c as JsonObject, d as JsonParserResult, et as TypedArrayAnnotation, f as JsonSchema7AllOfType, g as JsonSchema7BigintType, h as JsonSchema7ArrayType, i as CompositeTypeAnnotation, j as JsonSchema7PrimitiveUnionType, k as JsonSchema7Primitive, l as JsonParseOptions, m as JsonSchema7AnyType, n as ClassInstance, o as InnerNode, p as JsonSchema7AnyOfType, q as PrimitiveJsonValue, r as ClassTypeAnnotation, s as JsonArray, t as Class, u as JsonParserInterface, v as JsonSchema7DateType, w as JsonSchema7NeverType, x as JsonSchema7MapType, y as JsonSchema7EnumType, z as JsonSchema7TypeUnion } from "./types-BIGezdc1.mjs";
2
+ export { Class, ClassInstance, ClassTypeAnnotation, CompositeTypeAnnotation, CustomTypeAnnotation, InnerNode, JsonArray, JsonObject, JsonParseOptions, JsonParserInterface, JsonParserResult, JsonSchema7AllOfType, JsonSchema7AnyOfType, JsonSchema7AnyType, JsonSchema7ArrayType, JsonSchema7BigintType, JsonSchema7BooleanType, JsonSchema7DateType, JsonSchema7EnumType, JsonSchema7LiteralType, JsonSchema7MapType, JsonSchema7Metadata, JsonSchema7NativeEnumType, JsonSchema7NeverType, JsonSchema7NullType, JsonSchema7NullableType, JsonSchema7NumberType, JsonSchema7ObjectType, JsonSchema7Primitive, JsonSchema7PrimitiveLiteralType, JsonSchema7PrimitiveUnionType, JsonSchema7RecordPropertyNamesType, JsonSchema7RecordType, JsonSchema7RefType, JsonSchema7SetType, JsonSchema7StringType, JsonSchema7TupleType, JsonSchema7Type, JsonSchema7TypeUnion, JsonSchema7UndefinedType, JsonSchema7UnionType, JsonSchema7UnknownType, JsonSerializeOptions, JsonValue, Leaf, LeafTypeAnnotation, PrimitiveJsonValue, PrimitiveTypeAnnotation, SerializableJsonValue, SimpleTypeAnnotation, SymbolTypeAnnotation, Tree, TypeAnnotation, TypedArrayAnnotation };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stryke/json",
3
- "version": "0.13.1",
3
+ "version": "0.14.2",
4
4
  "type": "module",
5
5
  "description": "A package containing JSON parsing/stringify utilities used by Storm Software.",
6
6
  "repository": {
@@ -73,9 +73,9 @@
73
73
  },
74
74
  "devDependencies": {
75
75
  "@standard-schema/spec": "^1.1.0",
76
- "@types/node": "^24.11.0",
76
+ "@types/node": "^24.12.0",
77
77
  "tsdown": "^0.17.2"
78
78
  },
79
79
  "publishConfig": { "access": "public" },
80
- "gitHead": "7d12d78184a0812114d762186fe34f82d9e9083d"
80
+ "gitHead": "08467a1f278a507f90161aefc9e954602a626be6"
81
81
  }
@@ -1 +0,0 @@
1
- {"version":3,"file":"schema-CuBX00tF.d.cts","names":[],"sources":["../src/schema.ts"],"sourcesContent":[],"mappings":";;;;;;;AAwCA;AAgBA;AAYA;AAYA;AAcgB,iBAtDA,sBAAA,CAuDN,MAAA,EAtDA,eAuDG,CAAA,EAAA,MAAA,IAtDA,oBAsDsB;AAUnC;AAYA;AAiBA;AAwBA;AAyBA;;AAEiC,iBAlIjB,uBAAA,CAkIiB,MAAA,EAjIvB,eAiIuB,CAAA,EAAA,MAAA,IAhIpB,qBAgIoB;;;;;;;iBAtHjB,uBAAA,SACN,4BACG;;;;;;;iBAUG,uBAAA,SACN,4BACG;;;;;;;iBAYG,wBAAA,SACN,4BACG;;;;;;;iBAUG,sBAAA,SACN,4BACG;;;;;;;iBAUG,sBAAA,SACN,4BACG;;;;;;;iBAeG,iCAAA,SACN,4BACG;;;;;;;iBAsBG,wBAAA,SACN,4BACG;;;;;;;;;;;;iBAuBG,+CAA+C,6BAEnD,qBAAqB,OAAO"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"schema-D5wPTiM4.d.mts","names":[],"sources":["../src/schema.ts"],"sourcesContent":[],"mappings":";;;;;;;AAwCA;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