* JSON types.

* remove NSP

* Update Types
This commit is contained in:
Sergey Shandar 2019-01-28 16:16:43 -08:00 коммит произвёл Vlad Barosan
Родитель 058c6017aa
Коммит 78f1a6225b
2 изменённых файлов: 7 добавлений и 7 удалений

8
index.d.ts поставляемый
Просмотреть файл

@ -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",