Re: Server validation of body schemas

2016-09-26 Thread James Navin
Great idea. I just opened a PR. Cheers. On Tue, Sep 27, 2016 at 2:28 AM, tony tam wrote: > Thanks for sharing this, James. Perhaps you can send a PR to the > swagger.io site so we can add it in the OSS tools section? > > On Sep 25, 2016, at 5:08 PM, James Navin

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

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-15 Thread Max Goldstein
I'll give that option a shot and report back. I'm already set up with the node swagger parser so inlining references is not a problem. -- You received this message because you are subscribed to the Google Groups "Swagger" group. To

Re: Server validation of body schemas

2016-09-15 Thread tony tam
Well swagger-inflector does validate payloads with the options here: https://github.com/swagger-api/swagger-inflector#payload-validation However, you can “borrow” the logic that validates payloads and do your own logic. The