Forum Discussion

brunoS's avatar
brunoS
New Contributor
2 months ago

using path parameters defined in components/parameters

My OAS3 files stored in swaggerHub worked well until a week ago.
I now have one error for each of these parameters:
e.g. (in yaml)

```
 /contracts/{idContract}/events:
...

      parameters:
        - $ref: '#/components/parameters/IdContractPath'
```

Having :
```
  parameters:
    IdContractPath:
      name: idContrat
      required: true
      in: path
      schema:
        type: string

```

5 Replies

  • I'm having the same issue. Seems to be that's failing with the references. If you dereference the file the errors disappear, but the file gets much larger.

  • Why even bother using SwaggerHub if it doesn't respect $refs for parameters? Might as well use literally any other solution.

  • pwilder's avatar
    pwilder
    New Contributor

    Update, maybe this is fixed now?

     

    Edit: Maybe just instability? I took these screen grabs minutes apart: 

     

     

  • Hi pwilder , this looks like something our support department needs to investigate. If you haven't already done so, please log a ticket at https://support.smartbear.com/swaggerhub/message/