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

fix: Fix non-nullable union types #136

Merged
merged 1 commit into from
Dec 17, 2024

Conversation

stuebingerb
Copy link
Owner

Resolves #135

@stuebingerb stuebingerb force-pushed the fix/fix-non-nullable-union-types branch 2 times, most recently from 69e0458 to 1aa6367 Compare December 16, 2024 15:24
@@ -112,6 +112,12 @@ class SchemaPrinterTest {
}
}
}
unionProperty("nullablePdf") {
returnType = linked
nullable = true
Copy link
Owner Author

@stuebingerb stuebingerb Dec 16, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would be good to read nullability (and also iterability) from the actual type but with the current implementation it is hard (if not impossible) to do so. As of now there doesn't seem to be a way to define a union property of lists for a non-sealed class.

@stuebingerb stuebingerb force-pushed the fix/fix-non-nullable-union-types branch 3 times, most recently from 8cc47da to 3aed18f Compare December 16, 2024 16:30
@stuebingerb stuebingerb force-pushed the fix/fix-non-nullable-union-types branch from 3aed18f to fe52c50 Compare December 17, 2024 12:21
@stuebingerb stuebingerb merged commit 9089567 into main Dec 17, 2024
4 checks passed
@stuebingerb stuebingerb deleted the fix/fix-non-nullable-union-types branch December 17, 2024 12:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Incorrect non-null handling for union types
1 participant