From 20667a69acceb3f8e91f83be90f4f5f2f5ee69d9 Mon Sep 17 00:00:00 2001 From: Hans Klunder Date: Sat, 17 Feb 2024 13:47:44 +0100 Subject: [PATCH] fix index.d.ts for validateBundle --- README.md | 1 + index.d.ts | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/README.md b/README.md index 1ad3a51..1371b39 100644 --- a/README.md +++ b/README.md @@ -110,6 +110,7 @@ Options: - [`.version`](#version) - [`.resolveRefs(options)`](#resolveRefs) - [`.addSpecRef(subSpecification, uri)`](#addSpecRef) +- [`.validateBundle([specification,subspecification, ...])`](#validateBundle) - [`Validator.supportedVersions`](#supportedVersions) diff --git a/index.d.ts b/index.d.ts index 051bbb9..de64209 100644 --- a/index.d.ts +++ b/index.d.ts @@ -9,6 +9,10 @@ export class Validator { valid: boolean; errors?: ErrorObject[] | string; }>; + validateBundle(schema: (object | string)[]): Promise<{ + valid: boolean; + errors?: ErrorObject[] | string; + }>; addSpecRef(schema: object | string, uri: string): Promise; specification: object; version: string;