Is there a Jackson equivalent to Spark SQL's StructField
where I can build expected schema from scratch? I already know the name of the field and the type of data.
Jackson JsonSchema module looks like the closest solution, but the examples of how to construct the JSON schema seem to be lacking, and a solution that doesn't involve creating a new POJO (perhaps JsonNode?) is preferred. The problem I have been having with using JsonNode
is that it requires a value, and the schema is not supposed to have any value.
0 comments:
Post a Comment