mirror of
https://github.com/coder/coder.git
synced 2025-07-09 11:45:56 +00:00
fix: adjust ParameterSchema type for workspace creation (#2384)
* add ability to activate users resolves #2254 * added test * PR feedback * guarding against null validation_contains field * fixing type for ParameterSchema resolves #2161
This commit is contained in:
@ -72,7 +72,7 @@ type ParameterSchema struct {
|
||||
|
||||
// This is a special array of items provided if the validation condition
|
||||
// explicitly states the value must be one of a set.
|
||||
ValidationContains []string `json:"validation_contains"`
|
||||
ValidationContains []string `json:"validation_contains,omitempty"`
|
||||
}
|
||||
|
||||
// CreateParameterRequest is used to create a new parameter value for a scope.
|
||||
|
Reference in New Issue
Block a user