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

FormatterParameterBinding exception in CustomerModuleController.GetMembersByIds API method #60

Open
adminoren opened this issue Aug 3, 2019 · 1 comment

Comments

@adminoren
Copy link

adminoren commented Aug 3, 2019

[ResponseType(typeof(Member))]
public IHttpActionResult GetMembersByIds([FromUri] string[] ids, [FromUri]string responseGroup = null, string[] memberTypes = null)

When I try to execute this method in swagger UI, I get this error: Optional parameter 'memberTypes' is not supported by 'FormatterParameterBinding'.
If I make 'memberTypes' parameter not optional or add [FromUri] attribute than it's ok.
Also, ResponseType should be Member[]. It is fixed in #57

@adminoren adminoren changed the title Invalid return type in CustomerModuleController.GetMembersByIds FormatterParameterBinding exception in CustomerModuleController.GetMembersByIds API method Aug 3, 2019
@yecli yecli added this to the Operations milestone Aug 5, 2019
@yecli
Copy link
Contributor

yecli commented Aug 5, 2019

Member[] problem was fixed in #52
Still need to fix API call method exception.

@t13ka t13ka removed this from the Operations milestone Dec 25, 2019
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

3 participants