# typed: false # frozen_string_literal: true class ErrorSerializer class << self def format(message) { errors: [ { message: message, }, ], }.to_json end end end