json-schema-to-atd 0.70.1 → 0.71.1

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/dist/index.cjs CHANGED
@@ -187,7 +187,7 @@ function jsonSchemaObjectToJtdObject(input, _) {
187
187
  const result = {
188
188
  properties: {},
189
189
  nullable: input.nullable,
190
- strict: typeof input.additionalProperties === "boolean" ? !input.additionalProperties : void 0,
190
+ strict: typeof input.additionalProperties === "boolean" ? !input.additionalProperties : undefined,
191
191
  metadata: {
192
192
  id: input.$id ?? input.title,
193
193
  description: input.description
package/dist/index.d.cts CHANGED
@@ -22,35 +22,35 @@ interface JsonSchemaNullType extends JsonSchemaTypeBase {
22
22
  declare function isJsonSchemaNullType(input: any): input is JsonSchemaNullType;
23
23
  type JsonSchemaComplexType = JsonSchemaObject | JsonSchemaArray | JsonSchemaRecord;
24
24
  interface JsonSchemaObject extends JsonSchemaTypeBase {
25
- type: "object";
25
+ type: 'object';
26
26
  properties: Record<string, JsonSchemaType>;
27
27
  required?: string[];
28
28
  additionalProperties?: boolean;
29
29
  }
30
30
  declare const isJsonSchemaObject: (input: any) => input is JsonSchemaObject;
31
31
  interface JsonSchemaRecord extends JsonSchemaTypeBase {
32
- type: "object";
32
+ type: 'object';
33
33
  patternProperties?: Record<string, JsonSchemaType>;
34
34
  additionalProperties?: JsonSchemaType;
35
35
  }
36
36
  declare const isJsonSchemaRecord: (input: any) => input is JsonSchemaRecord;
37
37
  interface JsonSchemaArray extends JsonSchemaTypeBase {
38
- type: "array";
38
+ type: 'array';
39
39
  items: JsonSchemaType;
40
40
  }
41
41
  declare function isJsonSchemaArray(input: any): input is JsonSchemaArray;
42
42
  interface JsonSchemaUint8Array extends JsonSchemaTypeBase {
43
- type: "Uint8Array";
43
+ type: 'Uint8Array';
44
44
  }
45
45
  interface JsonSchemaEnum extends JsonSchemaTypeBase {
46
46
  anyOf: Array<{
47
- type: "string";
47
+ type: 'string';
48
48
  const: string;
49
49
  }> | Array<{
50
- type: "number";
50
+ type: 'number';
51
51
  const: number;
52
52
  }> | Array<{
53
- type: "integer";
53
+ type: 'integer';
54
54
  const: number;
55
55
  }>;
56
56
  }
package/dist/index.d.mts CHANGED
@@ -22,35 +22,35 @@ interface JsonSchemaNullType extends JsonSchemaTypeBase {
22
22
  declare function isJsonSchemaNullType(input: any): input is JsonSchemaNullType;
23
23
  type JsonSchemaComplexType = JsonSchemaObject | JsonSchemaArray | JsonSchemaRecord;
24
24
  interface JsonSchemaObject extends JsonSchemaTypeBase {
25
- type: "object";
25
+ type: 'object';
26
26
  properties: Record<string, JsonSchemaType>;
27
27
  required?: string[];
28
28
  additionalProperties?: boolean;
29
29
  }
30
30
  declare const isJsonSchemaObject: (input: any) => input is JsonSchemaObject;
31
31
  interface JsonSchemaRecord extends JsonSchemaTypeBase {
32
- type: "object";
32
+ type: 'object';
33
33
  patternProperties?: Record<string, JsonSchemaType>;
34
34
  additionalProperties?: JsonSchemaType;
35
35
  }
36
36
  declare const isJsonSchemaRecord: (input: any) => input is JsonSchemaRecord;
37
37
  interface JsonSchemaArray extends JsonSchemaTypeBase {
38
- type: "array";
38
+ type: 'array';
39
39
  items: JsonSchemaType;
40
40
  }
41
41
  declare function isJsonSchemaArray(input: any): input is JsonSchemaArray;
42
42
  interface JsonSchemaUint8Array extends JsonSchemaTypeBase {
43
- type: "Uint8Array";
43
+ type: 'Uint8Array';
44
44
  }
45
45
  interface JsonSchemaEnum extends JsonSchemaTypeBase {
46
46
  anyOf: Array<{
47
- type: "string";
47
+ type: 'string';
48
48
  const: string;
49
49
  }> | Array<{
50
- type: "number";
50
+ type: 'number';
51
51
  const: number;
52
52
  }> | Array<{
53
- type: "integer";
53
+ type: 'integer';
54
54
  const: number;
55
55
  }>;
56
56
  }
package/dist/index.d.ts CHANGED
@@ -22,35 +22,35 @@ interface JsonSchemaNullType extends JsonSchemaTypeBase {
22
22
  declare function isJsonSchemaNullType(input: any): input is JsonSchemaNullType;
23
23
  type JsonSchemaComplexType = JsonSchemaObject | JsonSchemaArray | JsonSchemaRecord;
24
24
  interface JsonSchemaObject extends JsonSchemaTypeBase {
25
- type: "object";
25
+ type: 'object';
26
26
  properties: Record<string, JsonSchemaType>;
27
27
  required?: string[];
28
28
  additionalProperties?: boolean;
29
29
  }
30
30
  declare const isJsonSchemaObject: (input: any) => input is JsonSchemaObject;
31
31
  interface JsonSchemaRecord extends JsonSchemaTypeBase {
32
- type: "object";
32
+ type: 'object';
33
33
  patternProperties?: Record<string, JsonSchemaType>;
34
34
  additionalProperties?: JsonSchemaType;
35
35
  }
36
36
  declare const isJsonSchemaRecord: (input: any) => input is JsonSchemaRecord;
37
37
  interface JsonSchemaArray extends JsonSchemaTypeBase {
38
- type: "array";
38
+ type: 'array';
39
39
  items: JsonSchemaType;
40
40
  }
41
41
  declare function isJsonSchemaArray(input: any): input is JsonSchemaArray;
42
42
  interface JsonSchemaUint8Array extends JsonSchemaTypeBase {
43
- type: "Uint8Array";
43
+ type: 'Uint8Array';
44
44
  }
45
45
  interface JsonSchemaEnum extends JsonSchemaTypeBase {
46
46
  anyOf: Array<{
47
- type: "string";
47
+ type: 'string';
48
48
  const: string;
49
49
  }> | Array<{
50
- type: "number";
50
+ type: 'number';
51
51
  const: number;
52
52
  }> | Array<{
53
- type: "integer";
53
+ type: 'integer';
54
54
  const: number;
55
55
  }>;
56
56
  }
package/dist/index.mjs CHANGED
@@ -185,7 +185,7 @@ function jsonSchemaObjectToJtdObject(input, _) {
185
185
  const result = {
186
186
  properties: {},
187
187
  nullable: input.nullable,
188
- strict: typeof input.additionalProperties === "boolean" ? !input.additionalProperties : void 0,
188
+ strict: typeof input.additionalProperties === "boolean" ? !input.additionalProperties : undefined,
189
189
  metadata: {
190
190
  id: input.$id ?? input.title,
191
191
  description: input.description
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "json-schema-to-atd",
3
- "version": "0.70.1",
3
+ "version": "0.71.1",
4
4
  "license": "MIT",
5
5
  "author": {
6
6
  "name": "joshmossas",
@@ -22,6 +22,6 @@
22
22
  "dist"
23
23
  ],
24
24
  "dependencies": {
25
- "@arrirpc/type-defs": "0.70.1"
25
+ "@arrirpc/type-defs": "0.71.1"
26
26
  }
27
27
  }