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

Type model fields as non-nullable #56

Merged
merged 1 commit into from
Feb 17, 2025
Merged

Type model fields as non-nullable #56

merged 1 commit into from
Feb 17, 2025

Conversation

NuroDev
Copy link
Member

@NuroDev NuroDev commented Feb 17, 2025

Originally as part of #38 the types inferred from models were set up to make fields nullable if they are marked as required. However, since then this functionality seems to have regressed.

After some investigating the solution seems a little more complex since the boolean value from the field is not explicit. As such for the time being I have reverted that change & so now fields are no longer always null.

@NuroDev NuroDev self-assigned this Feb 17, 2025
@NuroDev NuroDev enabled auto-merge (squash) February 17, 2025 14:01
Copy link

Released an experimental package:

bun add @ronin/syntax@ben-ron-1099-experimental-142

This package will be removed after the pull request has been merged.

@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Files with missing lines Coverage Δ
src/schema/model.ts 100.00% <ø> (ø)

@NuroDev NuroDev merged commit 96c8e8d into main Feb 17, 2025
3 checks passed
@NuroDev NuroDev deleted the ben/ron-1099 branch February 17, 2025 14:02
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.

3 participants