@ApiResponse - reference element

2016-09-20 Thread Stephen
I am trying to understand what the 'reference' parameter is used for. The java docs simply states: "Specifies a reference to the response type. The specified reference can be either local or remote and will be used as-is, and will override any specified response() class." Which to a newbie does

Gulp plugin for Swagger Endpoints

2016-09-20 Thread Colin Ogoo
Hi Guys, A colleague of mine and I, developed an open source gulp plugin that generates a JS file, which contains all endpoints that are provided by swagger. The package is available on npm and on Github. Github Repo npm

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

2016-09-20 Thread Tom Akehurst
Hello! I'm trying to find a good way to implement the following use case: I'm building a WireMock-based mock of a 3rd party API my project depends on. I'd like to be able to write a suite of tests that can be run against either the real API or the mock, where each HTTP request/response is captu

Seeking Beta Testers

2016-09-20 Thread seth
Hello All, My company, TECHeGO , is seeking beta testers to help us improve our system integration and automation platform that incorporates Blockly, OpenAPI Spec (Swagger) and years of API development experience. We began this initiative when ItDuzzIt, our previous auto

Re: Where is my JSON file?

2016-09-20 Thread Dave Ward
Hmm... i'm walking into this from the side... sorry, we have a .NET app and we simply pulled in the swagger package. the URL below is where i go (in our WebAPI project) when i run the API and debug it... On Monday, September 19, 2016 at 11:17:01 AM UTC-5, tony tam wrote: > > What framework do y

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

2016-09-20 Thread Max Goldstein
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) using this json schema validator , adding a custom pass to check for the discrimi

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 subsc

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 2

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 be > feature-comple

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: Is there a Java library for request/response validation that is framework agnostic?

2016-09-20 Thread Tom Akehurst
Haha, showing my ignorance here. Hadn't realised that the definitions part of a Swagger doc was actually JSON schema. On Tuesday, September 20, 2016 at 4:49:37 PM UTC+1, tony tam wrote: > > What do you mean? > > On Sep 20, 2016, at 8:48 AM, Tom Akehurst > > wrote: > > Is there a way to adapt a S

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

2016-09-20 Thread tony tam
Yes, there is a JSON schema to describe the swagger specification, and also the definitions are a subset of JSON schema. Please take a look here for all the gory details: https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md

Re: Where is my JSON file?

2016-09-20 Thread Ron Ratovsky
I assume you’re using Swashbuckle. Check out the documentation at https://github.com/domaindrivendev/Swashbuckle#custom-routes. From: on behalf of Dave Ward Reply-To: "swagger-swaggersocket@googlegroups.com" Date: Tuesday, 20 September 2016 at 06:38 To: Swagger Subject: Re: Wher

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: "swagger-swaggersocket@googlegroups.com" Date: Tuesday, 20 September 2016 at 03:56 To: Swagger

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 Reply-To: "swagger-swaggersocket@google

[Java] importMappings not working with external classes

2016-09-20 Thread Brent Ryan
Using the swagger definition below with 2.3.0-SNAPSHOT (latest) doesn't seem to work with "importMappings" in all cases. The reason for this is the SwaggerParser tries to resolve the references and it can't find FooType. However, this works sometimes and I can't figure out why... Also, what i

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 R

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: on behalf of

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 di

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 Benjamin SOULAS Reply-To: "swagger-swagger

Re: Same resource path

2016-09-20 Thread Ron Ratovsky
In the current version of the spec, there is no way to do that. Assuming both operation return the same type but have different input, your option is to specify the input options as optional and describe it as a single operation. From: on behalf of "avinash.upadhy...@gmail.com" Repl

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" Reply-To: "swagger-swaggersocket@googlegroups.com" Date: Monday, 5 Sep

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" Date: Sunday, 4 September 2016 at 17:06 To: Swagger Subject: Re: Does describing J

Re: Can we use mongoose schema when defining the schema in swagger.json ?

2016-09-20 Thread Ron Ratovsky
Maybe. What is a mongoose schema? From: on behalf of Abezar Baker Reply-To: "swagger-swaggersocket@googlegroups.com" Date: Wednesday, 31 August 2016 at 06:13 To: Swagger Subject: Can we use mongoose schema when defining the schema in swagger.json ? "paths": {   "/testing": {    

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: Swagger Subject: Infinite loops in Swagger UI Example values Hi, I'm getting infinite loops in my Swagger

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

2016-09-20 Thread Jacob Gadikian
I later got a clearer answer and indeed, it's not possible. Thanks for your help though :)! Jacob Gadikian E-mail: fad...@gmail.com SKYPE: faddat Phone/SMS: +84 167 789 6421 On Wed, Sep 21, 2016 at 6:29 AM, Ron Ratovsky wrote: > Without reading what steem specifically does, when it come

[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 undocument

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 support