diff --git a/index.d.ts b/index.d.ts index 3a3e3a2..eaba4d4 100644 --- a/index.d.ts +++ b/index.d.ts @@ -98,13 +98,13 @@ type JsonSchemaProperties = MutableStringMap type Methods = "get" | "put" | "post" | "delete" | "options" | "head" | "patch" -interface OperationObject { +type OperationObject = { operationId?: string parameters?: ReadonlyArray 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[] diff --git a/package.json b/package.json index 4a0dee1..fc9192c 100644 --- a/package.json +++ b/package.json @@ -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",