Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Schematic options jsonschema validation fails because of underscore in parsedArgs #19416

Closed
daiscog opened this issue Nov 17, 2020 · 1 comment · Fixed by #19422
Closed

Schematic options jsonschema validation fails because of underscore in parsedArgs #19416

daiscog opened this issue Nov 17, 2020 · 1 comment · Fixed by #19422
Labels
Milestone

Comments

@daiscog
Copy link
Contributor

daiscog commented Nov 17, 2020

When using "additionalProperties": false in the schema.json for a schematic, validation of arguments fails when invoked via the schematic CLI (in @angular-devkit/schematics-cli@0.1001.4) as it adds an _ property to the options object.

An error occured:
Error: Schematic input does not validate against the Schema: {"_":[], ...}
Errors:
  Data path "" should NOT have additional properties(_).

Earlier versions did not fail as the parsedArgs._ property used to be deleted before invoking the schematic.

@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Dec 19, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants