Hi,

I have modified the yaml available in https://gist.github.com/marians/
0c9ad72aa700a7afd2fb15dd3d3b10b3.


Please see the attached yaml for your reference. Hope this helps!!





On Mon, Nov 14, 2016 at 9:59 AM, Marian Steinbach <
[email protected]> wrote:

> Hi!
>
> I'd like to re-use a parameter definition from the top-level parameters.
> The parameter appears within the path of several routes and operations.
>
> Here is a raw example YAML spec:
> https://gist.github.com/marians/0c9ad72aa700a7afd2fb15dd3d3b10b3
>
> Since I cannot find an example in the OAI specs, I tried several methods
> of referencing the parameter #/parameters/userIdUrlParam from within the
> operation descriptions. All ways I can think of produce some sort of error.
>
> My best shot is this:
>
> paths:
>   /users/{user_id}/
>     get:
>       parameters:
>         - schema:
>             $ref: '#/parameters/userIdUrlParam'
>
> This renders okay in the editor's preview, but it generates this error
> message:
>
> Not a valid parameter definition
>
> Can anybody point me to the right way to reference the parameter? Or is
> there a bug in the editor/validator?
>
> Thanks
>
> Marian
>
> --
> 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 [email protected].
> For more options, visit 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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Attachment: example.yaml
Description: Binary data

Reply via email to