From 495f37c814915f93809829926cb0409ab5c1ab24 Mon Sep 17 00:00:00 2001 From: Omer Mecitoglu Date: Mon, 8 Jul 2024 15:26:41 +0700 Subject: [PATCH] update type of additionalProperties --- package-lock.json | 4 ++-- package.json | 2 +- src/schema.ts | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package-lock.json b/package-lock.json index 0367769..4a0014a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@omer-x/openapi-types", - "version": "0.2.0", + "version": "0.2.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@omer-x/openapi-types", - "version": "0.2.0", + "version": "0.2.1", "license": "MIT", "devDependencies": { "@omer-x/eslint-config": "^1.0.7", diff --git a/package.json b/package.json index 1dc7730..1f56926 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@omer-x/openapi-types", - "version": "0.2.0", + "version": "0.2.1", "description": "TypeScript types for the OpenAPI Specification", "keywords": [ "swagger", diff --git a/src/schema.ts b/src/schema.ts index 073c8af..5138e69 100644 --- a/src/schema.ts +++ b/src/schema.ts @@ -37,7 +37,7 @@ type ObjectSchema = { * By default, all object properties are optional. You can specify the required properties in the required list */ required?: string[], - additionalProperties?: Record | ReferenceObject | false, + additionalProperties?: SchemaObject | ReferenceObject | boolean, minProperties?: number, maxProperties?: number, };