← Back to issue list

Action parameters and config options represent integers in two different ways (`int` vs `integer`) in charmcraft.yaml

View original Github issue

Metadata

Project
charmcraft
Number
#2067
Type
issue
State
open
Author
gruyaume
Labels
Created
2025-01-07 17:27:47+00:00
Updated
2025-08-15 15:17:36+00:00
Closed

Current evaluation

No evaluation has been recorded for this issue yet.

Issue body

### What needs to get done ## Description Action parameters and config options represent integers in two different ways in charmcraft.yaml. Configuration option accept the type `int`, while action parameters accept the type `integer`. We're talking about the same concept here, there is no good reason to have two ways of talking about integers. ## Reference ```charmcraft.yaml ... config: options: subscriber-count: type: int default: 1 description: Number of subscribers to simulate actions: my-action: description: Run my action params: timeout: type: integer description: Time to wait for the simulation to complete (in seconds). The more subscribers, the longer the simulation will take. default: 300 ``` ### Why it needs to get done The same concept is represented in two different ways, unnecessarily confusing users.

Evaluation history

No evaluation history available.