dc-Ragnarok / Fenrir

PHP Discord Interface
MIT License
4 stars 2 forks source link

Implement new data mapper #65

Closed Exanlv closed 12 months ago

Exanlv commented 1 year ago

Implement new custom datamapper

Old mapper constantly caused issues since it couldn't fail silently over properties. If a single property is misaligned, the whole mapping will fail.

New mapper will continue on if a single property fails to map, and logs issues it had.

Some definitions will still be broken and require updating, but at least they won't be as breaking as the previous mapper.

None of the already existing json mappers / data normalizers seemed to be able to map properties without a hard fail, thus had to go custom.

Pre-merge checklist: