microsoft / microsoft/typespec
Warn/error when using body for head and get
Open
bug
lib:http
triaged:core
- Dominant language
- Java
- Stars
- 5.9k
- Forks
- 394
- Avg merge
- 1d 23h
- Merged PRs (30d)
- 104
Description
Need to decide if we should warn or error on this.
Currently we drop the data at least in the openapi3 emitter, if the data is dropped in http then this is arguably a bug fix to error out on a broken feature.
[Playground Link](https://typespec.io/playground/?c=aW1wb3J0ICJAdHlwZXNwZWMvaHR0cCI7Cgp1c2luZyBIdHRwOwoKQGdldCBvcCBmb28oCiAgQGJvZHkgxAU6IHsKICAgIG5hbWU6IHN0cmluZzsKICB9LAopOiB2b2lkOwo%3D&e=%40typespec%2Fopenapi3&options=%7B%22linterRuleSet%22%3A%7B%22extends%22%3A%5B%22%40typespec%2Fhttp%2Fall%22%5D%7D%7D)
Contributor guide
Assessment
This issue has not been assessed yet.