Skip to content

[Bug]: Unable to override HTTP method from operation template #3636

Closed

Description

Describe the bug

If I have an operation template that has a default http method (e.g. GET) but I want to override it in the actual instantiation, the typespec/http library will error. Since it is an error, I can't suppress it.

We should instead a) emit a warning and b) let the "outermost" application "win".

Reproduction

playground

Checklist

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions