Swagger: Schema Error on PUT

2016-09-22 Thread Jonathan Eustace
I keep getting a failed schema validation error on a successful response using swagger. However, I'm pretty sure my syntax is correct. Any ideas on what is going wrong here? My controller function putAReview(req, res){ fakeDB.addReview(req.body.reviewObject.id,

Re: Customizing Swagger-UI for a Custom Field "x-foo" in swagger.json

2016-09-22 Thread Ron Ratovsky
Yes, https://github.com/swagger-api/swagger-js. IIRC, you are right that we currently don’t expose all vendor extensions, but we with your help, we can probably get to a point where we expose what’s relevant to you. From: 'Carlos Angel M Rivera Pagan' via Swagger

Re: Customizing Swagger-UI for a Custom Field "x-foo" in swagger.json

2016-09-22 Thread 'Carlos Angel M Rivera Pagan' via Swagger
Hey Ron, I am new to all this. Do you mean an issue at the swagger-js GitHub project? Thank you, by the way, you guys reply super fast, I am impressed. On Thursday, September 22, 2016 at 2:04:15 PM UTC-4, Ron wrote: > > Hi Carlos, > > > > I’d suggest starting off by opening a ticket on

Re: Customizing Swagger-UI for a Custom Field "x-foo" in swagger.json

2016-09-22 Thread Ron Ratovsky
Hi Carlos, I’d suggest starting off by opening a ticket on swagger-js and we’ll take it from there. From: 'Carlos Angel M Rivera Pagan' via Swagger Reply-To: "swagger-swaggersocket@googlegroups.com"

Re: Array of objects as an input parameter

2016-09-22 Thread Ron Ratovsky
If you go to http://editor.swagger.io and open the full_petstore.yaml example, you can search for any ‘body’ parameter and that will show you what Tony was talking about. From: on behalf of Mathieu Pheulpin Reply-To:

Customizing Swagger-UI for a Custom Field "x-foo" in swagger.json

2016-09-22 Thread 'Carlos Angel M Rivera Pagan' via Swagger
Hello community, I will start with the example of I want to simulate. Go to: http://docs.sencha.com/extjs/4.2.5/#!/api Below the Tree View for the API documentation, there is a *"Show private classes"* checkbox. By default they only show the API of the classes you will use, but for your

Re: Array of objects as an input parameter

2016-09-22 Thread Mathieu Pheulpin
Could you please show an example of what you're describing? Thanks On Wednesday, September 21, 2016 at 7:42:54 PM UTC-7, tony tam wrote: > > You don't want formData, you want an object, with attribute "sources" > which is type "array". > > On Sep 21, 2016, at 6:50 PM, Mathieu Pheulpin