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



150
151
152
153
154
155
156
157
158
159
# File 'lib/openapi_openai/models/create_embedding_response.rb', line 150

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