Method: OpenApiOpenAIClient::MessageObjectIncompleteDetails#valid?
- Defined in:
- lib/openapi_openai/models/message_object_incomplete_details.rb
#valid? ⇒ Boolean
Check to see if the all the properties in the model are valid
105 106 107 108 109 110 111 |
# File 'lib/openapi_openai/models/message_object_incomplete_details.rb', line 105 def valid? warn '[DEPRECATED] the `valid?` method is obsolete' return false if @reason.nil? reason_validator = EnumAttributeValidator.new('String', ["content_filter", "max_tokens", "run_cancelled", "run_expired", "run_failed"]) return false unless reason_validator.valid?(@reason) true end |