class Kamal::Configuration::Validator::Role < Kamal::Configuration::Validator
  def validate!
    validate_type! config, Array, Hash

    if config.is_a?(Array)
      validate_servers!(config)
    else
      super
      validate_labels!(config["labels"])
      validate_docker_options!(config["options"])
    end
  end
end
