swagger-ui icon indicating copy to clipboard operation
swagger-ui copied to clipboard

JSONObject

Open tpietsch opened this issue 12 years ago • 5 comments

Is there a way to get the json object without passing it though swaggers object mapper?

For (pet store) example if i wanted to at POST time add another (or many) custom key:value pair to the end of the json how could i accomplish this

tpietsch avatar Jun 13 '14 16:06 tpietsch

example....

i just posted another ticket since this one is closed...

POJO

class my{ public string myKey; public string myValu; }

apiparam(my thisismyparam)

generates

{ "my key" : "my value", "my key" : "my value" } then i add key values { "my key" : "my value", "my key" : "my value", "key" : "value", "key" : "value" } i want to be able to accept the added key values and parse them myself

tpietsch avatar Jun 13 '14 16:06 tpietsch

I think there's some kind of a confusion here. First off, based on what you commented in #208, it looks like you're talking about a java application even though this is the repository for swagger ui. Secondly, in your server-side, Swagger is completely unrelated with request processing. The only time it works (assuming java) is when the application is loaded and the resources and models are scanned. That's it.

webron avatar Jun 13 '14 16:06 webron

i know but can swagger take JSONobejcts

when i use JSONobject as a param it does not accept the input

tpietsch avatar Jun 13 '14 16:06 tpietsch

Again, is this related to Swagger-core? If so, the issue should be opened there.

On Fri, Jun 13, 2014 at 7:57 PM, tpietsch [email protected] wrote:

i know but can swagger take JSONobejcts

when i use JSONobject as a param it does not accept the input

— Reply to this email directly or view it on GitHub https://github.com/wordnik/swagger-ui/issues/474#issuecomment-46034829.

webron avatar Jun 13 '14 16:06 webron

ok

tpietsch avatar Jun 13 '14 16:06 tpietsch