Sha256: 6414784514ce25de96b5f92995eb25e2b2986f6dffef57b4475184fbb152acdf

Contents?: true

Size: 513 Bytes

Versions: 40

Compression:

Stored size: 513 Bytes

Contents

# TODO: example
# TODO: examples
# TODO: encoding

module OpenAPIParser::Schemas
  class MediaType < Base
    # @!attribute [r] schema
    #   @return [Schema, nil] OpenAPI3 Schema object
    openapi_attr_object :schema, Schema, reference: true

    # validate params by schema definitions
    # @param [Hash] params
    # @param [OpenAPIParser::SchemaValidator::Options] options
    def validate_parameter(params, options)
      OpenAPIParser::SchemaValidator.validate(params, schema, options)
    end
  end
end

Version data entries

40 entries across 40 versions & 2 rubygems

Version Path
openapi_parser-2.2.2 lib/openapi_parser/schemas/media_type.rb
openapi_parser-2.2.1 lib/openapi_parser/schemas/media_type.rb
openapi_parser-2.2.0 lib/openapi_parser/schemas/media_type.rb
openapi_parser-2.1.0 lib/openapi_parser/schemas/media_type.rb
openapi_parser-2.0.0 lib/openapi_parser/schemas/media_type.rb
openapi_parser_firetail-1.0.0 lib/openapi_parser/schemas/media_type.rb
openapi_parser-1.0.0 lib/openapi_parser/schemas/media_type.rb
openapi_parser-1.0.0.beta1 lib/openapi_parser/schemas/media_type.rb
openapi_parser-0.15.0 lib/openapi_parser/schemas/media_type.rb
openapi_parser-0.14.1 lib/openapi_parser/schemas/media_type.rb
openapi_parser-0.14.0 lib/openapi_parser/schemas/media_type.rb
openapi_parser-0.13.0 lib/openapi_parser/schemas/media_type.rb
openapi_parser-0.12.1 lib/openapi_parser/schemas/media_type.rb
openapi_parser-0.12.0 lib/openapi_parser/schemas/media_type.rb
openapi_parser-0.11.2 lib/openapi_parser/schemas/media_type.rb
openapi_parser-0.11.1 lib/openapi_parser/schemas/media_type.rb
openapi_parser-0.11.0 lib/openapi_parser/schemas/media_type.rb
openapi_parser-0.10.0 lib/openapi_parser/schemas/media_type.rb
openapi_parser-0.9.0 lib/openapi_parser/schemas/media_type.rb
openapi_parser-0.8.0 lib/openapi_parser/schemas/media_type.rb