topcoder-platform / u-bahn-api

Universal Identity API
1 stars 11 forks source link

Don't allow to filter by "externalProfile" if "enrich" is not "true" #81

Open maxceem opened 3 years ago

maxceem commented 3 years ago

Context

During working on the TaaS API we came across with the next issue.

Suggestion

I suggest returning an explicit error when the user tries to filter by externalProfile but enrich !== true. As most likely user would get in response not what they are expecting.

References

We almost missed this difference in behavior and only QA caught it, see https://github.com/topcoder-platform/taas-apis/issues/154#issuecomment-788779015

callmekatootie commented 3 years ago

Related https://github.com/topcoder-platform/u-bahn-api/issues/80