Skip to content

overly restrictive install.yml check (template does not use any apis) #1478

@shazron

Description

@shazron

See submission #1477 which does not have any apis.

This template can be installed on the command line:
aio app init my-mcp-server --template @adobe/generator-app-remote-mcp-server-generic or aio templates install --no-process-install-config /local-path/generator-app-remote-mcp-server-generic (with may have a non-fatal error regarding the same schema validation) so the restriction may not make sense.

Expected

Able to add a template to the registry with no apis in install.yml

Actual

Cannot add a template to the registry with no apis in install.yml (schema validation error)

Fix

Update the schema, so the apis array can be minItems of zero.
See

Workaround

Remove the apis key in install.yml if you don't have APIs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions