From 6f088a84cb5ce3a3de603b177eddae042eb24785 Mon Sep 17 00:00:00 2001 From: Sergio Moya <1083296+smoya@users.noreply.github.com> Date: Tue, 18 Jul 2023 12:25:59 +0200 Subject: [PATCH] feat!: add support for multi-format schemas Additionally, schema.format() will always return a value. Will return the default format if undefined. --- docs/v1.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/v1.md b/docs/v1.md index 7f07eeb..79ab5a6 100644 --- a/docs/v1.md +++ b/docs/v1.md @@ -211,7 +211,8 @@ ## MessageTrait - id(): `string` -- schemaFormat(): `string` +- schemaFormat(): `string` | `undefined` +- hasSchemaFormat(): `boolean` - hasMessageId(): `boolean` - messageId(): `string` | `undefined` - hasCorrelationId(): `boolean` @@ -338,7 +339,7 @@ - examples(): `any[]` | `undefined` - exclusiveMaximum(): `number` | `undefined` - exclusiveMinimum(): `number` | `undefined` -- format(): `string` | `undefined` +- format(): `string` - id(): `string` - isBooleanSchema(): `boolean` - if(): `Schema` | `undefined`