Skip to content

Conversation

@smaillet
Copy link
Member

Added generation of Get[Required]Option to binder based on the nullability of the type.

  • Default is to use GetRequiredOption and only use GetOption when the type is explicitly annotated as nullable.
  • Note: The term 'required' as used in those APIs is in the retrieval of the property value and throws an exception if not specified as an argument.
    • Nullable types are by definition possibly null and therefore are not considered "Required"

…ability of the type.

* Default is to use `GetRequiredOption` and only use `GetOption` when the type is explicitly annotated as nullable.
* Note: The term 'required' as used in those APIs is in the retrieval of the property value and throws an exception if not specified as an argument.
    - Nullable types are by definition possibly null and therefore are not considered "Required"
@github-actions
Copy link

Test Results

  8 files  ±0    8 suites  ±0   1m 5s ⏱️ -38s
171 tests ±0  167 ✅ ±0  4 💤 ±0  0 ❌ ±0 
302 runs  ±0  293 ✅ ±0  9 💤 ±0  0 ❌ ±0 

Results for commit 1b1ed58. ± Comparison against base commit 4a464b9.

@smaillet smaillet merged commit 93b1813 into UbiquityDotNET:develop Jan 18, 2026
3 checks passed
@smaillet smaillet deleted the AdjustBinderForNullability branch January 18, 2026 17:16
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.

1 participant