Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use relative specification file path not working as expected #30

Closed
Krimsar opened this issue Nov 13, 2020 · 1 comment
Closed

Use relative specification file path not working as expected #30

Krimsar opened this issue Nov 13, 2020 · 1 comment
Labels
bug Something isn't working

Comments

@Krimsar
Copy link

Krimsar commented Nov 13, 2020

Describe the bug

I select "use relative specification file path" and only leave the file name of my specification.yaml in the "will combine with:" edit field. When I click finish and inspect the generated files, the "Endpoint" setting in the "ConnectedService.json" contains the full path to the specification. When you then run the wizard again through "Update Unchase OpenAPI (Swagger) Connected Service...", the "will combine with:" edit field now contains the full path as well.

Assemblies affected

Unchase OpenAPI (Swagger) Connected Service 1.5.8

Expected result

I would expect the full path to be constructed at run-time using the project directory and the path to the specification file, relative to it, so that the project can be used independently from it's location (and shared between devs).

Actual result

The full path to the specification.yaml file is saved inside "ConnectedService.json" and as soon as you rename the solution folder, or move the solution folder to a different location, the next time you start the wizard, it fails.

@Krimsar Krimsar added the bug Something isn't working label Nov 13, 2020
@Krimsar
Copy link
Author

Krimsar commented Nov 16, 2020

Thanks a lot! I can confirm it's working as expected now :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant