mirror of
https://github.com/coder/coder.git
synced 2025-07-08 11:39:50 +00:00
feat: mark coder_parameter as "required" (#6433)
* Add required column * Pass through providerd * Pass the required property down * Optional * Fix * Fix * Fix * fix * CLI create: support for optional fields * Use HTML API to mark fields required * Fix * Improve validation * more fixes * make fmt * Fix * WIP * Fix: test * CLI update tets * OptionalParameterAdded * Fix: migration
This commit is contained in:
@ -451,6 +451,7 @@ func ConvertState(modules []*tfjson.StateModule, rawGraph string) (*State, error
|
||||
Mutable: param.Mutable,
|
||||
DefaultValue: param.Default,
|
||||
Icon: param.Icon,
|
||||
Required: !param.Optional,
|
||||
}
|
||||
if len(param.Validation) == 1 {
|
||||
protoParam.ValidationRegex = param.Validation[0].Regex
|
||||
|
Reference in New Issue
Block a user