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

[@typespec/http-specs] - Remove handler for majority of the Scenarios #4725

Merged
merged 2 commits into from
Oct 14, 2024

Conversation

sarangan12
Copy link
Contributor

This PR handles the removal of handler property in majority of the Scenarios. All Scenarios are validated and tested. Please review and approve the PR. Thanks

@azure-sdk
Copy link
Collaborator

No changes needing a change description found.

@azure-sdk
Copy link
Collaborator

You can try these changes here

🛝 Playground 🌐 Website 📚 Next docs

Copy link
Member

@timotheeguerin timotheeguerin left a comment

Choose a reason for hiding this comment

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

Nice, what are the scenario left?

@sarangan12
Copy link
Contributor Author

Nice, what are the scenario left?

Scenarios such as format check in UUID, multipart and one scenario where number of query parameters is zero. (If I do not specify anything in the request, it is obviously zero. But, then previous handler is testing that condition only. So, I retained it)

@sarangan12 sarangan12 added this pull request to the merge queue Oct 14, 2024
Merged via the queue into microsoft:main with commit 3dfdd79 Oct 14, 2024
22 checks passed
@sarangan12 sarangan12 deleted the HandleRemovalI branch October 14, 2024 21:34
github-merge-queue bot pushed a commit that referenced this pull request Oct 15, 2024
As a continuation of #4725,
while working on removing the handler for the scenarios in the
`typespec-azure` repository, I found some scenarios need added fix in
the `spector` library.

This PR consists of 2 changes:

1. The header keys must be changed to lowercase before reading and
comparing.
2. If the headers and parameters are array values, then we need to
handle them seperately.

I have tested this change with all the scenarios in both the `typespec`
and `typespec-azure` repositories. Once this change is merged, I can
open the PR for the scenario changes in `typespec-azure` repository.

Please review and approve this PR. Thanks
github-merge-queue bot pushed a commit to Azure/typespec-azure that referenced this pull request Oct 16, 2024
…Scenarios (#1691)

This is the continuation of the PR
microsoft/typespec#4725. This PR handles the
removal of handler property in majority of the Scenarios (Except ones
related to LRO and that checks the absence of a parameter). All
Scenarios are validated and tested. Please review and approve the PR.
Thanks
swatkatz pushed a commit to swatkatz/typespec that referenced this pull request Nov 5, 2024
…microsoft#4725)

This PR handles the removal of `handler` property in majority of the
Scenarios. All Scenarios are validated and tested. Please review and
approve the PR. Thanks
swatkatz pushed a commit to swatkatz/typespec that referenced this pull request Nov 5, 2024
…ft#4751)

As a continuation of microsoft#4725,
while working on removing the handler for the scenarios in the
`typespec-azure` repository, I found some scenarios need added fix in
the `spector` library.

This PR consists of 2 changes:

1. The header keys must be changed to lowercase before reading and
comparing.
2. If the headers and parameters are array values, then we need to
handle them seperately.

I have tested this change with all the scenarios in both the `typespec`
and `typespec-azure` repositories. Once this change is merged, I can
open the PR for the scenario changes in `typespec-azure` repository.

Please review and approve this PR. Thanks
markcowl pushed a commit to markcowl/typespec-azure that referenced this pull request Dec 5, 2024
…Scenarios (Azure#1691)

This is the continuation of the PR
microsoft/typespec#4725. This PR handles the
removal of handler property in majority of the Scenarios (Except ones
related to LRO and that checks the absence of a parameter). All
Scenarios are validated and tested. Please review and approve the PR.
Thanks
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.

3 participants