AbsaOSS / AbsaOSS/spark-commons

Add support for serialization into`additionalInfo: AdditionalInfo` from `Map`, `case class`, other collections...

未關閉
#90 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
enhancement good first issue
主要語言
Scala
星號
7
分支
0
平均合併
19 小時 57 分鐘
30 天內合併 PR
1

描述

## 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,

貢獻指南

這個儲存庫沒有索引到貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。