Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Schema doesn't offer the bundle type #2192

Open
bepri opened this issue Feb 24, 2025 · 0 comments
Open

Schema doesn't offer the bundle type #2192

bepri opened this issue Feb 24, 2025 · 0 comments
Labels
Bug Something isn't working

Comments

@bepri
Copy link
Contributor

bepri commented Feb 24, 2025

Bug Description

The JSON schema for charmcraft.yaml files accepts defining a bundle charm, but it won't indicate to you that it's an option. It only suggests the "charm" type.

To Reproduce

Run charmcraft init. Then, replace the type key's value with something that doesn't exist, like msi, and check the validator error from your IDE.

Environment

Any

charmcraft.yaml

name: epic-charm
type: msi
title: Charm Template
summary: A very short one-line summary of the charm.
description: |
  I'm a short description.

platforms:
  amd64:

parts:
  my-part:
    plugin: nil

Relevant log output

Value is not accepted. Valid values: "charm".
@bepri bepri added the Bug Something isn't working label Feb 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant