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

swagger adds json to accepted content type #94

Open
shmish111 opened this issue May 12, 2016 · 5 comments
Open

swagger adds json to accepted content type #94

shmish111 opened this issue May 12, 2016 · 5 comments

Comments

@shmish111
Copy link

If I have a resource with

:produces [{:media-type #{"text/plain"}
                                         :charset    "UTF-8"}]

The swagger.json I get has
"produces":["application/json","text/plain"]

@malcolmsparks
Copy link
Contributor

Can you explain what you're expecting? Is it the text/plain that seems
wrong to you? (that's what seems wrong to me)

Malcolm Sparks
Director

Email: [email protected]
Web: https://juxt.pro

JUXT LTD.
Software Consulting, Delivery, Training

On 12 May 2016 at 12:31, David Smith [email protected] wrote:

If I have a resource with

:produces [{:media-type #{"text/plain"}
:charset "UTF-8"}]

The swagger.json I get has
"produces":["application/json","text/plain"]


You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub
#94

@shmish111
Copy link
Author

I told yada that I am going to produce text/plain and only text/plain and yet swagger says I will produce json as well.

@malcolmsparks
Copy link
Contributor

Are you talking about the swagger.json resource itself? Or your own
resource?

Malcolm Sparks
Director

Email: [email protected]
Web: https://juxt.pro

JUXT LTD.
Software Consulting, Delivery, Training

On 12 May 2016 at 15:08, David Smith [email protected] wrote:

I told yada that I am going to produce text/plain and only text/plain and
yet swagger says I will produce json as well.


You are receiving this because you commented.
Reply to this email directly or view it on GitHub
#94 (comment)

@shmish111
Copy link
Author

Sorry, my yada resources is defined to produce only text/plain however the swagger.json produced by yada says that both text and json can be produced.

@malcolmsparks
Copy link
Contributor

That seems like a bug - I'll need to investigate - is there a small example
you can add to this thread?

Malcolm Sparks
Director

Email: [email protected]
Web: https://juxt.pro

JUXT LTD.
Software Consulting, Delivery, Training

On 12 May 2016 at 15:16, David Smith [email protected] wrote:

Sorry, my yada resources is defined to produce only text/plain however the
swagger.json produced by yada says that both text and json can be produced.


You are receiving this because you commented.
Reply to this email directly or view it on GitHub
#94 (comment)

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