Sha256: 96a223e3a6349f4ade9a7dd3d442cb20fb42735379949ee4d1f0a115a3b1da3c
Contents?: true
Size: 420 Bytes
Versions: 6
Compression:
Stored size: 420 Bytes
Contents
require "json/schema/serializer" module Swagger class Schema class Component attr_reader :schema def initialize(schema) @schema = schema end def serializer(options = {}, store = true) use_options = store ? Swagger::Serializer::Store.current.serialize_options.merge(options) : options JSON::Schema::Serializer.new(@schema, use_options) end end end end
Version data entries
6 entries across 6 versions & 1 rubygems