aglushkov / serega

MIT License
7 stars 0 forks source link

Remove :openapi plugin #122

Closed aglushkov closed 1 year ago

aglushkov commented 1 year ago

It was wrong place to add this plugin. Serializers should be good at one thing - serialization. Serializers classes just don't know all needed context to build good schema. You can use this gist as an example how to build OpenAPI schema for Serega serializer for ActiveRecord objects: https://gist.github.com/aglushkov/60e3ac1525a940cc6a144c92822556e5