mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-27 04:10:22 +00:00
All but Body Parameter implement BaseSchema (#20861)
In the swagger v2 specification all of the parameters except the BodyParameter implement the BodySchema. Check out the official spec here: http://swagger.io/v2/schema.json
This commit is contained in:
+3
-2
@@ -55,18 +55,19 @@ export interface QueryParameter extends BaseParameter, BaseSchema {
|
||||
allowEmptyValue?: boolean;
|
||||
}
|
||||
|
||||
export interface PathParameter extends BaseParameter {
|
||||
export interface PathParameter extends BaseParameter, BaseSchema {
|
||||
type: string;
|
||||
required: boolean;
|
||||
}
|
||||
|
||||
export interface HeaderParameter extends BaseParameter {
|
||||
export interface HeaderParameter extends BaseParameter, BaseSchema {
|
||||
type: string;
|
||||
}
|
||||
|
||||
export interface FormDataParameter extends BaseParameter, BaseSchema {
|
||||
type: string;
|
||||
collectionFormat?: string;
|
||||
allowEmptyValue?: boolean;
|
||||
}
|
||||
|
||||
export type Parameter =
|
||||
|
||||
Reference in New Issue
Block a user