Commit 28b0cf4 1 parent 6e9c52d commit 28b0cf4 Copy full SHA for 28b0cf4
File tree 5 files changed +108
-100
lines changed
5 files changed +108
-100
lines changed Original file line number Diff line number Diff line change 39
39
},
40
40
"homepage" : " https://github.com/Unleash/unleash-proxy#readme" ,
41
41
"dependencies" : {
42
- "@unleash/express- openapi" : " ^0.3 .0" ,
42
+ "@wesleytodd/ openapi" : " ^1.1 .0" ,
43
43
"compression" : " ^1.7.4" ,
44
44
"cors" : " ^2.8.5" ,
45
45
"express" : " ^4.21.0" ,
Original file line number Diff line number Diff line change 1
- /// <reference path="./types/openapi.d.ts" />
2
-
3
1
import { createApp } from './app' ;
4
2
import Client from './client' ;
5
3
import { createProxyConfig } from './config' ;
Original file line number Diff line number Diff line change 1
- import openapi , { type IExpressOpenApi } from '@unleash/express- openapi' ;
1
+ import openapi , { type IExpressOpenApi } from '@wesleytodd/ openapi' ;
2
2
import type { Application , RequestHandler } from 'express' ;
3
3
import type { OpenAPIV3 } from 'openapi-types' ;
4
4
import { createOpenApiSchema } from '.' ;
@@ -30,7 +30,7 @@ export class OpenApiService {
30
30
// and the OpenAPI SwaggerUI at `${this.docsPathPath}`.
31
31
useDocs ( app : Application ) : void {
32
32
app . use ( this . api ) ;
33
- app . use ( this . docsPath ( ) , this . api . swaggerui ) ;
33
+ app . use ( this . docsPath ( ) , this . api . swaggerui ( ) ) ;
34
34
}
35
35
36
36
// Create request validation middleware
Original file line number Diff line number Diff line change 1
1
// Partial types for "@unleash/express-openapi".
2
- declare module '@unleash/express- openapi' {
2
+ declare module '@wesleytodd/ openapi' {
3
3
import type { RequestHandler } from 'express' ;
4
4
5
5
export interface IExpressOpenApi extends RequestHandler {
6
6
validPath : ( operation : OpenAPIV3 . OperationObject ) => RequestHandler ;
7
7
schema : ( name : string , schema : OpenAPIV3 . SchemaObject ) => void ;
8
- swaggerui : RequestHandler ;
8
+ swaggerui : ( ) => RequestHandler ;
9
9
}
10
10
11
11
export default function openapi (
You can’t perform that action at this time.
0 commit comments