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