ngtk/open_api_annotator

View on GitHub
lib/open_api_annotator/field.rb

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
module OpenApiAnnotator
  class Field < Struct.new(:name, :type, :nullable)
    def valid?
      return false if name.nil?
      return false if type.nil?
      return false if nullable.nil?

      true
    end
  end
end