CloudEvent equality is incorrect on none attributes
还没有人认领这个 Issue。
评估
调研方向
从 CloudEvent 的相等性实现入手,使用 Python SDK 重现 issue 中的比较。为属性设置为 None 与属性缺失的情况添加测试覆盖,并确认比较结果符合 CloudEvents 规范,且结果为预期的 True。
由索引模型根据 Issue 内容生成。
描述
CloudEvent equality is incorrect on none attributes
from cloudevents.http import CloudEvent
CloudEvent(attributes={"type": "a", "source": "a", "a": None}) == CloudEvent({"type": "a", "source":"a"})
expected True
actual False
the spec says that null value attributes are the same as non-existing attributes
- 主要语言
- Python
- 星标
- 342
- 派生
- 65
- PR 合并指标
- 30 天内没有已合并 PR
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
cloudevents/sdk-python 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 78/100
cloudevents/sdk-python#304 ·
-
bug
难度 2/5 1-3 小时 新手友好度 68/100
cloudevents/sdk-python#300 ·
-
enhancement
难度 2/5 1-3 小时 新手友好度 68/100
cloudevents/sdk-python#291 · 8 条评论 ·
-
难度 1/5 1 小时以内 新手友好度 48/100
cloudevents/sdk-python#247 · 2 条评论 ·
-
question
难度 3/5 1-2 天 新手友好度 45/100
cloudevents/sdk-python#246 · 5 条评论 ·
查看 cloudevents/sdk-python 的全部 Issue
相似的 Issue
-
agent-ready documentation needs-triage
难度 1/5 1-3 小时 新手友好度 88/100
-
documentation
难度 1/5 1 小时以内 新手友好度 91/100
-
workflow-status page template still says reusable workflows are "triggered only by workflow_call:" 未关闭
难度 1/5 1 小时以内 新手友好度 92/100
-
instance instance add
难度 1/5 1 小时以内 新手友好度 72/100
searxng/searx-instances#939 · 1 条评论 ·
-
area-deployment area-integrations triage:bot-seen
难度 2/5 半天 新手友好度 86/100