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

feat(sdk): provide a way to request a custom URL and add apiName in request plugin context #1578

Merged
merged 2 commits into from
Apr 23, 2024

Conversation

kpanot
Copy link
Contributor

@kpanot kpanot commented Apr 1, 2024

Proposed change

feat(sdk): provide a way to request a custom URL
feat(sdk): add apiName in the request plugin context

The purpose of this PR is to offer a way to do manually a request in the context of the SDK and benefit of the plugins register.
To facilitate the identification of the request in the requestPlugin (as done in the replyPlugin), the context is provided to the request plugin.

@kpanot kpanot requested a review from a team as a code owner April 1, 2024 08:09
Copy link

nx-cloud bot commented Apr 1, 2024

☁️ Nx Cloud Report

CI is running/has finished running commands for commit b5c1252. As they complete they will appear below. Click to see the status, the terminal output, and the build insights.

📂 See all runs for this CI Pipeline Execution


✅ Successfully ran 1 target

Sent with 💌 from NxCloud.

@kpanot kpanot force-pushed the feature/sdk-generic-request branch 2 times, most recently from 2202aa8 to efb43b3 Compare April 1, 2024 14:02
fpaul-1A
fpaul-1A previously approved these changes Apr 3, 2024
@kpanot kpanot force-pushed the feature/sdk-generic-request branch from efb43b3 to 15e1a6c Compare April 3, 2024 16:12
fpaul-1A
fpaul-1A previously approved these changes Apr 3, 2024
@kpanot kpanot changed the title feat(sdk): provide a way to request a custom URL feat(sdk): provide a way to request a custom URL and add apiName in request plugin context Apr 4, 2024
@kpanot kpanot force-pushed the feature/sdk-generic-request branch 2 times, most recently from 37e3928 to a1fc7e4 Compare April 15, 2024 16:38
mrednic-1A
mrednic-1A previously approved these changes Apr 18, 2024
@kpanot kpanot force-pushed the feature/sdk-generic-request branch 2 times, most recently from 623d0f1 to 805c9bc Compare April 19, 2024 07:02
feat(sdk): add apiName in the request plugin context
@kpanot kpanot force-pushed the feature/sdk-generic-request branch from 805c9bc to 492ae01 Compare April 23, 2024 04:27
* @param specification Specification single object to parse
*/
// eslint-disable-next-line camelcase
export const generateOperationFinderFromSingleFile = (specification: OpenAPIV2.Document | OpenAPIV3.Document | OpenAPIV3_1.Document): PathObject[] => {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Created #1699 to handle complex path resolution

@kpanot kpanot added this pull request to the merge queue Apr 23, 2024
Merged via the queue into main with commit 1d23e04 Apr 23, 2024
22 checks passed
@kpanot kpanot deleted the feature/sdk-generic-request branch April 23, 2024 08:57
mrednic-1A added a commit that referenced this pull request Apr 24, 2024
## Proposed change

<!-- Please include a summary of the changes and the related issue.
Please also include relevant motivation and context. List any
dependencies that is required for this change. -->

## Related issues

- 🐛 Fixes #(issue)
- 🚀 Feature #(issue)

<!-- Please make sure to follow the contributing guidelines on
https://github.com/amadeus-digital/Otter/blob/main/CONTRIBUTING.md -->

cherry-pick from #1578
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants