You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
raiseInvalidArrayTypeError,"Invalid array type: #{of.inspect}. Must be a primitive type (:string, :number, etc.), a symbol reference, or a Schema class."
41
+
raiseInvalidArrayTypeError,"Invalid array type: #{of.inspect}. Must be a primitive type (:string, :number, etc.), a symbol reference, a Schema class, or a Schema instance."
Copy file name to clipboardExpand all lines: spec/ruby_llm/schema_spec.rb
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -409,11 +409,11 @@
409
409
# Invalid object types
410
410
expect{
411
411
schema_class.object:item,of: 123
412
-
}.toraise_error(RubyLLM::Schema::InvalidObjectTypeError,/Invalid object type: 123.*Must be a symbol referenceor a Schema class/)
412
+
}.toraise_error(RubyLLM::Schema::InvalidObjectTypeError,/Invalid object type: 123.*Must be a symbol reference, a Schema class, or a Schema instance/)
413
413
414
414
expect{
415
415
schema_class.object:item,of: "invalid"
416
-
}.toraise_error(RubyLLM::Schema::InvalidObjectTypeError,/Invalid object type: "invalid".*Must be a symbol referenceor a Schema class/)
416
+
}.toraise_error(RubyLLM::Schema::InvalidObjectTypeError,/Invalid object type: "invalid".*Must be a symbol reference, a Schema class, or a Schema instance/)
0 commit comments