File tree Expand file tree Collapse file tree 4 files changed +10
-11
lines changed Expand file tree Collapse file tree 4 files changed +10
-11
lines changed Original file line number Diff line number Diff line change @@ -4,9 +4,8 @@ import type {
44 ResolverOptions ,
55 ParserOptions ,
66 FileInfo ,
7+ $Refs ,
78} from "@apidevtools/json-schema-ref-parser" ;
8- import type $Refs from "@apidevtools/json-schema-ref-parser/dist/lib/refs" ;
9- import type $RefParserOptions from "@apidevtools/json-schema-ref-parser/lib/options" ;
109export = SwaggerParser ;
1110
1211/**
@@ -343,7 +342,7 @@ declare namespace SwaggerParser {
343342 /**
344343 * See https://apitools.dev/swagger-parser/docs/options.html
345344 */
346- export interface Options extends $RefParserOptions {
345+ export interface Options extends Partial < ParserOptions > {
347346 /**
348347 * The `validate` options control how Swagger Parser will validate the API.
349348 */
Original file line number Diff line number Diff line change 4040 "lint:fix" : " eslint --fix lib test" ,
4141 "test" : " npm run test:node && npm run test:typescript" ,
4242 "test:node" : " mocha" ,
43- "test:typescript" : " tsc --noEmit --strict --lib esnext,dom test/specs/typescript-definition.spec.ts" ,
43+ "test:typescript" : " tsc --noEmit --strict --skipDefaultLibCheck --skipLibCheck -- lib esnext,dom test/specs/typescript-definition.spec.ts" ,
4444 "coverage" : " npm run coverage:node" ,
4545 "coverage:node" : " cross-env QUICK_TEST=true nyc mocha"
4646 },
6969 "typescript-eslint" : " ^8.33.1"
7070 },
7171 "dependencies" : {
72- "@apidevtools/json-schema-ref-parser" : " 13.0.0 " ,
72+ "@apidevtools/json-schema-ref-parser" : " 13.0.1 " ,
7373 "@apidevtools/openapi-schemas" : " ^2.1.0" ,
7474 "@apidevtools/swagger-methods" : " ^3.0.2" ,
7575 "ajv" : " ^8.17.1" ,
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import * as SwaggerParser from "../../lib";
44
55const baseUrl = "http://example.com/api" ;
66const openapiPath = "my-api.json" ;
7- const options = { } ;
7+ const options : SwaggerParser . Options = { } ;
88const promiseResolve = ( _ : object ) => undefined ;
99const promiseReject = ( _ : Error ) => undefined ;
1010const callback = ( _err : Error | null , _api ?: object ) => undefined ;
Original file line number Diff line number Diff line change @@ -15,13 +15,13 @@ __metadata:
1515 languageName : node
1616 linkType : hard
1717
18- " @apidevtools/json-schema-ref-parser@npm:13.0.0 " :
19- version : 13.0.0
20- resolution : " @apidevtools/json-schema-ref-parser@npm:13.0.0 "
18+ " @apidevtools/json-schema-ref-parser@npm:13.0.1 " :
19+ version : 13.0.1
20+ resolution : " @apidevtools/json-schema-ref-parser@npm:13.0.1 "
2121 dependencies :
2222 " @types/json-schema " : " npm:^7.0.15"
2323 js-yaml : " npm:^4.1.0"
24- checksum : 10c0/5a3a1c737092e7db4f3a910c0c1c3f75896a5e3afbb3cea76d06b51f71d0c96621112eb6709b4142a22aa4e6970c7eb83e8b23b71d83e6f8ea93e5d10ab87887
24+ checksum : 10c0/c1dcf0a54abec679489bf09d380f5ec70f0123b50b63876748eeae503ad173068f85b00f0b50a566734669d2452e79591372f4b07338f4115027e3580ccb0ebb
2525 languageName : node
2626 linkType : hard
2727
@@ -43,7 +43,7 @@ __metadata:
4343 version : 0.0.0-use.local
4444 resolution : " @apidevtools/swagger-parser@workspace:."
4545 dependencies :
46- " @apidevtools/json-schema-ref-parser " : " npm:13.0.0 "
46+ " @apidevtools/json-schema-ref-parser " : " npm:13.0.1 "
4747 " @apidevtools/openapi-schemas " : " npm:^2.1.0"
4848 " @apidevtools/swagger-methods " : " npm:^3.0.2"
4949 " @eslint/compat " : " npm:^1.2.9"
You can’t perform that action at this time.
0 commit comments