-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Dbd/encode decode enums with no structs (#32)
* Add a test case for a bug we found on Mobile where Objects with an Enum but no Struct did not convert properly. * Add missing files from prev commit. * Add solution for new case that prev commit just addressed.
- Loading branch information
1 parent
b21c6f0
commit b93202d
Showing
8 changed files
with
82 additions
and
36 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
9 changes: 9 additions & 0 deletions
9
testfixtures/firemodel/TestFiremodelFromSchema/go/test.firemodel.go
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,9 @@ | ||
// DO NOT EDIT - Code generated by firemodel (dev). | ||
|
||
package firemodel | ||
|
||
// TODO: Add comment to Test in firemodel schema. | ||
type Test struct { | ||
// TODO: Add comment to Test.direction. | ||
Direction TestEnum `firestore:"direction"` | ||
} |
17 changes: 0 additions & 17 deletions
17
testfixtures/firemodel/TestFiremodelFromSchema/go/test_direction.firemodel.go
This file was deleted.
Oops, something went wrong.
17 changes: 17 additions & 0 deletions
17
testfixtures/firemodel/TestFiremodelFromSchema/go/test_enum.firemodel.go
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,17 @@ | ||
// DO NOT EDIT - Code generated by firemodel (dev). | ||
|
||
package firemodel | ||
|
||
// TODO: Add comment to TestEnum in firemodel schema. | ||
type TestEnum string | ||
|
||
const ( | ||
// TODO: Add comment to TestEnum_LEFT in firemodel schema. | ||
TestEnum_LEFT TestEnum = "LEFT" | ||
// TODO: Add comment to TestEnum_RIGHT in firemodel schema. | ||
TestEnum_RIGHT TestEnum = "RIGHT" | ||
// TODO: Add comment to TestEnum_UP in firemodel schema. | ||
TestEnum_UP TestEnum = "UP" | ||
// TODO: Add comment to TestEnum_DOWN in firemodel schema. | ||
TestEnum_DOWN TestEnum = "DOWN" | ||
) |
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
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