refactor: simplify type handling in ModelDeserializer#5227
refactor: simplify type handling in ModelDeserializer#5227Mattias-Sehlstedt wants to merge 4 commits into
Conversation
Rymert-Mostert
left a comment
There was a problem hiding this comment.
My bad. Just looking for the "Dismiss my own review" button.
https://github.com/orgs/community/discussions/120006
af818f2 to
914d3e5
Compare
914d3e5 to
cd434f6
Compare
|
Thank you for contributing to Swagger Core again and for working to improve the code. Overall, the refactor looks good, but I found one place where the behavior changes. I’ve pushed tests that illustrate the difference. Please decide whether $ref should continue using asText() or require a textual node. If strict textual validation is intentional, please document it as a behavioral change |
170126a to
0c5a5aa
Compare
|
Good spotting. I cannot strongly prove that the changes will not affect someone else's workflow, so it is safest to ensure that the behavior is precisely as before. I have re-added the I have also restored how |
0c5a5aa to
819ce1a
Compare
Pull Request
Thank you for contributing to swagger-core!
Please fill out the following information to help us review your PR efficiently.
Description
Simplifies the logic in the
ModelDeserializerso that a typedSchemais clearly handled as its own separate scenario with its own processing. Also reduced the surface area againstJackson, so that an upgrade will have a much smaller delta (this change was mainly inspired by this larger-than-necessary delta).Type of Change
Checklist
Screenshots / Additional Context