From 202d214951b38b2ffcc866dcaf35f4b22a808963 Mon Sep 17 00:00:00 2001 From: Sergey Shandar Date: Thu, 8 Nov 2018 16:15:52 -0800 Subject: [PATCH] InfoObject (#58) --- index.d.ts | 5 +++++ package-lock.json | 2 +- package.json | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/index.d.ts b/index.d.ts index 353d19e..86260d0 100644 --- a/index.d.ts +++ b/index.d.ts @@ -3,6 +3,11 @@ import { MutableStringMap } from "@ts-common/string-map"; // https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#info-object interface InfoObject { readonly title: string + readonly version: string + readonly description?: string + readonly termsOfService?: string + readonly contact?: unknown + readonly license?: unknown } interface SwaggerObject { diff --git a/package-lock.json b/package-lock.json index b65ce12..c5ce710 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "yasway", - "version": "1.1.0", + "version": "1.2.0", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 51d5519..3f7b164 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "yasway", - "version": "1.1.0", + "version": "1.2.0", "description": "A library that simplifies Swagger integrations.", "main": "index.js", "types": "index.d.ts",