# frozen_string_literal: true class BasicSerializer module Swagger def swagger_ref @schema_ref || "#/components/schemas/#{custom_model_name}" end def swagger_schema hash = { type: "object", properties: {} } attributes.each_pair do |name, type| hash[:properties][name] = { type: type } end hash end end end