jsonapi-fractal icon indicating copy to clipboard operation
jsonapi-fractal copied to clipboard

feat: add `typeKey`

Open Ayc0 opened this issue 1 year ago • 0 comments

Fix https://github.com/andersondanilo/jsonapi-fractal/issues/138. Variation of https://github.com/andersondanilo/jsonapi-fractal/pull/139 using typeKey instead of typeField

  • Add new option typeKey?: string for deserialization to include all JSON:API types during deserialization
  • During serialization, will check if typeKey matches the provided type (but keep typeKey optional)
  • Regenerate docs

Ayc0 avatar Aug 26 '24 10:08 Ayc0