Skip to content
This repository was archived by the owner on Jul 6, 2026. It is now read-only.

Support HttpMethod OPTIONS#1231

Merged
alzimmermsft merged 5 commits into
Azure:mainfrom
alzimmermsft:SupportHttpMethodOptions
Nov 12, 2021
Merged

Support HttpMethod OPTIONS#1231
alzimmermsft merged 5 commits into
Azure:mainfrom
alzimmermsft:SupportHttpMethodOptions

Conversation

@alzimmermsft

Copy link
Copy Markdown
Member

Fixes #453

This PR adds support for HttpMethod.OPTIONS in code generation. Fixed by removing guard against the an HTTP method options as the generator has been updated to a version of azure-core which contains OPTIONS as a enum value in HttpMethod.

@weidongxu-microsoft weidongxu-microsoft left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I do not see com.azure.core.annotation.Options in core. The code probably will not compile at ProxyMethod level.

@alzimmermsft

Copy link
Copy Markdown
Member Author

I do not see com.azure.core.annotation.Options in core. The code probably will not compile at ProxyMethod level.

That is correct. When I first made the PR I thought the only missing part in azure-core was HttpMethod.OPTIONS but I've realized there is also an annotation Options missing as well. I'll work on getting the Options annotation into azure-core. Longer term, in azure-core I'm feeling that there should be a more generic annotation instead of needing one per HTTP method.

@weidongxu-microsoft weidongxu-microsoft left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I am updating core to 1.22.0 in PR #1247

@alzimmermsft
alzimmermsft merged commit 3363b85 into Azure:main Nov 12, 2021
@alzimmermsft
alzimmermsft deleted the SupportHttpMethodOptions branch November 12, 2021 18:35
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[HttpInfrastructure] - OPTIONS not yet supported

2 participants