Skip to content
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.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refine SingleFilterSearchRequest interface to permit array values for the IN and NIN operators #454

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

kang8
Copy link

@kang8 kang8 commented Dec 23, 2024

Resolved: #453

Why?

Currently, the SingleFilterSearchRequest interface in the intercom-node library does not enforce that the value property be an array when the operator is set to "IN" or "NIN". This can lead to runtime errors if a string is provided instead of an array.

How?

Modify the SingleFilterSearchRequest interface to ensure type safety by differentiating between operators that require an array for value and those that do not.


I noticed that the interface file is indicated as auto-generated with the comment:

/**
* This file was auto-generated by Fern from our API Definition.
*/

However, I'm not familiar with the specifics of the generation process. As such, this PR serves as a conceptual proposal for addressing the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Adjust SingleFilterSearchRequest Interface for 'IN' Operator to Require Array Type
1 participant