Method: Forgejo::Repository#valid?

Defined in:
lib/forgejo/models/repository.rb

#valid?Boolean

Check to see if the all the properties in the model are valid

Returns:

  • (Boolean)

    true if the model is valid



603
604
605
606
607
608
# File 'lib/forgejo/models/repository.rb', line 603

def valid?
  warn '[DEPRECATED] the `valid?` method is obsolete'
  object_format_name_validator = EnumAttributeValidator.new('String', ["sha1", "sha256"])
  return false unless object_format_name_validator.valid?(@object_format_name)
  true
end