Skip to content

feat: Support basePath in options-per-service for openapi generator#5311

Merged
KavithaSiva merged 4 commits intomainfrom
cp/base-path-openapi-generator
Dec 27, 2024
Merged

feat: Support basePath in options-per-service for openapi generator#5311
KavithaSiva merged 4 commits intomainfrom
cp/base-path-openapi-generator

Conversation

@KavithaSiva
Copy link
Collaborator

@KavithaSiva KavithaSiva commented Dec 23, 2024

Cherry picked commit for PR - #5247

  • I know which base branch I chose for this PR, as the default branch is v3-main now, which is not for v4 development.
    - [ ] If my change will be merged into the main branch (for v4), I've updated (V4-Upgrade-Guide.md)[./V4-Upgrade-Guide.md] in case my change has any implications for users updating to SDK v4

… - Option 2 (#5247)

* chore: append basePath to path pattern in openapi generator

* chore: switch to using removeSlashes from util

* chore: add additional test

* chore: check-public-api change

* Changes from lint:fix

* chore: update test

* chore: adjust all tests

* chore: fix codeQL warning

* Changes from lint:fix

* chore: add changeset

* chore: cleanup tests

* feat: extend openapi request builder for basePath

* chore: introduce setBasePath

* feat: introduce _defaultBasePath to the generated files

* chore: fix order of parameters with intro of basepath

* chore: fix tests

* chore: add setBasePath

* chore: fix failing e2e test

* Changes from lint:fix

* chore: cleanup path

* Changes from lint:fix

* chore: adjust test

* Changes from lint:fix

* chore: switch to using undefined for default basePath value

* chore: cleanup test

* chore: update changeset

* chore: adjust changeset

* chore: fix unit test

* chore:cleanup

* chore: fix test

* chore: cleanup changesets

* fix: integration test

* chore: fix path

* chore:fix path

* chore: remove dead code

* chore: review comment

* Update .changeset/chilled-flowers-hide.md

Co-authored-by: Deeksha Sinha <88374536+deekshas8@users.noreply.github.com>

* Update packages/openapi/src/openapi-request-builder.ts

Co-authored-by: Deeksha Sinha <88374536+deekshas8@users.noreply.github.com>

* chore: address review comments

* chore: revert update to removeSlashes utility

* Changes from lint:fix

* chore: address review comments

* chore: tests fix

* chore: adjust tests

* chore: address review comments

* Changes from lint:fix

* fix: begin all paths using '/'

* chore: address review comments

* Update .changeset/chilled-flowers-hide.md

Co-authored-by: Deeksha Sinha <88374536+deekshas8@users.noreply.github.com>

* Update .changeset/chilled-flowers-freeze.md

Co-authored-by: Deeksha Sinha <88374536+deekshas8@users.noreply.github.com>

* Update packages/util/src/remove-slashes.spec.ts

Co-authored-by: Deeksha Sinha <88374536+deekshas8@users.noreply.github.com>

* Update packages/util/src/remove-slashes.spec.ts

Co-authored-by: Deeksha Sinha <88374536+deekshas8@users.noreply.github.com>

* chore: address review comments

* Changes from lint:fix

* chore: add review changes

* chore: address review comments

* chore:address review comments

* chore: address review comments

* chore: release note fix

---------

Co-authored-by: cloud-sdk-js <cloud-sdk-js@github.com>
Co-authored-by: Junjie Tang <33489572+jjtang1985@users.noreply.github.com>
Co-authored-by: Deeksha Sinha <88374536+deekshas8@users.noreply.github.com>
@KavithaSiva KavithaSiva changed the title feat: Support basePath in options-per-service for openapi generator… feat: Support basePath in options-per-service for openapi generator Dec 23, 2024
@KavithaSiva KavithaSiva merged commit 936a6eb into main Dec 27, 2024
16 checks passed
@KavithaSiva KavithaSiva deleted the cp/base-path-openapi-generator branch December 27, 2024 09:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments