Skip to content

Commit

Permalink
fix(nx-dev): test additional property for boolean and object (#14646)
Browse files Browse the repository at this point in the history
closes #12773
  • Loading branch information
bcabanes committed Jan 26, 2023
1 parent cd92d10 commit e002bd3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions nx-dev/feature-package-schema-viewer/src/lib/types/type.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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'
);
}

Expand Down

1 comment on commit e002bd3

@vercel
Copy link

@vercel vercel bot commented on e002bd3 Jan 26, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

nx-dev – ./

nx-five.vercel.app
nx.dev
nx-dev-nrwl.vercel.app
nx-dev-git-master-nrwl.vercel.app

Please sign in to comment.