microsoft / microsoft/typespec
[python] Python SDK doesn't work as expected for HEAD as boolean
Open
emitter:client:python
- Dominant language
- Java
- Stars
- 5.9k
- Forks
- 394
- Avg merge
- 1d 23h
- Merged PRs (30d)
- 104
Description
transferred from https://github.com/Azure/autorest.python/issues/2944
If emitters are doing head as boolean, it should be:
- 2xx is true
- 404 is false
- everything else is an error that needs to be thrown (as usual)
Current Python SDK doesn't work as ecpected:
https://github.com/Azure/autorest.python/blob/8a5b2b4d2fc128da7b4b5a91f8e178d788d88d8b/packages/typespec-python/test/azure/generated/headasbooleantrue/headasbooleantrue/_operations/_operations.py#L362-L368
Contributor guide
Assessment
This issue has not been assessed yet.