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
If a serializable value is provided as a SearchAttribute, serialize it instead of throwing the error: "SearchAttribute values must arrays of strings, numbers, booleans, or Dates. The value * at index 0 is of type object"
#1715
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
If an object is passed as a SearchAttribute, and it is not a Date, and it has a toJSON method, the toJSONmethod should be called, and only then should the validation happen.
E.g: this allows passing MongoDB ObjectIds as search attributes, as they have a toJSON that serializes to a String.
The text was updated successfully, but these errors were encountered:
If an object is passed as a SearchAttribute, and it is not a Date, and it has a
toJSON
method, thetoJSON
method should be called, and only then should the validation happen.E.g: this allows passing MongoDB ObjectIds as search attributes, as they have a
toJSON
that serializes to a String.The text was updated successfully, but these errors were encountered: