Property expansion for OpenAPI definition (REST) yaml file location
I have .yaml definitions for REST services that I use when importing API definitions. This works fine when I point to the yaml file on disk and import it. However, I'd rather not hard-code the path, because when other people use the project in their environment, their path will be different.
I've used property expansion in the past for WSDLs, but haven't done it for REST definitions. I'd like to do something like this:
${openApiBaseUri}/myDefinition.yaml
where openApiBaseUri is a global property that points to the directory where the OpenAPI definitions live.
When I try this, I get this error:
ERROR: unable to read location `${openApiBaseUri}/myDefinition.yaml`
Any ideas? We can't afford SwaggerHub, so I'm looking for a generic solution.
Thanks,