Sha256: d9271c89220b34a1f4e847d2f82cc8ac77254fd5309403b7e24ef5af0c90efc3

Contents?: true

Size: 288 Bytes

Versions: 11

Compression:

Stored size: 288 Bytes

Contents

require "jimmy"
require_relative "./jimmy_patch"

module Swagger
  class DSL < Hash
    class JsonSchema
      class Jimmy
        DOMAIN = ::Jimmy::Domain.new("")

        def self.dsl(&block)
          DOMAIN.instance_eval(&block).schema.compile
        end
      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/jimmy.rb
swagger-dsl-2.0.4 lib/swagger/dsl/json_schema/jimmy.rb
swagger-dsl-2.0.3 lib/swagger/dsl/json_schema/jimmy.rb
swagger-dsl-2.0.2 lib/swagger/dsl/json_schema/jimmy.rb
swagger-dsl-2.0.1 lib/swagger/dsl/json_schema/jimmy.rb
swagger-dsl-2.0.0 lib/swagger/dsl/json_schema/jimmy.rb
swagger-dsl-1.5.1 lib/swagger/dsl/json_schema/jimmy.rb
swagger-dsl-1.5.0 lib/swagger/dsl/json_schema/jimmy.rb
swagger-dsl-1.4.0 lib/swagger/dsl/json_schema/jimmy.rb
swagger-dsl-1.3.0 lib/swagger/dsl/json_schema/jimmy.rb
swagger-dsl-1.2.1 lib/swagger/dsl/json_schema/jimmy.rb