Method: OpenapiClient::OrganizationCreate#list_invalid_properties
- Defined in:
- lib/openapi_client/models/organization_create.rb
#list_invalid_properties ⇒ Object
Show invalid properties with the reasons. Usually used together with valid?
86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 |
# File 'lib/openapi_client/models/organization_create.rb', line 86 def list_invalid_properties invalid_properties = Array.new if @key.nil? invalid_properties.push('invalid value for "key", key cannot be nil.') end pattern = Regexp.new(/^[A-Za-z0-9\-_]+$/) if @key !~ pattern invalid_properties.push("invalid value for \"key\", must conform to the pattern #{pattern}.") end if @name.nil? invalid_properties.push('invalid value for "name", name cannot be nil.') end pattern = Regexp.new(/^[A-Za-z0-9\.\-\_\ ]+$/) if @name !~ pattern invalid_properties.push("invalid value for \"name\", must conform to the pattern #{pattern}.") end invalid_properties end |