-
Notifications
You must be signed in to change notification settings - Fork 107
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix enum key string bugs during ytypes.Validate and JSON unmarshallin…
…g. (#375) * Fix enum key string bugs during ytypes.Validate and JSON unmarshalling. - Changed json.Unmarshal to fmt.Sprint for consistent enum-key presentation during schema validation (ytypes.Validate). - Force an error during JSON marshalling if an unset or otherwise out-of-range enum value is encountered as an enum key of a list. The first bug was a latent issue exposed by the recent addition of a String() method for GoEnum.
- Loading branch information
Showing
6 changed files
with
314 additions
and
56 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
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
Oops, something went wrong.