require_relative "request_parser" module Devops module API2_0 module Parser class StackParser < RequestParser def create body = create_object_from_json_body list = check_array(body["run_list"], "Body must contains not empty array of strings", String, true, true) Validators::Helpers::RunList.new(list).validate! unless list.nil? body end def run_list list = check_array(create_object_from_json_body(Array), "Body must contains not empty array of strings") Validators::Helpers::RunList.new(list).validate! list end end end end end