Generic parameter and output from Swagger generated code

21 views
Skip to first unread message

Siraset Jirapatchandej

unread,
Dec 17, 2016, 11:13:38 PM12/17/16
to Swagger
Hi All
   I'm curious if I can do something like this in swagger file. I want to have Swagger generated ruby client that can take any json input and return any json output. Does swagger file have the way to deal with?

Ron Ratovsky

unread,
Dec 18, 2016, 7:28:13 AM12/18/16
to swagger-sw...@googlegroups.com

Just specify the type to be object, and have an empty set of properties.

--
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 swagger-swaggers...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Siraset Jirapatchandej

unread,
Dec 18, 2016, 11:22:49 PM12/18/16
to swagger-sw...@googlegroups.com
Hi Ron
   Thank you for your reply. Just want to know more a bit that is it gonna work with swagger-codegen ?

To unsubscribe from this group and stop receiving emails from it, send an email to swagger-swaggersocket+unsub...@googlegroups.com.


For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to a topic in the Google Groups "Swagger" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/swagger-swaggersocket/7Fs7agD0_CY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to swagger-swaggersocket+unsub...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
Siraset Jirapatchandej
Python Developer/Devops

Ron Ratovsky

unread,
Dec 19, 2016, 12:07:41 PM12/19/16
to swagger-sw...@googlegroups.com

That depends on the different languages and their implementations. I suggest you try, and if you see something not working as expected, file a ticket on the project.

 

 

 

From: <swagger-sw...@googlegroups.com> on behalf of Siraset Jirapatchandej <vern...@gmail.com>
Reply-To: "swagger-sw...@googlegroups.com" <swagger-sw...@googlegroups.com>
Date: Sunday, 18 December 2016 at 20:22
To: "swagger-sw...@googlegroups.com" <swagger-sw...@googlegroups.com>
Subject: Re: Generic parameter and output from Swagger generated code

 

Hi Ron

   Thank you for your reply. Just want to know more a bit that is it gonna work with swagger-codegen ?

On Sun, Dec 18, 2016 at 7:27 PM, Ron Ratovsky <r...@swagger.io> wrote:

Just specify the type to be object, and have an empty set of properties.

 

 

From: <swagger-sw...@googlegroups.com> on behalf of Siraset Jirapatchandej <vern...@gmail.com>
Reply-To: "swagger-sw...@googlegroups.com" <swagger-sw...@googlegroups.com>
Date: Sunday, 18 December 2016 at 5:13
To: Swagger <swagger-sw...@googlegroups.com>
Subject: Generic parameter and output from Swagger generated code

 

Hi All

   I'm curious if I can do something like this in swagger file. I want to have Swagger generated ruby client that can take any json input and return any json output. Does swagger file have the way to deal with?

 

--

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 swagger-swaggers...@googlegroups.com.


For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to a topic in the Google Groups "Swagger" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/swagger-swaggersocket/7Fs7agD0_CY/unsubscribe.

To unsubscribe from this group and all its topics, send an email to swagger-swaggers...@googlegroups.com.


For more options, visit https://groups.google.com/d/optout.



 

--

Siraset Jirapatchandej

Python Developer/Devops

--

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 swagger-swaggers...@googlegroups.com.

Reply all
Reply to author
Forward
0 new messages