import {Type} from "@tsed/core";
import {Header, Schema} from "swagger-schema-official";

export interface ISwaggerResponses {
  /**
   * Use IResponseOptions.type instead of
   * @deprecated
   */
  use?: Type<any>;
  type?: Type<any>;
  collection?: Type<any>;
  description?: string;
  examples?: {[exampleName: string]: string};
  headers?: {[headerName: string]: Header};
  schema?: Schema;
}

import {Type} from "@tsed/core";
import {Header} from "swagger-schema-official";

export interface ISwaggerResponses {
  /**
   * Use IResponseOptions.type instead of
   * @deprecated
   */
  use?: Type<any>;
  type?: Type<any>;
  collection?: Type<any>;
  description?: string;
  examples?: {[exampleName: string]: string};
  headers?: {[headerName: string]: Header};
}

--- 
+++ 
@@ -1,5 +1,5 @@
 import {Type} from "@tsed/core";
-import {Header} from "swagger-schema-official";
+import {Header, Schema} from "swagger-schema-official";
 
 export interface ISwaggerResponses {
   /**
@@ -12,4 +12,5 @@
   description?: string;
   examples?: {[exampleName: string]: string};
   headers?: {[headerName: string]: Header};
+  schema?: Schema;
 }
fix(swagger): Add schema on ISwaggerResponse interface

Closes: #739
