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

Reduce JSON, YAML serializable test types #13042

Merged

Conversation

straight-shoota
Copy link
Member

Test for JSON::Serizalizable and YAML::Serializable both have a couple of test types that have a single property with different types. This refactor replaces them by a single generic helper class which reduces code.

`{YAML,JSON}NilableUnion2` and `{YAML,JSON}NilableUnion` are exactly equivalent.
@straight-shoota straight-shoota added this to the 1.8.0 milestone Feb 9, 2023
@straight-shoota straight-shoota merged commit 0dd849a into crystal-lang:master Feb 10, 2023
@straight-shoota straight-shoota deleted the refactor/serializable-spec branch February 10, 2023 22:54
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants