express-swagger-typescript
Advanced tools
Comparing version 1.0.22 to 1.0.23
@@ -62,2 +62,3 @@ import { IApiOperationArgsBaseRequestBody } from './iApiOperationArgs.base'; | ||
required?: string[]; | ||
model?: any | string; | ||
properties?: { | ||
@@ -64,0 +65,0 @@ [key: string]: ISwaggerPropertySchemaOperation; |
@@ -567,3 +567,5 @@ import * as assert from 'assert'; | ||
if (parameter.schema.model) | ||
newSwaggerOperationParameter.schema = Object.assign(Object.assign({}, newSwaggerOperationParameter.schema), { $ref: this.buildRef(parameter.schema.model) }); | ||
if (!newSwaggerOperationParameter.schema) | ||
newSwaggerOperationParameter.schema = {}; | ||
newSwaggerOperationParameter.schema.model = Object.assign(Object.assign({}, newSwaggerOperationParameter.schema.model), { $ref: this.buildRef(parameter.schema.model) }); | ||
} | ||
@@ -570,0 +572,0 @@ if (parameter.items) |
@@ -62,2 +62,3 @@ import { IApiOperationArgsBaseRequestBody } from './iApiOperationArgs.base'; | ||
required?: string[]; | ||
model?: any | string; | ||
properties?: { | ||
@@ -64,0 +65,0 @@ [key: string]: ISwaggerPropertySchemaOperation; |
@@ -593,3 +593,5 @@ "use strict"; | ||
if (parameter.schema.model) | ||
newSwaggerOperationParameter.schema = Object.assign(Object.assign({}, newSwaggerOperationParameter.schema), { $ref: this.buildRef(parameter.schema.model) }); | ||
if (!newSwaggerOperationParameter.schema) | ||
newSwaggerOperationParameter.schema = {}; | ||
newSwaggerOperationParameter.schema.model = Object.assign(Object.assign({}, newSwaggerOperationParameter.schema.model), { $ref: this.buildRef(parameter.schema.model) }); | ||
} | ||
@@ -596,0 +598,0 @@ if (parameter.items) |
{ | ||
"name": "express-swagger-typescript", | ||
"version": "1.0.22", | ||
"version": "1.0.23", | ||
"description": "Generate and serve swagger", | ||
@@ -5,0 +5,0 @@ "repository": { |
125657
3399