Skip to content

additionalProperties at the builder level are allowed #14354

Closed
@FrozenPandaz

Description

@FrozenPandaz

🐞 Bug report

Command (mark with an x)

All Architect commands

Is this a regression?

No, I do not believe this ever worked.

Description

If a builder schema can say it supports additionalProperties. However, when running the builder with an additional property, the following error appears:

Unknown option: '--additional'
Unknown option: 'property'

🔬 Minimal Reproduction

https://github.com/FrozenPandaz/angular-bugs/tree/additional-properties
ng run v8app:print --additional property

🔥 Exception or Error


Unknown option: '--additional'
Unknown option: 'property'

🌍 Your Environment


jason@pop-os:~/projects/temp/v8app$ ng version

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

Angular CLI: 8.0.0-rc.2
Node: 10.15.3
OS: linux x64
Angular: 8.0.0-rc.2
... animations, cli, common, compiler, compiler-cli, core, forms
... language-service, platform-browser, platform-browser-dynamic
... router

Package                           Version
-----------------------------------------------------------
@angular-devkit/architect         0.800.0-rc.2
@angular-devkit/build-angular     0.800.0-rc.2
@angular-devkit/build-optimizer   0.800.0-rc.2
@angular-devkit/build-webpack     0.800.0-rc.2
@angular-devkit/core              8.0.0-rc.2
@angular-devkit/schematics        8.0.0-rc.2
@ngtools/webpack                  8.0.0-rc.2
@schematics/angular               8.0.0-rc.2
@schematics/update                0.800.0-rc.2
rxjs                              6.4.0
typescript                        3.4.5
webpack                           4.30.0

Anything else relevant?
This is important for passing arguments into child processes.

Workarounds for this are ugly:

Workaround #1:
ng run v8app:print --args="--additional property" Where args is a string input.

No, should not matter.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions