// validateVariables ensures that all defined variables are in the correct format and have a value assigned. The value can't be missing or an empty string.
validateVariables ensures that all defined variables are in the correct format and have a value assigned. The value can't be missing or an empty string.
// validateVariables ensures that all defined variables are in the correct format and have a value assigned . The value can ' t be missing or an empty string .
func validateVariables(variablesYaml map[string]interface{}) error {
	for key, value := range variablesYaml {
		if value == nil || value == "" {
			return fmt.Errorf("the variable \"%s\" has no value assigned to it", key)
		}
		err := validateVariableName(key)
		if err != nil {
			return err
		}
	}
	return nil
}
func validateVariables ( variablesYaml map [ string ] interface { } ) error { for key , value := range variablesYaml { if value == nil || value == " " { return fmt . Errorf ( " \" \" " , key ) } err := validateVariableName ( key ) if err != nil { return err } } return nil }
validateVariables ensures that all defined variables are in the correct format and have a value assigned.
validateVariables ensures that all defined variables are in the correct format and have a value assigned .
// Every varable must have a value