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

fix: ensure prepareServer respects server variables when custom url is the same as the OAS url #855

Merged
merged 2 commits into from
Feb 13, 2024

Conversation

yoitsro
Copy link
Contributor

@yoitsro yoitsro commented Feb 12, 2024

🚥 Resolves #822

🧰 Changes

A truthy check was being performed on the serverIdx, which would effectively ignore the value when serverIdx was 0.

This fixes that to ensure that server variables are respected when the server URL passed in is the same as the server URL defined in the OAS.

🧬 QA & Testing

It now works for us, whereas it didn't before.

@yoitsro yoitsro changed the title Fix prepareServer to use server variables fix: ensure prepareServer respects server variables when custom url is the same as the OAS url Feb 12, 2024
…s the same as the OAS url

A truthy check was being performed on the `serverIdx`, which would effectively ignore the value when `serverIdx` was 0.

This fixes that to ensure that server variables are respected when the server URL passed in is the same as the server URL defined in the OAS.
@erunion erunion added the bug Something isn't working label Feb 12, 2024
Copy link
Member

@kanadgupta kanadgupta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks!

@erunion erunion merged commit 01d1a00 into readmeio:main Feb 13, 2024
5 checks passed
@yoitsro yoitsro deleted the patch-1 branch February 13, 2024 10:40
@kanadgupta kanadgupta added the area:core Issues related to `core`, which is the package that powers the SDKs at runtime label Feb 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:core Issues related to `core`, which is the package that powers the SDKs at runtime bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

SDK Prepare Server Selection Issue
3 participants