AbsaOSS / AbsaOSS/spark-commons
Add support for serialization into`additionalInfo: AdditionalInfo` from `Map`, `case class`, other collections...
Open
enhancement
good first issue
- Dominant language
- Scala
- Stars
- 7
- Forks
- 0
- Avg merge
- 19h 57m
- Merged PRs (30d)
- 1
Description
## Background
Right now the `AdditionalInfo` type in error handling is just a synonym for `String`, while the intention is it to be a JSON.
Right now though any garbage can be put into the field.
## Feature
Turn the type into a value class with a private constructor and an apply method that will serialize provided objects into json.
Of course keep a constructor to allow an empty `AdditionalInfo`.
Also create an implicit conversion from the value class to `String` for easy push into Spark,
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.