Method: OpenApiOpenAIClient::CreateEmbeddingResponse#valid?

Defined in:
lib/openapi_openai/models/create_embedding_response.rb

#valid?Boolean

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

Returns:

  • (Boolean)

    true if the model is valid



156
157
158
159
160
161
162
163
164
165
# File 'lib/openapi_openai/models/create_embedding_response.rb', line 156

def valid?
  warn '[DEPRECATED] the `valid?` method is obsolete'
  return false if @data.nil?
  return false if @model.nil?
  return false if @object.nil?
  object_validator = EnumAttributeValidator.new('String', ["list"])
  return false unless object_validator.valid?(@object)
  return false if @usage.nil?
  true
end