microsoft / microsoft/typespec

[python] Python SDK doesn't work as expected for HEAD as boolean

Open
#5,784 0 comments 0 reactions 1 assignee Claimed by @msyyc View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.