Method: OpenApiOpenAIClient::Model#list_invalid_properties
- Defined in:
- lib/openapi_openai/models/model.rb
#list_invalid_properties ⇒ Object
Show invalid properties with the reasons. Usually used together with valid?
126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 |
# File 'lib/openapi_openai/models/model.rb', line 126 def list_invalid_properties warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new if @id.nil? invalid_properties.push('invalid value for "id", id cannot be nil.') end if @created.nil? invalid_properties.push('invalid value for "created", created cannot be nil.') end if @object.nil? invalid_properties.push('invalid value for "object", object cannot be nil.') end if @owned_by.nil? invalid_properties.push('invalid value for "owned_by", owned_by cannot be nil.') end invalid_properties end |