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

Allow extensions to be declared for a serializer #20

Open
carlesjove opened this issue Dec 11, 2014 · 0 comments
Open

Allow extensions to be declared for a serializer #20

carlesjove opened this issue Dec 11, 2014 · 0 comments
Labels
Milestone

Comments

@carlesjove
Copy link
Owner

MySerializer < CollectionJsonSerializer::Serializer
  extensions :inline, :open_attrs

  []
end
  • If no extensions are declared, only objects in the spec should be allowed
  • For each extension declared, the objects/attributes it defines will be allowed
  • If :open_attrs is used, the "open atrributes" policy will be applied
@carlesjove carlesjove added this to the Version 0.2.0 milestone Dec 11, 2014
@carlesjove carlesjove modified the milestones: Version 0.4.0, Version 0.3.0 Jan 6, 2015
@carlesjove carlesjove changed the title Allow extensions to be declared for a serializer. This includes "open attributes" Allow extensions to be declared for a serializer Jan 12, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant