@@ -31,7 +31,7 @@ func validTemplate(template string, inputs, resolverInputs []string, steps map[s
3131 }
3232
3333 stepNames := stepNames (steps )
34- taskInfoKeys := []string {"resolver_username" , "created" , "requester_username" , "requester_groups" , "task_id" , "region" , "resolution_id" }
34+ taskInfoKeys := []string {"resolver_username" , "created" , "requester_username" , "requester_groups" , "task_id" , "region" , "resolution_id" , "watcher_usernames" , "watcher_groups" }
3535 for _ , m := range matches {
3636 parts := strings .Split (m [1 ], "." )
3737 if len (parts ) >= 3 {
@@ -138,13 +138,14 @@ func stepNames(stepMap map[string]*step.Step) []string {
138138
139139// tryVariablePath tries to match a chain of variables with the given properties.
140140// For example:
141- // given properties = map[foo:[bar] bar:[bar] qux:[foo] utaskRootKey:[qux]]
142- // and parts = [qux foo bar bar bar]
143- // "qux.foo.bar.bar.bar" is valid since "qux" makes "foo", "foo" makes "bar"
144- // and "bar" makes "bar".
145- // "qux.foo.bar.foo" is not valid since we cannot make "foo" from "bar".
146- // "foo.bar.bar" is not valid either since we start looping on parts using
147- // utaskRootKey map, which contains root properties of the json schema.
141+ //
142+ // given properties = map[foo:[bar] bar:[bar] qux:[foo] utaskRootKey:[qux]]
143+ // and parts = [qux foo bar bar bar]
144+ // "qux.foo.bar.bar.bar" is valid since "qux" makes "foo", "foo" makes "bar"
145+ // and "bar" makes "bar".
146+ // "qux.foo.bar.foo" is not valid since we cannot make "foo" from "bar".
147+ // "foo.bar.bar" is not valid either since we start looping on parts using
148+ // utaskRootKey map, which contains root properties of the json schema.
148149func tryVariablePath (properties map [string ][]string , parts []string ) error {
149150 // start with root properties
150151 lastKey := jsonschema .RootKey
0 commit comments