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

Pass custom options to serializer? #52

Open
simonihmig opened this issue Feb 23, 2021 · 0 comments
Open

Pass custom options to serializer? #52

simonihmig opened this issue Feb 23, 2021 · 0 comments

Comments

@simonihmig
Copy link

Would you consider more freedom to customize the serializer, i.e. what gets passed as serializerOptions here. Maybe just another object you can pass that gets spread into serializerOptions?

My use case: I would like to use the transform function (see https://github.com/SeyZ/jsonapi-serializer#available-serialization-option-opts-argument) to convert a comma-separated list of values in a frontmatter attribute into a proper array in the JSON-API payload.

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

No branches or pull requests

1 participant