I suggest that you describe your swagger objects as “type: object”.  It most 
likely doesn’t make sense to validate the swagger documents that you’re 
including in the document that is describing your inclusion format.  Wow, 
that’s an earful.

Hollar if that doesn’t make sense to you.

> On Mar 2, 2017, at 6:19 PM, Tom Howard <t...@windyroad.com.au> wrote:
> 
> Hi,
> 
> I'm creating a swagger repository and I want to create an API for that 
> repository. Since the repository will host swagger documents, it makes sense 
> to describe the repository's API in swagger.
> 
> I've found the JSON Schema for swagger 
> <https://github.com/OAI/OpenAPI-Specification/blob/master/schemas/v2.0/schema.json>,
>  but I can't use it in my `definitions`, because the schema uses `oneOf`, 
> which results in a Swagger Error complaining that  "A deterministic version 
> of a JSON Schema object."
> 
> Is there a version of a JSON Schema for swagger that works within a swagger 
> definition? Or do I need to describe the API for my swagger repository in 
> something other than swagger?
> 
> Thanks in advance for any help.
> 
> -- 
> 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