Skip to content
Discussion options

You must be logged in to vote

You're right—the documentation doesn't explicitly call out the limitation around nested arrays in paginated objects. It only states that transformers are generated for types defined through $ref and that union types aren't transformed. The fact that your paginated response uses $ref for the entity type would suggest it should work, but the transformer system currently generates a single transformer per operation response and only handles the most common scenarios. That means it doesn't recursively apply entity transformers to nested arrays inside objects like paginated responses, even if those arrays use $ref types. This is an implicit limitation of the current implementation, not an exp…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@davidenke
Comment options

@dosubot
Comment options

Answer selected by davidenke
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant