Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inspectable schemas rewrite #78

Draft
wants to merge 25 commits into
base: master
Choose a base branch
from
Draft

Conversation

ismasan
Copy link
Owner

@ismasan ismasan commented May 17, 2019

Make schema definitions inspectable

So we can generate example documentation our of them.

So we can define a default adapter but also use different adapters at run-time as part of request content negotiation.
So a single serializer can wrap different objects in different presenters depending on the object’s type.

Useful when same serializer is used with disparate objects (ex. ActiveRecord, ElasticSearch, etc)
.new gets an already presented item
Presenter blocks form inheritance chain.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant