-
-
Notifications
You must be signed in to change notification settings - Fork 474
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add test for mergable objects within arrays
- Loading branch information
Showing
3 changed files
with
44 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
type AutoGenerated struct { | ||
Booleanfield bool `json:"booleanfield"` | ||
Inconsistentarray []Inconsistentarray `json:"inconsistentarray,omitempty"` | ||
Date string `json:"date,omitempty"` | ||
} | ||
type Features struct { | ||
Age int `json:"age,omitempty"` | ||
Height int `json:"height,omitempty"` | ||
Gender string `json:"gender,omitempty"` | ||
} | ||
type Inconsistentarray struct { | ||
ID int `json:"id,omitempty"` | ||
Name string `json:"name,omitempty"` | ||
Features Features `json:"features,omitempty"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{ | ||
"booleanfield": true, | ||
"inconsistentarray": [ | ||
{ | ||
"id": 1, | ||
"name": "John Doe", | ||
"features": { | ||
"age": 49, | ||
"height": 175 | ||
} | ||
}, | ||
{ | ||
"id": 2, | ||
"name": "Jane Doe", | ||
"features": { | ||
"height": 164 | ||
} | ||
}, | ||
{ | ||
"id": 3, | ||
"name": "John Doe", | ||
"features": { | ||
"gender": "unknown" | ||
} | ||
} | ||
], | ||
"date": "2024-07-22" | ||
} |