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 
<https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md>

> On Sep 20, 2016, at 8:54 AM, Tom Akehurst <t...@wiremock.org> wrote:
> 
> 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 <t...@wiremock.org <javascript:>> 
>> 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-complete. My best idea is to validate incoming requests (and 
>> outgoing responses) using this json schema validator 
>> <https://github.com/daveclayton/json-schema-validator>, adding a custom pass 
>> to check for the discriminator, readOnly, and other properties that get 
>> added if you use them. That's what I'm planning to do for my project anyway, 
>> I haven't actually tried it, so take this with a grain of salt.
>> 
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Swagger" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to swagger-swaggersocket+unsubscr...@googlegroups.com <javascript:>.
>> For more options, visit https://groups.google.com/d/optout 
>> <https://groups.google.com/d/optout>.
> 
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Swagger" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to swagger-swaggersocket+unsubscr...@googlegroups.com 
> <mailto:swagger-swaggersocket+unsubscr...@googlegroups.com>.
> For more options, visit https://groups.google.com/d/optout 
> <https://groups.google.com/d/optout>.

-- 
You received this message because you are subscribed to the Google Groups 
"Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to swagger-swaggersocket+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to