ngtk/open_api_annotator

View on GitHub
lib/open_api_annotator/nullable_validator.rb

Summary

Maintainability
A
0 mins
Test Coverage
D
60%
module OpenApiAnnotator
  class NullableValidator
    def validate!(nullable)
      if nullable.nil?
        raise ValidationError, "nullable should not be nil."
      end
    end
  end
end