Skip to content

[Feature Request] - Allow add required modifier ! to non-null base property in specification #980

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

Closed
bingo084 opened this issue Apr 1, 2025 · 1 comment
Labels
enhancement New feature or request

Comments

@bingo084
Copy link

bingo084 commented Apr 1, 2025

Reason

In the specification, all properties are nullable by default.

However, sometimes non-null properties are needed and can be explicitly marked as non-nullable using !.

If a property is already non-null, attempting to use ! will cause a compilation error:

Illegal required modifier '!' because the base property is already nonnull

Description

Allow add required modifier ! to non-null base property in specification.

Existing solutions

No response

@bingo084 bingo084 added the enhancement New feature or request label Apr 1, 2025
babyfish-ct added a commit that referenced this issue Apr 4, 2025
@babyfish-ct
Copy link
Owner

babyfish-ct commented Apr 5, 2025

Try 0.9.71

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants