@hyperjump/json-schema 1.17.3 → 1.17.4

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.
@@ -30,7 +30,7 @@ export const isCompatible = (compatibility, versionUnderTest) => {
30
30
  }
31
31
  break;
32
32
  default:
33
- throw Error(`Unsupported contraint operator: ${operator}`);
33
+ throw Error(`Unsupported constraint operator: ${operator}`);
34
34
  }
35
35
  }
36
36
 
@@ -20,17 +20,21 @@ const interpret = (dependencies, instance, context) => {
20
20
  return true;
21
21
  }
22
22
 
23
- return dependencies.every(([propertyName, dependency]) => {
23
+ let isValid = true;
24
+ for (const [propertyName, dependency] of dependencies) {
24
25
  if (!Instance.has(propertyName, instance)) {
25
- return true;
26
+ continue;
26
27
  }
27
28
 
28
29
  if (Array.isArray(dependency)) {
29
- return dependency.every((key) => Instance.has(key, instance));
30
+ isValid &&= dependency.every((key) => Instance.has(key, instance));
30
31
  } else {
31
- return Validation.interpret(dependency, instance, context);
32
+ const isSchemaValid = Validation.interpret(dependency, instance, context);
33
+ isValid &&= isSchemaValid;
32
34
  }
33
- });
35
+ }
36
+
37
+ return isValid;
34
38
  };
35
39
 
36
40
  export default { id, compile, interpret };
@@ -39,17 +39,17 @@ export type OasSchema30 = {
39
39
  xml?: Xml;
40
40
  };
41
41
 
