Sha256: ec2469763d3ccc9514da0f748f950af0b2cfdce363e83f2cbe88c82cebc0f65f

Contents?: true

Size: 1017 Bytes

Versions: 36

Compression:

Stored size: 1017 Bytes

Contents

class OpenAPIParser::SchemaValidator
  class Options
    # @!attribute [r] coerce_value
    #   @return [Boolean] coerce value option on/off
    # @!attribute [r] datetime_coerce_class
    #   @return [Object, nil] coerce datetime string by this Object class
    # @!attribute [r] validate_header
    #   @return [Boolean] validate header or not
    attr_reader :coerce_value, :datetime_coerce_class, :validate_header

    def initialize(coerce_value: nil, datetime_coerce_class: nil, validate_header: true)
      @coerce_value = coerce_value
      @datetime_coerce_class = datetime_coerce_class
      @validate_header = validate_header
    end
  end

  # response body validation option
  class ResponseValidateOptions
    # @!attribute [r] strict
    #   @return [Boolean] validate by strict (when not exist definition, raise error)
    attr_reader :strict, :validate_header

    def initialize(strict: false, validate_header: true)
      @strict = strict
      @validate_header = validate_header
    end
  end
end

Version data entries

36 entries across 36 versions & 2 rubygems

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