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

Accessing AF's response validation #46

Open
chadhobson opened this issue Aug 23, 2017 · 2 comments
Open

Accessing AF's response validation #46

chadhobson opened this issue Aug 23, 2017 · 2 comments

Comments

@chadhobson
Copy link

I pass a custom Accept header to my API but it's throwing Alamofire.AFError.ResponseValidationFailureReason.unacceptableContentType error and I don't see AF exposed anywhere for me to add to the allowed content types validation array.

Anyone have any suggestions?

@s4cha
Copy link
Member

s4cha commented Aug 24, 2017

Hi @chadhobson,

Unfortunately this is not supported at the moment, the reason being we never needed it.
I think we should add this functionality though :)

  • Solution 1: Have a way to access AF so that users can access the whole underlying api.
  • Solution 2: Only add acceptableContentTypes wrapper
  • Solution 2: Add both

I'd love your thoughts on which one you prefer (I like nb 3)
@maxkonovalov I'd love your take on this as well :)

Cheers,

@chadhobson
Copy link
Author

chadhobson commented Aug 24, 2017

@s4cha I'd vote for the third option solely because the package will appeal to the broadest number of users.

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

2 participants