lib/generators/jsonapi/swagger/swagger_generator.rb
def swagger_type_from_column_type(type)
      case type&.to_sym
      when :bigint, :integer, :primary_key then 'integer'
      when :boolean then 'boolean'
      when :real, :number, :float, :decimal, :bigdecimal then 'number'
      when :object, :jsonb, :json then 'object'
      end
    end
# derives the swagger attribute type from AR database column type, also accepts json schema types
derives the swagger attribute type from AR database column type, also accepts json schema types
derives the swagger attribute type from AR database column type also accepts json schema types
def swagger_type_from_column_type(type)
      case type&.to_sym
      when :bigint, :integer, :primary_key then 'integer'
      when :boolean then 'boolean'
      when :real, :number, :float, :decimal, :bigdecimal then 'number'
      when :object, :jsonb, :json then 'object'
      end
    end
def swagger_type_from_column_type ( type ) case type &. to_sym when :bigint , :integer , :primary_key then 'integer' when :boolean then 'boolean' when :real , :number , :float , :decimal , :bigdecimal then 'number' when :object , :jsonb , :json then 'object' end end
derives the swagger attribute type from AR database column type, also accepts json schema types
derives the swagger attribute type from AR database column type also accepts json schema types
type