Skip to content

Commit

Permalink
Merge pull request #167 from Tarmil/skippable-structural-comparison
Browse files Browse the repository at this point in the history
feat: Add structural comparison to Skippable<_>
  • Loading branch information
Tarmil authored Jul 29, 2023
2 parents c63b207 + d37ec05 commit d6205a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/FSharp.SystemTextJson/Skippable.fs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ namespace System.Text.Json.Serialization

/// Represents a value that can be represented as an absent field in JSON.
/// In particular, Skippable<'T option> allows distinguishing between absent field and null field.
[<Struct>]
[<Struct; StructuralComparison; StructuralEquality>]
type Skippable<'T> =
| Skip
| Include of 'T
Expand Down

0 comments on commit d6205a8

Please sign in to comment.