Skip to content

Using bool parameter values not intuitive #94

Description

@Emyrk

This does not behave as expected because the value is the string literal"true", not the boolean value true. This should be made more intuitive, or throw a warning?

data"coder_parameter""ai" {
name="ai"display_name="Use AI?"description="Do you want to use AI for this workspace?"type="bool"form_type="checkbox"default=falseorder=0
}
data"coder_parameter""ai_prompt" {
count=data.coder_parameter.ai.value==true?1:0name="prompt"display_name="Prompt"description=""type="string"form_type="textarea"default=""styling=jsonencode({
placeholder ="hello world"
})
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions