This commit is contained in:
amartynov 2015-09-15 14:12:39 +03:00
parent 8da62ce02a
commit 7ead58ff91

View File

@ -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)