From ee864beb3f2d928f1e78500739ed96947e3c723a Mon Sep 17 00:00:00 2001 From: Samuel Attard Date: Thu, 2 May 2019 14:02:47 -0700 Subject: [PATCH] fix: mark properties as optional correctly --- src/block-parsers.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/block-parsers.ts b/src/block-parsers.ts index 520ea82..cb13123 100644 --- a/src/block-parsers.ts +++ b/src/block-parsers.ts @@ -88,7 +88,7 @@ export const _headingToPropertyBlock = (heading: HeadingContent): PropertyDocume return { name: propertyString, description: parsedDescription, - required: true, + required: /\(optional\)/i.test(parsedDescription), ...parsedReturnType!, }; };