File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed
packages/rtk-query-codegen-openapi/src/utils Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change 1
1
import SwaggerParser from '@apidevtools/swagger-parser' ;
2
+ import type { OpenAPIV3 } from 'openapi-types' ;
2
3
// @ts -ignore
3
4
import converter from 'swagger2openapi' ;
4
5
5
- import type { OpenAPIV3 } from 'openapi-types' ;
6
-
7
6
export async function getV3Doc ( spec : string ) : Promise < OpenAPIV3 . Document > {
8
7
const doc = await SwaggerParser . bundle ( spec ) ;
9
8
const isOpenApiV3 = 'openapi' in doc && doc . openapi . startsWith ( '3' ) ;
Original file line number Diff line number Diff line change 1
- import * as prettier from 'prettier ' ;
2
- import * as path from 'path ' ;
1
+ import path from 'node:path ' ;
2
+ import prettier from 'prettier ' ;
3
3
4
4
const EXTENSION_TO_PARSER : Record < string , string > = {
5
5
ts : 'typescript' ,
You can’t perform that action at this time.
0 commit comments