Skip to content

Schematic input does not validate against the Schema  #28189

Closed

Description

@adamwoxsoft

Which @angular/* package(s) are the source of the bug?

Don't known / other

Is this a regression?

Yes

Description

I'm trying to create a guard with ng g guard shared/utils/auth. Path exists.

Please provide a link to a minimal reproduction of the bug

No response

Please provide the exception or error you saw

Schematic input does not validate against the Schema: {"skipTests":true,"name":"shared/utils/auth","project":"woxoptima.client","implements":[]}
Errors:

  Data path "/implements" must NOT have fewer than 1 items.

Please provide the environment you discovered this bug in (run ng version)

_                      _                 ____ _     ___
    / \   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|
   / △ \ | '_ \ / _` | | | | |/ _` | '__|   | |   | |    | |
  / ___ \| | | | (_| | |_| | | (_| | |      | |___| |___ | |
 /_/   \_\_| |_|\__, |\__,_|_|\__,_|_|       \____|_____|___|
                |___/


Angular CLI: 18.1.4
Node: 20.11.1
Package Manager: npm 10.2.4
OS: win32 x64

Angular: 18.1.4
... animations, cdk, cli, common, compiler, compiler-cli, core
... forms, material, platform-browser, platform-browser-dynamic
... router

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1801.4
@angular-devkit/build-angular   18.1.4
@angular-devkit/core            18.1.4
@angular-devkit/schematics      18.1.4
@schematics/angular             18.1.4
rxjs                            7.8.1
typescript                      5.5.4
zone.js                         0.14.10

Anything else?

No response

Activity

  1. transferred this issue fromangular/angularon Aug 11, 2024
  2. alan-agius4 commented on Aug 12, 2024

    @alan-agius4
    Collaborator

    This happened because an "implementation" step was likely skipped when using the prompts. We should not allow processing to continue when a choice prompt requires a minimum of one input.

  3. added 2 commits that reference this issue on Aug 12, 2024
    fae9542
    d4e95f2
  4. added a commit that references this issue on Aug 12, 2024
    73c2437
  5. added a commit that references this issue on Aug 12, 2024
    c5ed0b1
  6. added 4 commits that reference this issue on Aug 14, 2024
    509e7a4
    78fe2fd
    05a274a
    94e27c8
  7. angular-automatic-lock-bot commented on Sep 12, 2024

    @angular-automatic-lock-bot

    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.

  8. locked and limited conversation to collaborators on Sep 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions