Add Beacon DefaultValue and use non-nullable types
See original GitHub issueFollowing changes in #132 many or all nullable bool?
may be changed to non-nullable bool
when something like DefaultAttribute
is used. E.g.
[Beacon("exf")]
[DefaultValue(true)]
public bool IsFatal { get; set; }
[Beacon("ni")]
[DefaultValue(false)]
public bool NonInteractionHit { get; set; }
So, then the value == DefaultValue
, then the property is not sent in the HTTP request.
Note: it may be applied to the TransactionRevenue
, TransactionShipping
, TransactionTax
, too.
Issue Analytics
- State:
- Created 6 years ago
- Comments:8 (6 by maintainers)
Top Results From Across the Web
c# - Non-nullable reference types' default values VS ...
The default value of an (non-nullable) integer has always been 0 but to me it doesn't make sense a non-nullable string's default value...
Read more >C# 8.0 nullable references: non-nullable is the new default
C# 8.0 has an ambitious new feature, called nullable references. In this post, Ian explains why this makes a fundamental change to the ......
Read more >Working with nullable reference types - EF Core
C# 8 introduced a new feature called nullable reference types (NRT), allowing reference types to be annotated, indicating whether it is ...
Read more >In a function, non-nullable optional parameters with default ...
I am trying to migrate a (large) flutter app to null sound safety and I encountered an issue on some functions where the...
Read more >Dart Null Safety: The Ultimate Guide to Non-Nullable Types
A complete tour of Null Safety & non-nullable types, the syntax changes they introduce in Dart 2.12, and how to use them in...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Ok will close for now, but can always be reopened if we need it later.
I am ok with not changing. It’s a minor benefit for me.
I just disagree with: