microsoftgraph / microsoftgraph/msgraph-sdk-python
language_tag
未關閉
還沒有人認領這個 Issue。
area:backing-store
priority:p2
type:bug
- 主要語言
- Python
- 星號
- 630
- 分支
- 96
- 平均合併
- 15 小時 20 分鐘
- 30 天內合併 PR
- 3
描述
Describe the bug
I'm trying to create a BookingBusiness with a language_tag "nl-BE" or "fr-FR". But none of these values actually persist when doing the post call.
It defaults to en-US
Expected behavior
I want to set the language for the reservation page to "nl-BE".
How to reproduce
request_body = BookingBusiness(
display_name = f"xxxxx",
email = "x@x.com,
business_type = "xxxxx",
default_currency_iso = "EUR",
language_tag="nl-BE",
address=PhysicalAddress(
street="xxx",
city="xxxxx x",
state="xxxxx",
country_or_region="xxxx",
postal_code="xxxx"
),
booking_page_settings = BookingPageSettings(
business_time_zone="Europe/Berlin",
is_time_slot_time_zone_set_to_business_time_zone=True,
)
)
await graph_client.solutions.booking_businesses.post(request_body)
SDK Version
1.12.0
Latest version known to work for scenario above?
No response
Known Workarounds
No response
Debug output
Click to expand log
```</details>
### Configuration
OS: MAC OS 15
### Other information
_No response_
貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
研究方向
從 BookingBusiness 模型以及 graph_client.solutions.booking_businesses.post 使用的 POST 序列化路徑開始。使用設定為 "nl-BE" 的 language_tag 重現請求,並檢查序列化後的 payload 和回應。完成的標準是:傳送要求的語言標籤,並保留該語言標籤,而不是預設變為 "en-US"。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- python
- 領域
- api
- Issue 類型
- 缺陷
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 活躍度
- 停滯
- 描述清晰度
- 基本清楚
- 新手友好度
- 45/100