42
- type Discriminator = {
42
+ export type Discriminator = {
43
43
  propertyName: string;
44
44
  mappings?: Record<string, string>;
45
45
  };
46
46
 
47
- type ExternalDocs = {
47
+ export type ExternalDocs = {
48
48
  url: string;
49
49
  description?: string;
50
50
  };
51
51
 
52
- type Xml = {
52
+ export type Xml = {
53
53
  name?: string;
54
54
  namespace?: string;
55
55
  prefix?: string;
@@ -68,11 +68,11 @@ export type OpenApi30 = {
68
68
  components?: Components;
69
69
  };
70
70
 
71
- type Reference = {
71
+ export type Reference = {
72
72
  $ref: "string";
73
73
  };
74
74
 
75
- type Info = {
75
+ export type Info = {
76
76
  title: string;
77
77
  description?: string;
78
78
  termsOfService?: string;
@@ -81,30 +81,30 @@ type Info = {
81
81
  version: string;
82
82
  };
83
83
 
84
- type Contact = {
84
+ export type Contact = {
85
85
  name?: string;
86
86
  url?: string;
87
87
  email?: string;
88
88
  };
89
89
 
90
- type License = {
90
+ export type License = {
91
91
  name: string;
92
92
  url?: string;
93
93
  };
94
94
 
95
- type Server = {
95
+ export type Server = {
96
96
  url: string;
97
97
  description?: string;
98
98
  variables?: Record<string, ServerVariable>;
99
99
  };
100
100
 
101
- type ServerVariable = {
101
+ export type ServerVariable = {
102
102
  enum?: string[];
103
103
  default: string;
104
104
  description?: string;
105
105
  };
106
106
 
107
- type Components = {
107
+ export type Components = {
108
108
  schemas?: Record<string, OasSchema30>;
109
109
  responses?: Record<string, Response | Reference>;
110
110
  parameters?: Record<string, Parameter | Reference>;
@@ -116,28 +116,28 @@ type Components = {
116
116
  callbacks: Record<string, Callback | Reference>;
117
117
  };
118
118
 
119
- type Response = {
119
+ export type Response = {
120
120
  description: string;
121
121
  headers?: Record<string, Header | Reference>;
122
122
  content?: Record<string, MediaType>;
123
123
  links?: Record<string, Link | Reference>;
124
124
  };
125
125
 
126
- type MediaType = {
126
+ export type MediaType = {
127
127
  schema?: OasSchema30;
128
128
  example?: unknown;
129
129
  examples?: Record<string, Example | Reference>;
130
130
  encoding?: Record<string, Encoding>;
131
131
  };
132
132
 
133
- type Example = {
133
+ export type Example = {
134
134
  summary?: string;
135
135
  description?: string;
136
136
  value?: unknown;
137
137
  externalValue?: string;
138
138
  };
139
139
 
140
- type Header = {
140
+ export type Header = {
141
141
  description?: string;
142
142
  required?: boolean;
143
143
  deprecated?: boolean;
@@ -151,9 +151,9 @@ type Header = {
151
151
  examples: Record<string, Example | Reference>;
152
152
  };
153
153
 
154
- type Paths = Record<string, PathItem>;
154
+ export type Paths = Record<string, PathItem>;
155
155
 
156
- type PathItem = {
156
+ export type PathItem = {
157
157
  $ref?: string;
158
158
  summary?: string;
159
159
  description?: string;
@@ -169,7 +169,7 @@ type PathItem = {
169
169
  trace?: Operation;
170
170
  };
171
171
 
172
- type Operation = {
172
+ export type Operation = {
173
173
  tags?: string[];
174
174
  summary?: string;
175
175
  description?: string;
@@ -184,17 +184,17 @@ type Operation = {
184
184
  servers?: Server[];
185
185
  };
186
186
 
187
- type Responses = Record<string, Response | Reference>;
187
+ export type Responses = Record<string, Response | Reference>;
188
188
 
189
- type SecurityRequirement = Record<string, string[]>;
189
+ export type SecurityRequirement = Record<string, string[]>;
190
190
 
191
- type Tag = {
191
+ export type Tag = {
192
192
  name: string;
193
193
  description?: string;
194
194
  externalDocs?: ExternalDocs;
195
195
  };
196
196
 
197
- type Parameter = {
197
+ export type Parameter = {
198
198
  name: string;
199
199
  in: string;
200
200
  description?: string;
@@ -210,73 +210,73 @@ type Parameter = {
210
210
  examples?: Record<string, Example | Reference>;
211
211
  };
212
212
 
213
- type RequestBody = {
213
+ export type RequestBody = {
214
214
  description?: string;
215
215
  content: Record<string, MediaType>;
216
216
  required?: boolean;
217
217
  };
218
218
 
219
- type SecurityScheme = APIKeySecurityScheme | HTTPSecurityScheme | OAuth2SecurityScheme | OpenIdConnectSecurityScheme;
219
+ export type SecurityScheme = APIKeySecurityScheme | HTTPSecurityScheme | OAuth2SecurityScheme | OpenIdConnectSecurityScheme;
220
220
 
221
- type APIKeySecurityScheme = {
221
+ export type APIKeySecurityScheme = {
222
222
  type: "apiKey";
223
223
  name: string;
224
224
  in: "header" | "query" | "cookie";
225
225
  description?: string;
226
226
  };
227
227
 
228
- type HTTPSecurityScheme = {
228
+ export type HTTPSecurityScheme = {
229
229
  scheme: string;
230
230
  bearerFormat?: string;
231
231
  description?: string;
232
232
  type: "http";
233
233
  };
234
234
 
235
- type OAuth2SecurityScheme = {
235
+ export type OAuth2SecurityScheme = {
236
236
  type: "oauth2";
237
237
  flows: OAuthFlows;
238
238
  description?: string;
239
239
  };
240
240
 
241
- type OpenIdConnectSecurityScheme = {
241
+ export type OpenIdConnectSecurityScheme = {
242
242
  type: "openIdConnect";
243
243
  openIdConnectUrl: string;
244
244
  description?: string;
245
245
  };
246
246
 
247
- type OAuthFlows = {
247
+ export type OAuthFlows = {
248
248
  implicit?: ImplicitOAuthFlow;
249
249
  password?: PasswordOAuthFlow;
250
250
  clientCredentials?: ClientCredentialsFlow;
251
251
  authorizationCode?: AuthorizationCodeOAuthFlow;
252
252
  };
253
253
 
254
- type ImplicitOAuthFlow = {
254
+ export type ImplicitOAuthFlow = {
255
255
  authorizationUrl: string;
256
256
  refreshUrl?: string;
257
257
  scopes: Record<string, string>;
258
258
  };
259
259
 
260
- type PasswordOAuthFlow = {
260
+ export type PasswordOAuthFlow = {
261
261
  tokenUrl: string;
262
262
  refreshUrl?: string;
263
263
  scopes: Record<string, string>;
264
264
  };
265
265
 
266
- type ClientCredentialsFlow = {
266
+ export type ClientCredentialsFlow = {
267
267
  tokenUrl: string;
268
268
  refreshUrl?: string;
269
269
  scopes: Record<string, string>;
270
270
  };
271
271
 
272
- type AuthorizationCodeOAuthFlow = {
272
+ export type AuthorizationCodeOAuthFlow = {
273
273
  authorizationUrl: string;
274
274
  tokenUrl: string;
275
275
  refreshUrl?: string;
276
276
  scopes: Record<string, string>;
277
277
  };
278
278
 
279
- type Link = {
279
+ export type Link = {
280
280
  operationId?: string;
281
281
  operationRef?: string;
282
282
  parameters?: Record<string, unknown>;
@@ -285,9 +285,9 @@ type Link = {
285
285
  server?: Server;
286
286
  };
287
287
 
288
- type Callback = Record<string, PathItem>;
288
+ export type Callback = Record<string, PathItem>;
289
289
 
290
- type Encoding = {
290
+ export type Encoding = {
291
291
  contentType?: string;
292
292
  headers?: Record<string, Header | Reference>;
293
293
  style?: "form" | "spaceDelimited" | "pipeDelimited" | "deepObject";
@@ -67,17 +67,17 @@ export type OasSchema31 = boolean | {
67
67
  xml?: Xml;
68
68
  };
69
69
 
70
- type Discriminator = {
70
+ export type Discriminator = {
71
71
  propertyName: string;
72
72
  mappings?: Record<string, string>;
73
73
  };
74
74
 
75
- type ExternalDocs = {
75
+ export type ExternalDocs = {
76
76
  url: string;
77
77
  description?: string;
78
78
  };
79
79
 
80
- type Xml = {
80
+ export type Xml = {
81
81
  name?: string;
82
82
  namespace?: string;
83
83
  prefix?: string;
@@ -98,7 +98,7 @@ export type OpenApi = {
98
98
  components?: Components;
99
99
  };
100
100
 
101
- type Info = {
101
+ export type Info = {
102
102
  title: string;
103
103
  summary?: string;
104
104
  description?: string;
@@ -108,31 +108,31 @@ type Info = {
108
108
  version: string;
109
109
  };
110
110
 
111
- type Contact = {
111
+ export type Contact = {
112
112
  name?: string;
113
113
  url?: string;
114
114
  email?: string;
115
115
  };
116
116
 
117
- type License = {
117
+ export type License = {
118
118
  name: string;
119
119
  url?: string;
120
120
  identifier?: string;
121
121
  };
122
122
 
123
- type Server = {
123
+ export type Server = {
124
124
  url: string;
125
125
  description?: string;
126
126
  variables?: Record<string, ServerVariable>;
127
127
  };
128
128
 
129
- type ServerVariable = {
129
+ export type ServerVariable = {
130
130
  enum?: string[];
131
131
  default: string;
132
132
  description?: string;
133
133
  };
134
134
 
135
- type Components = {
135
+ export type Components = {
136
136
  schemas?: Record<string, OasSchema31>;
137
137
  responses?: Record<string, Response | Reference>;
138
138
  parameters?: Record<string, Parameter | Reference>;
@@ -145,7 +145,7 @@ type Components = {
145
145
  pathItems?: Record<string, PathItem | Reference>;
146
146
  };
147
147
 
148
- type PathItem = {
148
+ export type PathItem = {
149
149
  summary?: string;
150
150
  description?: string;
151
151
  servers?: Server[];
@@ -160,7 +160,7 @@ type PathItem = {
160
160
  trace?: Operation;
161
161
  };
162
162
 
163
- type Operation = {
163
+ export type Operation = {
164
164
  tags?: string[];
165
165
  summary?: string;
166
166
  description?: string;
@@ -175,7 +175,7 @@ type Operation = {
175
175
  servers?: Server[];
176
176
  };
177
177
 
178
- type ExternalDocumentation = {
178
+ export type ExternalDocumentation = {
179
179
  description?: string;
180
180
  url: string;
181
181
  };
@@ -219,32 +219,32 @@ export type Parameter = {
219
219
  )
220
220
  );
221
221
 
222
- type ContentParameter = {
222
+ export type ContentParameter = {
223
223
  schema?: never;
224
224
  content: Record<string, MediaType | Reference>;
225
225
  };
226
226
 
227
- type SchemaParameter = {
227
+ export type SchemaParameter = {
228
228
  explode?: boolean;
229
229
  allowReserved?: boolean;
230
230
  schema: OasSchema32;
231
231
  content?: never;
232
232
  } & Examples;
233
233
 
234
- type RequestBody = {
234
+ export type RequestBody = {
235
235
  description?: string;
236
236
  content: Content;
237
237
  required?: boolean;
238
238
  };
239
239
 
240
- type Content = Record<string, MediaType>;
240
+ export type Content = Record<string, MediaType>;
241
241
 
242
- type MediaType = {
242
+ export type MediaType = {
243
243
  schema?: OasSchema31;
244
244
  encoding?: Record<string, Encoding>;
245
245
  } & Examples;
246
246
 
247
- type Encoding = {
247
+ export type Encoding = {
248
248
  contentType?: string;
249
249
  headers?: Record<string, Header | Reference>;
250
250
  style?: "form" | "spaceDelimited" | "pipeDelimited" | "deepObject";
@@ -252,23 +252,23 @@ type Encoding = {
252
252
  allowReserved?: boolean;
253
253
  };
254
254
 
255
- type Response = {
255
+ export type Response = {
256
256
  description: string;
257
257
  headers?: Record<string, Header | Reference>;
258
258
  content?: Content;
259
259
  links?: Record<string, Link | Reference>;
260
260
  };
261
261
 
262
- type Callback = Record<string, PathItem>;
262
+ export type Callback = Record<string, PathItem>;
263
263
 
264
- type Example = {
264
+ export type Example = {
265
265
  summary?: string;
266
266
  description?: string;
267
267
  value?: Json;
268
268
  externalValue?: string;
269
269
  };
270
270
 
271
- type Link = {
271
+ export type Link = {
272
272
  operationRef?: string;
273
273
  operationId?: string;
274
274
  parameters?: Record<string, string>;
@@ -277,7 +277,7 @@ type Link = {
277
277
  server?: Server;
278
278
  };
279
279
 
280
- type Header = {
280
+ export type Header = {
281
281
  description?: string;
282
282
  required?: boolean;
283
283
  deprecated?: boolean;
@@ -287,19 +287,19 @@ type Header = {
287
287
  content?: Content;
288
288
  };
289
289
 
290
- type Tag = {
290
+ export type Tag = {
291
291
  name: string;
292
292
  description?: string;
293
293
  externalDocs?: ExternalDocumentation;
294
294
  };
295
295
 
296
- type Reference = {
296
+ export type Reference = {
297
297
  $ref: string;
298
298
  summary?: string;
299
299
  description?: string;
300
300
  };
301
301
 
302
- type SecurityScheme = {
302
+ export type SecurityScheme = {
303
303
  type: "apiKey";
304
304
  description?: string;
305
305
  name: string;
@@ -322,41 +322,41 @@ type SecurityScheme = {
322
322
  openIdConnectUrl: string;
323
323
  };
324
324
 
325
- type OauthFlows = {
325
+ export type OauthFlows = {
326
326
  implicit?: Implicit;
327
327
  password?: Password;
328
328
  clientCredentials?: ClientCredentials;
329
329
  authorizationCode?: AuthorizationCode;
330
330
  };
331
331
 
332
- type Implicit = {
332
+ export type Implicit = {
333
333
  authorizationUrl: string;
334
334
  refreshUrl?: string;
335
335
  scopes: Record<string, string>;
336
336
  };
337
337
 
338
- type Password = {
338
+ export type Password = {
339
339
  tokenUrl: string;
340
340
  refreshUrl?: string;
341
341
  scopes: Record<string, string>;
342
342
  };
343
343
 
344
- type ClientCredentials = {
344
+ export type ClientCredentials = {
345
345
  tokenUrl: string;
346
346
  refreshUrl?: string;
347
347
  scopes: Record<string, string>;
348
348
  };
349
349
 
350
- type AuthorizationCode = {
350
+ export type AuthorizationCode = {
351
351
  authorizationUrl: string;
352
352
  tokenUrl: string;
353
353
  refreshUrl?: string;
354
354
  scopes: Record<string, string>;
355
355
  };
356
356
 
357
- type SecurityRequirement = Record<string, string[]>;
357
+ export type SecurityRequirement = Record<string, string[]>;
358
358
 
359
- type Examples = {
359
+ export type Examples = {
360
360
  example?: Json;
361
361
  examples?: Record<string, Example | Reference>;
362
362
  };
@@ -67,18 +67,18 @@ export type OasSchema32 = boolean | {
67
67
  xml?: Xml;
68
68
  };
69
69
 
70
- type Discriminator = {
70
+ export type Discriminator = {
71
71
  propertyName: string;
72
72
  mapping?: Record<string, string>;
73
73
  defaultMapping?: string;
74
74
  };
75
75
 
76
- type ExternalDocs = {
76
+ export type ExternalDocs = {
77
77
  url: string;
78
78
  description?: string;
79
79
  };
80
80
 
81
- type Xml = {
81
+ export type Xml = {
82
82
  nodeType?: "element" | "attribute" | "text" | "cdata" | "none";
83
83
  name?: string;
84
84
  namespace?: string;
@@ -101,7 +101,7 @@ export type OpenApi = {
101
101
  externalDocs?: ExternalDocs;
102
102
  };
103
103
 
104
- type Info = {
104
+ export type Info = {
105
105
  title: string;
106
106
  summary?: string;
107
107
  description?: string;
@@ -111,32 +111,32 @@ type Info = {
111
111
  version: string;
112
112
  };
113
113
 
114
- type Contact = {
114
+ export type Contact = {
115
115
  name?: string;
116
116
  url?: string;
117
117
  email?: string;
118
118
  };
119
119
 
120
- type License = {
120
+ export type License = {
121
121
  name: string;
122
122
  identifier?: string;
123
123
  url?: string;
124
124
  };
125
125
 
126
- type Server = {
126
+ export type Server = {
127
127
  url: string;
128
128
  description?: string;
129
129
  name?: string;
130
130
  variables?: Record<string, ServerVariable>;
131
131
  };
132
132
 
133
- type ServerVariable = {
133
+ export type ServerVariable = {
134
134
  enum?: string[];
135
135
  default: string;
136
136
  description?: string;
137
137
  };
138
138
 
139
- type Components = {
139
+ export type Components = {
140
140
  schemas?: Record<string, OasSchema32>;
141
141
  responses?: Record<string, Response | Reference>;
142
142
  parameters?: Record<string, Parameter | Reference>;
@@ -150,7 +150,7 @@ type Components = {
150
150
  mediaTypes?: Record<string, MediaType | Reference>;
151
151
  };
152
152
 
153
- type PathItem = {
153
+ export type PathItem = {
154
154
  $ref?: string;
155
155
  summary?: string;
156
156
  description?: string;
@@ -168,7 +168,7 @@ type PathItem = {
168
168
  parameters?: (Parameter | Reference)[];
169
169
  };
170
170
 
171
- type Operation = {
171
+ export type Operation = {
172
172
  tags?: string[];
173
173
  summary?: string;
174
174
  description?: string;
@@ -224,25 +224,25 @@ export type Parameter = {
224
224
  )
225
225
  );
226
226
 
227
- type ContentParameter = {
227
+ export type ContentParameter = {
228
228
  schema?: never;
229
229
  content: Record<string, MediaType | Reference>;
230
230
  };
231
231
 
232
- type SchemaParameter = {
232
+ export type SchemaParameter = {
233
233
  explode?: boolean;
234
234
  allowReserved?: boolean;
235
235
  schema: OasSchema32;
236
236
  content?: never;
237
237
  };
238
238
 
239
- type RequestBody = {
239
+ export type RequestBody = {
240
240
  description?: string;
241
241
  content: Record<string, MediaType | Reference>;
242
242
  required?: boolean;
243
243
  };
244
244
 
245
- type MediaType = {
245
+ export type MediaType = {
246
246
  schema?: OasSchema32;
247
247
  itemSchema?: OasSchema32;
248
248
  } & Examples & ({
@@ -255,7 +255,7 @@ type MediaType = {
255
255
  itemEncoding?: Encoding;
256
256
  });
257
257
 
258
- type Encoding = {
258
+ export type Encoding = {
259
259
  contentType?: string;
260
260
  headers?: Record<string, Header | Reference>;
261
261
  style?: "form" | "spaceDelimited" | "pipeDelimited" | "deepObject";
@@ -271,11 +271,11 @@ type Encoding = {
271
271
  itemEncoding?: Encoding;
272
272
  });
273
273
 
274
- type Responses = {
274
+ export type Responses = {
275
275
  default?: Response | Reference;
276
276
  } & Record<string, Response | Reference>;
277
277
 
278
- type Response = {
278
+ export type Response = {
279
279
  summary?: string;
280
280
  description?: string;
281
281
  headers?: Record<string, Header | Reference>;
@@ -283,14 +283,14 @@ type Response = {
283
283
  links?: Record<string, Link | Reference>;
284
284
  };
285
285
 
286
- type Callback = Record<string, PathItem>;
286
+ export type Callback = Record<string, PathItem>;
287
287
 
288
- type Examples = {
288
+ export type Examples = {
289
289
  example?: Json;
290
290
  examples?: Record<string, Example | Reference>;
291
291
  };
292
292
 
293
- type Example = {
293
+ export type Example = {
294
294
  summary?: string;
295
295
  description?: string;
296
296
  } & ({
@@ -305,7 +305,7 @@ type Example = {
305
305
  externalValue?: string;
306
306
  });
307
307
 
308
- type Link = {
308
+ export type Link = {
309
309
  operationRef?: string;
310
310
  operationId?: string;
311
311
  parameters?: Record<string, string>;
@@ -314,7 +314,7 @@ type Link = {
314
314
  server?: Server;
315
315
  };
316
316
 
317
- type Header = {
317
+ export type Header = {
318
318
  description?: string;
319
319
  required?: boolean;
320
320
  deprecated?: boolean;
@@ -326,7 +326,7 @@ type Header = {
326
326
  content: Record<string, MediaType | Reference>;
327
327
  });
328
328
 
329
- type Tag = {
329
+ export type Tag = {
330
330
  name: string;
331
331
  summary?: string;
332
332
  description?: string;
@@ -335,13 +335,13 @@ type Tag = {
335
335
  kind?: string;
336
336
  };
337
337
 
338
- type Reference = {
338
+ export type Reference = {
339
339
  $ref: string;
340
340
  summary?: string;
341
341
  description?: string;
342
342
  };
343
343
 
344
- type SecurityScheme = {
344
+ export type SecurityScheme = {
345
345
  type: "apiKey";
346
346
  description?: string;
347
347
  name: string;
@@ -370,7 +370,7 @@ type SecurityScheme = {
370
370
  deprecated?: boolean;
371
371
  };
372
372
 
373
- type OauthFlows = {
373
+ export type OauthFlows = {
374
374
  implicit?: Implicit;
375
375
  password?: Password;
376
376
  clientCredentials?: ClientCredentials;
@@ -378,38 +378,38 @@ type OauthFlows = {
378
378
  deviceAuthorization?: DeviceAuthorization;
379
379
  };
380
380
 
381
- type Implicit = {
381
+ export type Implicit = {
382
382
  authorizationUrl: string;
383
383
  refreshUrl?: string;
384
384
  scopes: Record<string, string>;
385
385
  };
386
386
 
387
- type Password = {
387
+ export type Password = {
388
388
  tokenUrl: string;
389
389
  refreshUrl?: string;
390
390
  scopes: Record<string, string>;
391
391
  };
392
392
 
393
- type ClientCredentials = {
393
+ export type ClientCredentials = {
394
394
  tokenUrl: string;
395
395
  refreshUrl?: string;
396
396
  scopes: Record<string, string>;
397
397
  };
398
398
 
399
- type AuthorizationCode = {
399
+ export type AuthorizationCode = {
400
400
  authorizationUrl: string;
401
401
  tokenUrl: string;
402
402
  refreshUrl?: string;
403
403
  scopes: Record<string, string>;
404
404
  };
405
405
 
406
- type DeviceAuthorization = {
406
+ export type DeviceAuthorization = {
407
407
  deviceAuthorizationUrl: string;
408
408
  tokenUrl: string;
409
409
  refreshUrl?: string;
410
410
  scopes: Record<string, string>;
411
411
  };
412
412
 
413
- type SecurityRequirement = Record<string, string[]>;
413
+ export type SecurityRequirement = Record<string, string[]>;
414
414
 
415
415
  export * from "../lib/index.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hyperjump/json-schema",
3
- "version": "1.17.3",
3
+ "version": "1.17.4",
4
4
  "description": "A JSON Schema validator with support for custom keywords, vocabularies, and dialects",
5
5
  "type": "module",
6
6
  "main": "./v1/index.js",
@@ -25,7 +25,7 @@
25
25
  "scripts": {
26
26
  "clean": "xargs -a .gitignore rm -rf",
27
27
  "lint": "eslint lib v1 draft-* openapi-* bundle annotations",
28
- "test": "vitest --watch=false",
28
+ "test": "vitest run",
29
29
  "check-types": "tsc --noEmit"
30
30
  },
31
31
  "repository": {