Server validation of body schemas

2016-09-15 Thread Max Goldstein
I want my server (written in Java) to validate that the bodies of incoming POST and PUT requests matches the Schema Object for that operation's body parameter defined in my Swagger spec. I'd also like to validate that outgoing response bodies conform to the schema defined in the response object

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 uns

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