types_from_serializers icon indicating copy to clipboard operation
types_from_serializers copied to clipboard

feat: Support Active Model Serializer

Open PedroAugustoRamalhoDuarte opened this issue 2 years ago • 0 comments

Description 📖

Support Active Model Serializer

Background 📜

This gem have a big potencial to be the like the rack for translating types from ruby serializer to TypeScript.

The Fix 🔨

This PR introduces a new method, a new method prepare_attributes (with the same api from OJ Serializers) for AMS to make possible to run with types_from_serializers.

TODOs

  • Improve test duplicated code
  • Make more tests
  • Make work without explicit object_as for AMS
  • Test with type API works
  • Check if we can remove oj_serializer from depedencies, and AMS as well from test dependencies.
  • Changelog?