-
Notifications
You must be signed in to change notification settings - Fork 10
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
text/xml in iam spec instead of application/xml, which is what the OpenAPI 3.0 spec supports #31
Comments
OpenAPI supports any media type, not just those used in examples. The real question is what is the actual API sending in its |
Ah, ok. I was expecting that the content types would be listed in the spec somewhere, but I guess that's not the case. Thanks for you patience as I understand this! Here are the headers returned by AWS:
Unfortunately, when I run the openapi-generator for In the media type RFC, looking at "text" versus "application", I'm wondering if they actually signal that different handling should be used or whether that's just a generator bug. I'll ask in that issue to see what they say. I'll close this out, since it matches what AWS actually returns. Thanks for the quick response! |
This was a bug in the |
The openapi spec only supports
application/xml
: https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.0.md (at least based on the fact that I can't findtext/xml
).However, this spec uses
text/xml
: https://github.com/APIs-guru/openapi-directory/tree/master/APIs/amazonaws.com/iam/2010-05-08 I think these should beapplication/xml
instead.The text was updated successfully, but these errors were encountered: