File tree Expand file tree Collapse file tree 6 files changed +7
-7
lines changed Expand file tree Collapse file tree 6 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -224,7 +224,7 @@ basePath | string | Base API path; e.g. the 'v1' in https://myapi.com/v1
224
224
consumes | [ string] | Default consumes property for the entire API
225
225
description | string | API description; defaults to npm package description
226
226
entryFile | string or string[ ] | The entry point to your API (it is possible to use glob patters)
227
- ouptupFormat | 'Swagger_2' or 'OpenApi_3' | Inform if the generated spec will be in swagger 2.0 format or i open api 3.0
227
+ outputFormat | 'Swagger_2' or 'OpenApi_3' | Inform if the generated spec will be in swagger 2.0 format or i open api 3.0
228
228
host | string | The hostname to be informed in the generated swagger file
229
229
license | string | API license number; defaults to npm package license
230
230
name | string | API name; defaults to npm package name
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " typescript-rest-swagger" ,
3
- "version" : " 1.0.2 " ,
3
+ "version" : " 1.0.3 " ,
4
4
"description" : " Generate Swagger files from a typescript-rest project" ,
5
5
"keywords" : [
6
6
" typescript" ,
96
96
"node" : " >=6.0.0"
97
97
},
98
98
"engineStrict" : true
99
- }
99
+ }
Original file line number Diff line number Diff line change @@ -98,7 +98,7 @@ function validateSwaggerConfig(conf: SwaggerConfig): SwaggerConfig {
98
98
conf . description = conf . description || descriptionDefault ;
99
99
conf . license = conf . license || licenseDefault ;
100
100
conf . yaml = conf . yaml === false ? false : true ;
101
- conf . ouptupFormat = conf . ouptupFormat ? Specification [ conf . ouptupFormat ] : Specification . Swagger_2 ;
101
+ conf . outputFormat = conf . outputFormat ? Specification [ conf . outputFormat ] : Specification . Swagger_2 ;
102
102
103
103
return conf ;
104
104
}
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ export interface SwaggerConfig {
31
31
/**
32
32
* Inform if the generated spec will be in swagger 2.0 format or i open api 3.0
33
33
*/
34
- ouptupFormat ?: Specification ;
34
+ outputFormat ?: Specification ;
35
35
36
36
/**
37
37
* API host, expressTemplate.g. localhost:3000 or https://myapi.com
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ export class SpecGenerator {
21
21
this . debugger ( 'Swagger Config: %j' , this . config ) ;
22
22
this . debugger ( 'Services Metadata: %j' , this . metadata ) ;
23
23
let spec : any = this . getSwaggerSpec ( ) ;
24
- if ( this . config . ouptupFormat === Specification . OpenApi_3 ) {
24
+ if ( this . config . outputFormat === Specification . OpenApi_3 ) {
25
25
spec = await this . convertToOpenApiSpec ( spec ) ;
26
26
}
27
27
return new Promise < void > ( ( resolve , reject ) => {
You can’t perform that action at this time.
0 commit comments