Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor Type to TypeTree #408

Merged
merged 4 commits into from
Dec 11, 2022
Merged

Refactor Type to TypeTree #408

merged 4 commits into from
Dec 11, 2022

Conversation

juhaku
Copy link
Owner

@juhaku juhaku commented Dec 10, 2022

Refactor custom Type parsing logic to TypeTree in parameters, headers, responses and request bodies. The original parsing logic in Type was fairly limited in capabilities and superfluous in itself.

Migrating to TypeTree which is is already used everywhere else comes with benefits like single source of parsing type trees and support for vast set of different kind of types that where not supported with the custom type parsing. TypeTree allows users to use almost any Rust types instead of those few predefined ones. The change is invisible to the users and also TypeTree fixes a bug in incorrect default content type for primitive type of arrays.

Fixes #335, Fixes #217, Fixes #194, Fixes #164

Refactor custom `Type` parsing logic to `TypeTree` in parameters,
headers, responses and request bodies. The original parsing logic in
`Type` was fairly limited in capabilities and superfluous in itself.

Migrating to `TypeTree` which is is already used everywhere else comes
with benefits like single source of parsing type trees and support for
vast set of different kind of types that where not supported with the
custom type parsing. `TypeTree` allows users to use almost any Rust
types instead of those few predefined ones. The change is invisible to
the users and also `TypeTree` fixes a bug in incorrect default content
type for primitive type of arrays.
@juhaku juhaku force-pushed the refactor-custom-type-type-tree branch from 5c31fb6 to 8bf1ed8 Compare December 11, 2022 13:57
@juhaku juhaku merged commit 79ab858 into master Dec 11, 2022
@juhaku juhaku deleted the refactor-custom-type-type-tree branch December 11, 2022 15:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Released
1 participant