Class: Openapi::Rswag::Specs::ExtendedTypeAttribute
- Inherits:
-
JSON::Schema::TypeV4Attribute
- Object
- JSON::Schema::TypeV4Attribute
- Openapi::Rswag::Specs::ExtendedTypeAttribute
- Defined in:
- lib/openapi/rswag/specs/extended_schema.rb
Class Method Summary collapse
Class Method Details
.validate(current_schema, data, fragments, processor, validator, options = {}) ⇒ Object
18 19 20 21 |
# File 'lib/openapi/rswag/specs/extended_schema.rb', line 18 def self.validate(current_schema, data, fragments, processor, validator, ={}) return if data.nil? && current_schema.schema['x-nullable'] == true super end |