can't setup `cloudevents.serializer.event_format` in quarkus
还没有人认领这个 Issue。
评估
调研方向
从 issue 中显示的 extractConfigKey 方法和 EVENT_FORMAT_CONFIG 常量开始,然后跟踪 reactive Kafka 如何映射配置键。确定 event_format 是否可以在不被错误转换的情况下进行配置,或者是否需要记录在文档中的 workaround;当该设置在 application.properties 中可靠工作时,即视为完成。
由索引模型根据 Issue 内容生成。
描述
Hello everyone, I want to express my appreciation for the fantastic work you're doing!
I've noticed that Quarkus reactive Kafka replaces all underscores (_) with periods (`.``). Here's a code snippet from quarkus code to illustrate this:
private static void extractConfigKey(Config config, JsonObject json, String originalKey, String prefixToStrip) {
// Transform keys that may come from environment variables.
// As Kafka properties use ".", transform "_" into "."
String key = originalKey;
if (key.contains("_") || allCaps(key)) {
key = originalKey.toLowerCase().replace("_", ".");
}
// ...
}
This transformation is causing an issue for me when trying to pass event_format in the application.properties file:
/**
* The configuration key for the {@link EventFormat} to use when serializing the event in structured mode.
*/
public final static String EVENT_FORMAT_CONFIG = "cloudevents.serializer.event_format";
Is there a way to also support event.format, or do you have any suggestions for a workaround? Your insights would be greatly appreciated!
- 主要语言
- Java
- 星标
- 446
- 派生
- 172
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
cloudevents/sdk-java 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 72/100
cloudevents/sdk-java#731 · 1 个 reaction ·
-
bug
难度 1/5 1-3 小时 新手友好度 88/100
cloudevents/sdk-java#697 · 3 条评论 ·
-
Spring CloudEventMessageConverter produce a null pointer exception if initial message header map is null可能已有人在做 @prashantdotnaagar 于 77 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 72/100
cloudevents/sdk-java#689 · 2 条评论 ·
-
难度 2/5 1-3 小时 新手友好度 65/100
cloudevents/sdk-java#660 · 2 条评论 ·
-
难度 4/5 3-5 天 新手友好度 38/100
cloudevents/sdk-java#748 ·
查看 cloudevents/sdk-java 的全部 Issue
相似的 Issue
-
bug good first issue help wanted priority medium size S
难度 2/5 1-3 小时 新手友好度 84/100
martin-francois/symphony-trello#776 · 1 条评论 ·
维护者通常 1 天内回复
-
Console.printHex未关闭good first issue kernel
难度 2/5 1-3 小时 新手友好度 88/100
JackFurton/who-would-build-a-kernel-in-java#33 · 2 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
objectionary/eo#9182 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 88/100
objectionary/hone-maven-plugin#1293 ·
维护者通常 1 天内回复
-
1.severity: security
难度 2/5 1-3 小时 新手友好度 62/100
NixOS/nixpkgs#569828 · 1 个 reaction ·
维护者通常 1 天内回复