diff --git a/devops-service/app/api2/parsers/project.rb b/devops-service/app/api2/parsers/project.rb index a99c449..1a799f4 100644 --- a/devops-service/app/api2/parsers/project.rb +++ b/devops-service/app/api2/parsers/project.rb @@ -55,7 +55,7 @@ module Devops check_string(body["name"], "Parameter 'name' must be a not empty string", true, false) check_string(body["description"], "Parameter 'description' must be a string", true, true) #check_array(body["deploy_envs"], "Parameter 'deploy_envs' must be a not empty array of objects", Hash) - check_array(body["run_list"], "Parameter 'run_list' must be an array of string", String, true, true) + rl = check_array(body["run_list"], "Parameter 'run_list' must be an array of string", String, true, true) Validators::Helpers::RunList.new(rl).validate! unless rl.nil? #raise InvalidRecord.new("'components' key not found") if c["components"].nil? #Devops::Model::Project.new(body)