feat: Support Nested Content Types (cs97dah - renewed) #227
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hey!
Firstly, thank you taking the time to make and maintain this library!
I've just (within the last month or so) started using it and after a quick search noticed it was missing this feature, and wanted to contribue back to the community with it.
I hope I've created this the way you're expecting for suggested changes. Of course, looking for feedback, I expect that I have probably missed something.
The changes made are an extension of the changes made by @cs97dah:
#89
I've just re-moulded them to match the new structure of the code (which seems to have changed since this PR was first created). I've also included some other use-case examples in the tests based on the features documented by fastify themselves: https://fastify.dev/docs/latest/Reference/Validation-and-Serialization/#serialization.
This change allows for the following schema definition example:
It should (if accepted) resolve the following issues: