From e002bd3479415138aa9a74a81dd35819fc0f7270 Mon Sep 17 00:00:00 2001 From: Benjamin Cabanes <3447705+bcabanes@users.noreply.github.com> Date: Thu, 26 Jan 2023 10:44:57 -0500 Subject: [PATCH] fix(nx-dev): test additional property for boolean and object (#14646) closes https://github.com/nrwl/nx/issues/12773 --- nx-dev/feature-package-schema-viewer/src/lib/types/type.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/nx-dev/feature-package-schema-viewer/src/lib/types/type.tsx b/nx-dev/feature-package-schema-viewer/src/lib/types/type.tsx index 6f7e0b2430379..e28be36978e14 100644 --- a/nx-dev/feature-package-schema-viewer/src/lib/types/type.tsx +++ b/nx-dev/feature-package-schema-viewer/src/lib/types/type.tsx @@ -60,8 +60,9 @@ function hasPatternProperties(s: JsonSchema1): boolean { } function hasAdditionalProperties(s: JsonSchema1): boolean { - return !( - typeof s.additionalProperties === 'boolean' && !s.additionalProperties + return ( + typeof s.additionalProperties === 'boolean' || + typeof s.additionalProperties === 'object' ); }