I'm currently trying to write my own swagger codegen plugin and came across 
a "problem" when generating the client code for the PetStore api example.

It's about the "placeOrder" operation (POST on /store/order): This 
operation has an "in body" parameter but no "consumes" list (neither on the 
operation nor on the api itself).

While the mime type in this particular example is most likely 
"application/json", my question is: What should a codegen plugin do about 
this? I mean should it always assume "application/json" (which could be 
totally wrong)? Or should it error out?

Or is this actually a "bug" in the PetStore api spec?

Unfortunately, the Swagger 2.0 spec doesn't seem to say anything about this 
case (at least nothing I could find).

Thanks for the help in advance. :)

-- 
You received this message because you are subscribed to the Google Groups 
"Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to