Skip to content

allow variables to be optional without a default value #3053

@rajatjindal

Description

@rajatjindal

currently variable needs to be either provided a default value or made required in spin.toml. I would like to keep my default value in code near to where it is actually used. one of the reason I want to store my default values in code is because my project can run as a independent service or as a spin app and I don't want to duplicate the default values in two places.

I wanted to hear if that is something we may consider to relax or are there other reasons that we recommend configuring the default value in spin.toml?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Investigating / Open For Comment

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions