【发布时间】:2021-07-27 18:17:18
【问题描述】:
在执行 avro-maven-plugin:schema 目标期间,我不断收到此错误:
[ERROR] Failed to execute goal org.apache.avro:avro-maven-plugin:1.10.2:schema (default) on project test: Execution default of goal org.apache.avro:avro-maven-plugin:1
.10.2:schema failed: Invalid default for field someId: null not a ["int","null"] -> [Help 1]
这就是该字段在架构中的样子:
{
"name" : "someId",
"type" : [ "int", "null" ],
"default" : null
}
根据https://json-schema-validator.herokuapp.com/avro.jsp,架构是有效的。
有谁知道出了什么问题以及如何解决?
提前谢谢...
【问题讨论】: