You should change this:

/x:
  /y:

to this:

/x/y:

Note the path segment (/a, /x/y, etc) must be a single unique string.

> On Jun 14, 2017, at 11:25 AM, 'Toe Dipper' via Swagger 
> <swagger-swaggersocket@googlegroups.com> wrote:
> 
> I'm evaluating swagger and I'm having trouble defining a simple route in my 
> app.  It's something like "/x/y" where there requesting "/x" by itself is not 
> considered a valid route.   I've been trying the online swagger editor, but I 
> can't figure out how to resolve the error:
> 
> Schema error at paths./x
> 
> additionalProperty "/y" exists in when not allowed
>  
> # ...
> paths:
>   /a:
>     get:
>       summary: Does something
>       description: This works
>       produces:
>         - application/json
>       responses:
>         200:
>           description: OK
>         401:
>           description: Bad Request
>   /x:
>     /y:
>       get: 
>         summary: Swagger is not happy about this route
> 
> 
> Can someone point out to me how to define this route?  I've tried many 
> variations but nothing seems to work. Thanks!
> 
> Please NOTE: This electronic message, including any attachments, may include 
> privileged, confidential and/or inside information owned by Leaf Group. Any 
> distribution or use of this communication by anyone other than the intended 
> recipient(s) is strictly prohibited and may be unlawful. If you are not the 
> intended recipient, please notify the sender by replying to this message and 
> then delete it from your system. Thank you.
> 
> -- 
> 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