Skip to content
This repository has been archived by the owner on Apr 9, 2022. It is now read-only.

Error if required schematic properties without defaults are not provided #6

Closed
dansanderson opened this issue Jun 14, 2017 · 2 comments

Comments

@dansanderson
Copy link

Currently if a schematic property is in schema.json's "required" list, nothing different happens if the option is not provided on the command line and doesn't have a "default". It should report a user error in this case.

@ssilvert
Copy link

I was just about to report this. It works fine for me if the schematic is run with the "schematics" tool. However, if the schematic is run from "ng" it ignores required properties.

schematics @Mystuff:myschematic <-- throws error if required prop not specified

ng g myschematic --collection @Mystuff <-- ignores required props

IMO, this is a BUG and not a feature request.

@alexeagle
Copy link
Contributor

This issue was moved to angular/angular-cli#12167

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants