Sha256: 02541c7af1d0a7f708d78fdf51eacd4239012cd774845c09140a4219dde83334

Contents?: true

Size: 335 Bytes

Versions: 11

Compression:

Stored size: 335 Bytes

Contents

require_relative "./json_schema/subset_dsl"
require_relative "./json_schema/jimmy"
require_relative "../dsl"

module Swagger
  class DSL < Hash
    class JsonSchema
      def self.by(dsl_type = nil)
        dsl_type ||= Swagger::DSL.current.config.default_dsl
        dsl_type == :jimmy ? Jimmy : SubsetDSL
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
swagger-dsl-2.0.5 lib/swagger/dsl/json_schema.rb
swagger-dsl-2.0.4 lib/swagger/dsl/json_schema.rb
swagger-dsl-2.0.3 lib/swagger/dsl/json_schema.rb
swagger-dsl-2.0.2 lib/swagger/dsl/json_schema.rb
swagger-dsl-2.0.1 lib/swagger/dsl/json_schema.rb
swagger-dsl-2.0.0 lib/swagger/dsl/json_schema.rb
swagger-dsl-1.5.1 lib/swagger/dsl/json_schema.rb
swagger-dsl-1.5.0 lib/swagger/dsl/json_schema.rb
swagger-dsl-1.4.0 lib/swagger/dsl/json_schema.rb
swagger-dsl-1.3.0 lib/swagger/dsl/json_schema.rb
swagger-dsl-1.2.1 lib/swagger/dsl/json_schema.rb