Sha256: 3a2e733df4f999b24106edb31cf0e7cf42099f9410dab57651e16e10b7c88eff

Contents?: true

Size: 1.47 KB

Versions: 13

Compression:

Stored size: 1.47 KB

Contents

# frozen_string_literal: true

require 'rspec/rails/api/dsl/example_group'
require 'rspec/rails/api/dsl/example'
require 'rspec/rails/api/entity_config'
require 'rspec/rails/api/field_config'
require 'rspec/rails/api/matchers'
require 'rspec/rails/api/metadata'
require 'rspec/rails/api/open_api_renderer'
require 'rspec/rails/api/version'

module RSpec
  module Rails
    module Api
      class Error < StandardError
      end

      PARAM_TYPES = {
        int32:    { type: 'integer', format: 'int32', class: Integer },
        int64:    { type: 'integer', format: 'int64', class: Integer },
        float:    { type: 'number', format: 'float', class: Float },
        double:   { type: 'number', format: 'double', class: Float },
        byte:     { type: 'string', format: 'byte', class: String },
        binary:   { type: 'string', format: 'binary', class: String },
        date:     { type: 'string', format: 'date', class: String },
        datetime: { type: 'string', format: 'date-time', class: String },
        password: { type: 'string', format: 'password', class: String },
        boolean:  { type: 'boolean', format: nil },
        string:   { type: 'string', format: nil, class: String },
        integer:  { type: 'integer', format: nil, class: Integer },
        number:   { type: 'number', format: nil, class: Float },
        array:    { type: 'array', format: nil, class: Array },
        object:   { type: 'object', format: nil, class: Hash },
      }.freeze
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
rspec-rails-api-0.3.4 lib/rspec_rails_api.rb
rspec-rails-api-0.3.3 lib/rspec_rails_api.rb
rspec-rails-api-0.3.2 lib/rspec_rails_api.rb
rspec-rails-api-0.3.1 lib/rspec_rails_api.rb
rspec-rails-api-0.3.0 lib/rspec_rails_api.rb
rspec-rails-api-0.2.3 lib/rspec_rails_api.rb
rspec-rails-api-0.2.2 lib/rspec_rails_api.rb
rspec-rails-api-0.2.0 lib/rspec_rails_api.rb
rspec-rails-api-0.1.5 lib/rspec_rails_api.rb
rspec-rails-api-0.1.4 lib/rspec_rails_api.rb
rspec-rails-api-0.1.3 lib/rspec_rails_api.rb
rspec-rails-api-0.1.2 lib/rspec_rails_api.rb
rspec-rails-api-0.1.0 lib/rspec_rails_api.rb