Sha256: 5738c6ecb61210e9a608a7675afb32dceb36e7152579b334dea6e3e67ecb2d70

Contents?: true

Size: 509 Bytes

Versions: 5

Compression:

Stored size: 509 Bytes

Contents

require_relative "./util"
require_relative "./schema_accessor"

module Swagger
  class Schema
    class ParameterBase
      extend SchemaAccessor

      def initialize(schema)
        @schema = schema
      end

      define_schema_accessor %i[
        description
        required
        deprecated
        allowEmptyValue
        style
        explode
        allowReserved
        schema
        example
        examples
      ].freeze

      def to_json_schema
        schema
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
swagger-serializer-0.9.1 lib/swagger/schema/parameter_base.rb
swagger-serializer-0.9.0 lib/swagger/schema/parameter_base.rb
swagger-serializer-0.8.3 lib/swagger/schema/parameter_base.rb
swagger-serializer-0.8.2 lib/swagger/schema/parameter_base.rb
swagger-serializer-0.8.1 lib/swagger/schema/parameter_base.rb