Method: OryClient::Pagination#list_invalid_properties
- Defined in:
- lib/ory-client/models/pagination.rb
#list_invalid_properties ⇒ Object
Show invalid properties with the reasons. Usually used together with valid?
103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 |
# File 'lib/ory-client/models/pagination.rb', line 103 def list_invalid_properties invalid_properties = Array.new if !@page.nil? && @page < 1 invalid_properties.push('invalid value for "page", must be greater than or equal to 1.') end if !@page_size.nil? && @page_size > 1000 invalid_properties.push('invalid value for "page_size", must be smaller than or equal to 1000.') end if !@page_size.nil? && @page_size < 1 invalid_properties.push('invalid value for "page_size", must be greater than or equal to 1.') end if !@per_page.nil? && @per_page > 1000 invalid_properties.push('invalid value for "per_page", must be smaller than or equal to 1000.') end if !@per_page.nil? && @per_page < 1 invalid_properties.push('invalid value for "per_page", must be greater than or equal to 1.') end invalid_properties end |