Skip to content

Commit

Permalink
Merge pull request #910 from m-shaka/add-ref-to-apiResponse
Browse files Browse the repository at this point in the history
feat(api-response): support $ref
  • Loading branch information
kamilmysliwiec committed Aug 20, 2020
2 parents 266dc31 + a0b5ec0 commit 1f961d7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/decorators/api-response.decorator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ import { omit } from 'lodash';
import { DECORATORS } from '../constants';
import {
ResponseObject,
SchemaObject
SchemaObject,
ReferenceObject
} from '../interfaces/open-api-spec.interface';
import { getTypeIsArrayTuple } from './helpers';

Expand All @@ -18,7 +19,7 @@ export interface ApiResponseMetadata

export interface ApiResponseSchemaHost
extends Omit<ResponseObject, 'description'> {
schema: SchemaObject;
schema: SchemaObject & Partial<ReferenceObject>;
status?: number;
description?: string;
}
Expand Down

0 comments on commit 1f961d7

Please sign in to comment.