code: func FindResourceSecuredBy(r *raml.Resource) []raml.DefinitionChoice {
  	if len(r.SecuredBy) > 0 {
  		return r.SecuredBy
  	}
  	if r.Parent == nil {
  		return []raml.DefinitionChoice{}
  	}
  	return FindResourceSecuredBy(r.Parent)
  }
docs: // find resource's securedBy recursively