frictionlessdata / tableschema-java

A Java library for working with Table Schema.
MIT License
25 stars 21 forks source link

Abstract deserialization #56

Closed jdbranham closed 4 years ago

jdbranham commented 4 years ago

If the deserialization is abstracted away, it may protect the code from future changes.

Also, by leveraging some advanced Jackson features, we can reduce the type checking, particularly having to use an Object when the value may be a String or array of String. If we deserialize as an array every time, when working with a primaryKey for example, no casting or type checking is required. The json can still be a string or an array of strings.

See this example -
https://github.com/frictionlessdata/tableschema-java/compare/master...savantly-net:simplify_and_leverage_more_jackson


Please preserve this line to notify @iSnow (lead of this repository)

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.