这是indexloc提供的服务,不要输入任何密码
Skip to content

[BUG]: products are incorrectly marked as mandatory in appgroups->apps create #689

@ascopes

Description

@ascopes

Describe the bug

The create command marks products as being mandatory, whereas the update command does not.

The import command has proven that this argument is not mandatory.

Version

apigeecli version 2.13.0 date: 2025-07-01T18:32:14Z [commit: 01f1372]

To Reproduce

Create an app in an app group without products.

Error: required flag(s) "prods" not set

Expected behavior
This should not be an error.

Additional context
The following is totally valid via the import command:

[
  [
    {
      "name": "my-app",
      "status": "approved",
      "appGroup": "my-appgroup",
      "createdAt": "1740992682300",
      "lastModifiedAt": "1740992682300",
      "credentials": [
        {
          "apiProducts": [
            {
              "apiproduct": "my-product",
              "status": "approved"
            }
          ],
          "consumerKey": "my-app-default",
          "consumerSecret": "N/A",
          "expiresAt": "-1",
          "status": "approved"
        }
      ]
    }
  ]
]

This shows that this attribute should not be marked as mandatory.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions