Skip to content

0.8.1 not allowing relative paths #208

@monitorjbl

Description

@monitorjbl

There doesn't appear to be a way to specify a relative basePath in 0.8.1. You can use the DemoPathProvider in the example project to set a custom basePath, but the ApiListingReferenceScanner class will try to make it into a URL. Because it uses the UriComponentsBuilder, it cannot handle relative paths.

Relative paths worked in 0.6.5 if you fixed a problem in the swagger.js file, and I don't see any reason in the code for it not to be possible in 0.8.1. They're important for those that use different port numbers and hosts when their app is deployed. Absolute paths are pretty useless in this context.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions