chore: add more tests (#3324)

This commit is contained in:
Kevin Wan
2023-06-07 00:46:43 +08:00
committed by GitHub
parent d61a55f779
commit 6b4d0d89c0
4 changed files with 201 additions and 64 deletions

View File

@@ -372,8 +372,6 @@ func parseOption(fieldOpts *fieldOptions, fieldName, option string) error {
default:
return fmt.Errorf("field %q has wrong optional", fieldName)
}
case option == optionalOption:
fieldOpts.Optional = true
case strings.HasPrefix(option, optionsOption):
val, err := parseProperty(fieldName, optionsOption, option)
if err != nil {