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

[Feature Request] Partial input matching #25

Open
tomasAlabes opened this issue Apr 8, 2020 · 0 comments
Open

[Feature Request] Partial input matching #25

tomasAlabes opened this issue Apr 8, 2020 · 0 comments

Comments

@tomasAlabes
Copy link

Hi, thanks again for your work :)

Sometimes you just care about a part of the input of the request. For example,

Input object: user: String, friends: List<User>, random: Number

pseudo-rules:

  • if user: "john" then return blah
  • if user: "laura"then return an error

In these cases I don't care about the friends and I can't predict the random number. I know that with strings you can use .* but it doesn't work with other types.

Would it be possible for the server to match like this?

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

No branches or pull requests

1 participant