vt-elixir / ja_serializer

JSONAPI.org Serialization in Elixir.
Other
640 stars 148 forks source link

Add custom/calculated attributes documentation #259

Closed benoror closed 6 years ago

benoror commented 6 years ago

I had a hard time finding the info regarding virtual/calculated/custom attributes in the serializer's View. I finally found I was missing the params (schema, _conn) from the comments in the source code:

https://github.com/vt-elixir/ja_serializer/blob/master/lib/ja_serializer/dsl.ex#L27

beerlington commented 6 years ago

Hi @benoror sorry you weren't able to find the info you needed. I think the functionality is fairly well documented but am open to suggestions about how we can improve it https://hexdocs.pm/ja_serializer/JaSerializer.DSL.html#attributes/1

benoror commented 6 years ago

@beerlington sorry mate, I didn't saw that particular doc. I don't know if it would be worth having it somewhere in the README, nevertheless thanks for your response. Cheers! 🍻