Forum Discussion

LennSar's avatar
LennSar
Contributor
3 years ago

Swagger Compliance Assertion relative path to OpenApi.yaml

Hi there,

 

I generated my project from an OpenApi.yaml file and really like the Swagger Compliance Assertion that checks the response against the OpenApi spec. However, I'd like to enter the path relative to the project's xml file and couldn't figure out how to do that. entering file:../../path/to/OpenApi.yaml didn't work.

Is there a way to enter relative paths here?

 

Thanks,

 

Lennart

2 Replies

  • nmrao's avatar
    nmrao
    Champion Level 3

    Not sure, may be you try using custom property for the path, so that property value can be configured by each engineer differently.

    • LennSar's avatar
      LennSar
      Contributor

      Hi nmrao,

      could you give me some more information on this? Where can I find or create those custom properties? Is there really no way for relative paths? Why in the world would you forbid having relative paths to the yaml file but allow it to i.e. .csv files as a data source?

       

      Thanks,

       

      Lennart