types_from_serializers
types_from_serializers copied to clipboard
feat: Support Active Model Serializer
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?