Skip to content

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 requested a review from kanadgupta February 12, 2024 22:18
@erunion erunion added the bug Something isn't working label Feb 12, 2024
Copy link
Contributor

@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!

@kanadgupta kanadgupta requested a review from erunion February 12, 2024 23:08
@erunion erunion merged commit 01d1a00 into readmeio:main Feb 13, 2024
@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