Skip to content

Commit 40edee7

Browse files
mdrafi28jdesrosiers
authored andcommitted
added linitng errors
1 parent c01bfd8 commit 40edee7

File tree

2 files changed

+29
-27
lines changed

2 files changed

+29
-27
lines changed

openapi-3-1/index.d.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import type { Json } from "@hyperjump/json-pointer";
22
import type { JsonSchemaType } from "../lib/common.js";
33

4+
45
export type OasSchema31 = boolean | {
56
$schema?: "https://spec.openapis.org/oas/3.1/dialect/base";
67
$id?: string;
@@ -311,4 +312,4 @@ type Examples = {
311312
examples?: Record<string, Example | Reference>;
312313
};
313314

314-
export * from "../lib/index.js";
315+
export * from "../lib/index.js";

openapi-3-2/index.d.ts

Lines changed: 27 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import type { Json } from "@hyperjump/json-pointer";
22
import type { JsonSchemaType } from "../lib/common.js";
33

4+
45
export type OasSchema32 = boolean | {
56
$schema?: "https://spec.openapis.org/oas/3.2/dialect/base";
67
$id?: string;
@@ -108,13 +109,13 @@ type Info = {
108109
contact?: Contact;
109110
license?: License;
110111
version: string;
111-
}
112+
};
112113

113114
type Contact = {
114115
name?: string;
115116
url?: string;
116117
email?: string;
117-
}
118+
};
118119

119120
type License = {
120121
name: string;
@@ -126,7 +127,7 @@ type ServerVariable = {
126127
enum?: string[];
127128
default: string;
128129
description?: string;
129-
}
130+
};
130131

131132
type PathItem = {
132133
summary?: string;
@@ -174,7 +175,7 @@ type Parameter = {
174175
allowReserved?: boolean;
175176
schema?: OasSchema32;
176177
content?: Record<string, MediaType | Reference>;
177-
}
178+
};
178179

179180
type Example = {
180181
summary?: string;
@@ -183,19 +184,19 @@ type Example = {
183184
serializedValue?: string;
184185
externalValue?: string;
185186
value?: Json;
186-
}
187+
};
187188

188189
type Reference = {
189190
$ref: string;
190191
summary?: string;
191192
description?: string;
192-
}
193+
};
193194

194195
type RequestBody = {
195196
description?: string;
196197
content: Record<string, MediaType | Reference>;
197198
required?: boolean;
198-
}
199+
};
199200

200201
type MediaType = {
201202
schema?: OasSchema32;
@@ -205,7 +206,7 @@ type MediaType = {
205206
encoding?: Record<string, Encoding>;
206207
prefixEncoding?: Encoding[];
207208
itemEncoding?: Encoding;
208-
}
209+
};
209210

210211
type Encoding = {
211212
contentType?: string;
@@ -216,7 +217,7 @@ type Encoding = {
216217
style?: string;
217218
explode?: boolean;
218219
allowReserved?: boolean;
219-
}
220+
};
220221

221222
type Header = {
222223
description?: string;
@@ -228,7 +229,7 @@ type Header = {
228229
explode?: boolean;
229230
schema?: OasSchema32;
230231
content?: Record<string, MediaType | Reference>;
231-
}
232+
};
232233

233234
type Responses = {
234235
default?: Response | Reference;
@@ -243,7 +244,7 @@ type Server = {
243244
description?: string;
244245
name: string;
245246
variables?: Record<string, ServerVariable>;
246-
}
247+
};
247248

248249
type Components = {
249250
schemas?: Record<string, OasSchema32>;
@@ -262,14 +263,14 @@ type Components = {
262263
type SecurityScheme = {
263264
type: "apiKey" | "http" | "mutualTLS" | "oauth2" | "openIdConnect";
264265
description?: string;
265-
name?: string;
266+
name?: string;
266267
in?: "query" | "header" | "cookie";
267-
scheme?: string;
268-
bearerFormat?: string;
269-
flows?: OAuthFlows;
270-
openIdConnectUrl?: string;
271-
oauth2MetadataUrl?: string;
272-
deprecated?: boolean;
268+
scheme?: string;
269+
bearerFormat?: string;
270+
flows?: OAuthFlows;
271+
openIdConnectUrl?: string;
272+
oauth2MetadataUrl?: string;
273+
deprecated?: boolean;
273274
};
274275

275276
type OAuthFlows = {
@@ -284,33 +285,33 @@ type Implicit = {
284285
authorizationUrl: string;
285286
refreshUrl?: string;
286287
scopes: Record<string, string>;
287-
}
288+
};
288289

289290
type Password = {
290291
tokenUrl: string;
291292
refreshUrl?: string;
292293
scopes: Record<string, string>;
293-
}
294+
};
294295

295296
type ClientCredentials = {
296297
tokenUrl: string;
297298
refreshUrl?: string;
298299
scopes: Record<string, string>;
299-
}
300+
};
300301

301302
type AuthorizationCode = {
302303
authorizationUrl: string;
303304
tokenUrl: string;
304305
refreshUrl?: string;
305306
scopes: Record<string, string>;
306-
}
307+
};
307308

308309
type DeviceAuthorization = {
309310
deviceAuthorizationUrl: string;
310311
tokenUrl: string;
311312
refreshUrl?: string;
312313
scopes: Record<string, string>;
313-
}
314+
};
314315

315316
type Link = {
316317
operationRef?: string;
@@ -319,7 +320,7 @@ type Link = {
319320
requestBody?: Json;
320321
description?: string;
321322
server?: Server;
322-
}
323+
};
323324

324325
type Tag = {
325326
name: string;
@@ -328,6 +329,6 @@ type Tag = {
328329
externalDocs?: ExternalDocs;
329330
parent?: string;
330331
kind?: string;
331-
}
332+
};
332333

333-
export * from "../lib/index.js";
334+
export * from "../lib/index.js";

0 commit comments

Comments
 (0)