Sha256: 1e5594bb8561d63c107868a72a58fae6fe08c6789a57c4b2d9ab63d49dd1d40e
Contents?: true
Size: 340 Bytes
Versions: 28
Compression:
Stored size: 340 Bytes
Contents
class OpenAPIParser::SchemaValidator class NilValidator < Base # @param [Object] value # @param [OpenAPIParser::Schemas::Schema] schema def coerce_and_validate(value, schema, **_keyword_args) return [value, nil] if schema.nullable [nil, OpenAPIParser::NotNullError.new(schema.object_reference)] end end end
Version data entries
28 entries across 28 versions & 2 rubygems