Skip to content

Schematic input does not validate against the SchemaΒ #20848

Closed
@cesco69

Description

@cesco69

🐞 Bug report

Command (mark with an x)

  • generate

Is this a regression?

Yes, it works on Angular 11

πŸ”¬ Minimal Reproduction

Into angular.json set skipTests at true to module schematic:

{
  ...
  "projects": {
    "frontend": {
     ...
      "schematics": {
        ...
        "@schematics/angular:module": {
          "skipTests": true
        },
        ...
      },
   },
}, 

run the command for generate new module:

ng g m foo

output

Schematic input does not validate against the Schema: {"skipTests":true,"name":"test","project":"frontend"}
Errors:

  Data path "" must NOT have additional properties(skipTests).

πŸ”₯ Exception or Error


Schematic input does not validate against the Schema: {"skipTests":true,"name":"foo","project":"frontend"}
Errors:

  Data path "" must NOT have additional properties(skipTests).

🌍 Your Environment



     _                      _                 ____ _     ___
    / \   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|
   / β–³ \ | '_ \ / _` | | | | |/ _` | '__|   | |   | |    | |
  / ___ \| | | | (_| | |_| | | (_| | |      | |___| |___ | |
 /_/   \_\_| |_|\__, |\__,_|_|\__,_|_|       \____|_____|___|
                |___/
    

Angular CLI: 12.0.0
Node: 12.22.1
Package Manager: npm 6.14.12
OS: win32 x64

Angular: 
... animations, cdk, common, compiler, compiler-cli, core, forms
... language-service, localize, material
... material-moment-adapter, platform-browser
... platform-browser-dynamic, router

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1200.0 (cli-only)
@angular-devkit/build-angular   12.0.0 (cli-only)
@angular-devkit/core            12.0.0 (cli-only)
@angular-devkit/schematics      12.0.0 (cli-only)
@angular/cli                    12.0.0 (cli-only)
@schematics/angular             12.0.0 (cli-only)
rxjs                            6.6.7 (cli-only)
typescript                      4.0.5 (cli-only)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions