File tree 1 file changed +11
-2
lines changed
1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,8 @@ import { omit } from 'lodash';
4
4
import { DECORATORS } from '../constants' ;
5
5
import {
6
6
ResponseObject ,
7
- SchemaObject
7
+ SchemaObject ,
8
+ ReferenceObject
8
9
} from '../interfaces/open-api-spec.interface' ;
9
10
import { getTypeIsArrayTuple } from './helpers' ;
10
11
@@ -18,7 +19,7 @@ export interface ApiResponseMetadata
18
19
19
20
export interface ApiResponseSchemaHost
20
21
extends Omit < ResponseObject , 'description' > {
21
- schema : SchemaObject ;
22
+ schema : SchemaObject & Partial < ReferenceObject > ;
22
23
status ?: number ;
23
24
description ?: string ;
24
25
}
@@ -180,6 +181,14 @@ export const ApiNotImplementedResponse = (options: ApiResponseOptions = {}) =>
180
181
status : HttpStatus . NOT_IMPLEMENTED
181
182
} ) ;
182
183
184
+ export const ApiPreconditionFailedResponse = (
185
+ options : ApiResponseOptions = { }
186
+ ) =>
187
+ ApiResponse ( {
188
+ ...options ,
189
+ status : HttpStatus . PRECONDITION_FAILED
190
+ } ) ;
191
+
183
192
export const ApiPayloadTooLargeResponse = ( options : ApiResponseOptions = { } ) =>
184
193
ApiResponse ( {
185
194
...options ,
You can’t perform that action at this time.
0 commit comments