From 87321b8dc90b52170ff10782fed0bdfcf9038d82 Mon Sep 17 00:00:00 2001 From: Alexander Cerutti Date: Thu, 17 Jun 2021 19:58:12 +0200 Subject: [PATCH] Fixed typos on field's property names - Closes #76 --- src/schema.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/schema.ts b/src/schema.ts index 413c0ec..368cf22 100644 --- a/src/schema.ts +++ b/src/schema.ts @@ -371,14 +371,14 @@ const barcode = Joi.object().keys({ export interface Field { attributedValue?: string | number | Date; changeMessage?: string; - dataDetectorType?: string[]; + dataDetectorTypes?: string[]; label?: string; textAlignment?: string; key: string; value: string | number | Date; semantics?: Semantics; dateStyle?: string; - ignoreTimeZone?: boolean; + ignoresTimeZone?: boolean; isRelative?: boolean; timeStyle?: string; currencyCode?: string; @@ -392,7 +392,7 @@ const field = Joi.object().keys({ Joi.date().iso(), ), changeMessage: Joi.string(), - dataDetectorType: Joi.array().items( + dataDetectorTypes: Joi.array().items( Joi.string().regex( /(PKDataDetectorTypePhoneNumber|PKDataDetectorTypeLink|PKDataDetectorTypeAddress|PKDataDetectorTypeCalendarEvent)/, "dataDetectorType", @@ -415,7 +415,7 @@ const field = Joi.object().keys({ /(PKDateStyleNone|PKDateStyleShort|PKDateStyleMedium|PKDateStyleLong|PKDateStyleFull)/, "date style", ), - ignoreTimeZone: Joi.boolean(), + ignoresTimeZone: Joi.boolean(), isRelative: Joi.boolean(), timeStyle: Joi.string().regex( /(PKDateStyleNone|PKDateStyleShort|PKDateStyleMedium|PKDateStyleLong|PKDateStyleFull)/,