mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +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:
parent
ff3e5a7d37
commit
902ee13ae7
5
types/swagger-schema-official/index.d.ts
vendored
5
types/swagger-schema-official/index.d.ts
vendored
@ -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 =
|
||||
|
||||
Loading…
Reference in New Issue
Block a user