Re: @ApiResponse - reference element

2016-09-20 Thread Ron Ratovsky
As you said, it’s a string representing a JSON Reference and can point either to something ‘local’ or remote. Assuming this is a model, all local models will end up appearing under #/definitions according to the spec. From: on behalf of Stephen

Re: Gulp plugin for Swagger Endpoints

2016-09-20 Thread Ron Ratovsky
Hi Colin, Thanks for sharing. Feel free to submit a PR against http://swagger.io/open-source-integrations/ to ad it to the list there if you want. From: on behalf of Colin Ogoo Reply-To:

Re: Is there a Java library for request/response validation that is framework agnostic?

2016-09-20 Thread tony tam
What do you mean? > On Sep 20, 2016, at 8:48 AM, Tom Akehurst wrote: > > Is there a way to adapt a Swagger spec to JSON schema? > > On Tuesday, September 20, 2016 at 3:38:03 PM UTC+1, Max Goldstein wrote: > Not only is the inflector tied to a specific stack, it seems to not

Re: [Java] importMappings not working with external classes

2016-09-20 Thread Brent Ryan
I've filed a bug report for this here: https://github.com/swagger-api/swagger-parser/issues/302 I've also discovered that if you move back to swagger parser 1.0.21 that this functionality works, but a different problem is broken... On Tuesday, September 20, 2016 at 2:36:40 PM UTC-4, Brent

Re: Is there a Java library for request/response validation that is framework agnostic?

2016-09-20 Thread Tom Akehurst
Is there a way to adapt a Swagger spec to JSON schema? On Tuesday, September 20, 2016 at 3:38:03 PM UTC+1, Max Goldstein wrote: > > Not only is the inflector tied to a specific stack, it seems to not be > feature-complete. My best idea is to validate incoming requests (and > outgoing responses)

Re: Issues with modelling duplicated XML parameters..

2016-09-20 Thread Ron Ratovsky
Hi Rene, Swagger-editor has a few glitches when it comes to displaying xml-related metadata. Try loading your spec in swagger-ui and see if it displays as expected. From: on behalf of "rene.min...@gmail.com"

Re: Does describing JSON RPC 2.0 API by Swagger is possible?

2016-09-20 Thread Ron Ratovsky
Without reading what steem specifically does, when it comes to JSON RPC the answer will normally be “not so much”. From: on behalf of Jacob Gadikian Reply-To: "swagger-swaggersocket@googlegroups.com"

Re: autocompletion problem for adding mutiple parameters

2016-09-20 Thread Ron Ratovsky
Hi Shima, You can try adding a new parameter by adding another entry to the array and then trying to auto-complete. If that doesn’t work, or you find the user experience not as expected, please open a ticket on the project and we’ll have a look at it. Thanks, Ron From:

Re: subTypes

2016-09-20 Thread Ron Ratovsky
So two different projects, two different statuses. For swagger-codegen, I believe there should be support for sub-types, at least for some of the languages. If you find that’s not the case, please open a ticket on the project. For swagger-ui it’s a bit more complicated. It’s indeed not

Re: Auto generated code in Python: How to specify controller name in Yaml file

2016-09-20 Thread Ron Ratovsky
Hi Benjamin, We may have discussed this on IRC. Generally speaking, the ‘tags’ should affect the controller name. If you find that’s not the case, please open a ticket on the codegen project so that it can be addressed. From: on behalf of

[Java] What is the correct way in swagger spec to refer to a model that I don't want to be generated

2016-09-20 Thread Brent Ryan
If I have a java class called com.cvent.Foo, what is the proper way to refer to this if I plan on using --import-mappings? I've tried below and it doesn't work. I've tried many different combinations of this as well and can't find a consistent way for this to work and it's basically

Re: Infinite loops in Swagger UI Example values

2016-09-20 Thread Ron Ratovsky
Can you open a ticket on swagger-ui? From: on behalf of Andrew Campbell Reply-To: "swagger-swaggersocket@googlegroups.com" Date: Wednesday, 31 August 2016 at 04:03 To:

Consume about current tools in swagger ecosystem

2016-09-20 Thread 徐山川
I am trying to use swagger-node to write down my rest api but found that the git repository did not update for a long time. And the function (like mock right string format) is not sound enough. Then I try to use the online `edit.swagger.com` to generate nodejs code and found that it only

Re: Server validation of body schemas

2016-09-20 Thread Max Goldstein
Sorry for the delay, but the inflector does indeed not validate multipleOf or the discriminator. This doesn't give me confidence in using it. Does anyone know of any request/response validator, in any language, that validates the discriminant? -- You received this message because you are

Re: Server validation of body schemas

2016-09-20 Thread tony tam
That’s the closest project I know of. And if something isn’t supported, you can always file an issue so that it becomes so? That’s the normal way to get features in. The hardest part of validating payloads isn’t the validation itself—it’s figuring out what schema to use, and when. > On Sep