зеркало из https://github.com/Azure/sway.git
Родитель
058c6017aa
Коммит
78f1a6225b
|
@ -98,13 +98,13 @@ type JsonSchemaProperties = MutableStringMap<SchemaObject>
|
|||
|
||||
type Methods = "get" | "put" | "post" | "delete" | "options" | "head" | "patch"
|
||||
|
||||
interface OperationObject {
|
||||
type OperationObject = {
|
||||
operationId?: string
|
||||
parameters?: ReadonlyArray<ParameterObject>
|
||||
consumes?: string[]
|
||||
produces?: string[]
|
||||
responses: ResponsesObject
|
||||
}
|
||||
} & json.EmptyObject
|
||||
|
||||
interface ResponsesObject {
|
||||
default?: ResponseObject
|
||||
|
@ -168,7 +168,7 @@ declare class Parameter {
|
|||
getValue(request: Request): ParameterValue
|
||||
}
|
||||
|
||||
declare interface Operation {
|
||||
type Operation = {
|
||||
readonly operationId?: any
|
||||
method: string
|
||||
pathObject: Path
|
||||
|
@ -177,7 +177,7 @@ declare interface Operation {
|
|||
"x-ms-examples": any
|
||||
readonly consumes: string[]
|
||||
readonly produces: any
|
||||
definition: Object
|
||||
definition: OperationObject
|
||||
definitionFullyResolved: Object
|
||||
pathToDefinition: string[]
|
||||
parameterObjects: Parameter[]
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "yasway",
|
||||
"version": "1.5.10",
|
||||
"version": "1.5.12",
|
||||
"description": "A library that simplifies Swagger integrations.",
|
||||
"main": "index.js",
|
||||
"types": "index.d.ts",
|
||||
|
@ -67,8 +67,8 @@
|
|||
},
|
||||
"dependencies": {
|
||||
"@ts-common/json": "^0.2.0",
|
||||
"@ts-common/string-map": "^0.2.2",
|
||||
"z-schema": "^3.24.2",
|
||||
"@ts-common/string-map": "^0.2.3",
|
||||
"z-schema": "^3.25.1",
|
||||
"debug": "^3.1.0",
|
||||
"faker": "^4.1.0",
|
||||
"js-base64": "^2.4.8",
|
||||
|
|
Загрузка…
Ссылка в новой задаче