From 1d205b334638d44eb99d142cd0594eda0d572da0 Mon Sep 17 00:00:00 2001 From: Anna Bocharova Date: Mon, 1 Apr 2024 11:12:23 +0200 Subject: [PATCH] Fix: `const` is `any`, not only `string` See https://json-schema.org/draft-06/draft-wright-json-schema-validation-01#rfc.section.6.24 --- src/model/openapi31.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/model/openapi31.ts b/src/model/openapi31.ts index cff390c..e4b8029 100644 --- a/src/model/openapi31.ts +++ b/src/model/openapi31.ts @@ -301,7 +301,7 @@ export interface SchemaObject extends ISpecificationExtension { title?: string; multipleOf?: number; maximum?: number; - const?: string; + const?: any; /** @desc In OpenAPI 3.1: number */ exclusiveMaximum?: number; minimum?: number;