Skip to content

Commit

Permalink
Limit split on genericKeywords
Browse files Browse the repository at this point in the history
  • Loading branch information
Hotdawg committed Oct 3, 2023
1 parent 080d97d commit 9d905a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion reflect.go
Original file line number Diff line number Diff line change
Expand Up @@ -681,7 +681,7 @@ func (t *Schema) structKeywordsFromTags(f reflect.StructField, parent *Schema, p
func (t *Schema) genericKeywords(tags []string, parent *Schema, propertyName string) []string { //nolint:gocyclo
unprocessed := make([]string, 0, len(tags))
for _, tag := range tags {
nameValue := strings.Split(tag, "=")
nameValue := strings.SplitN(tag, "=", 2)
if len(nameValue) == 2 {
name, val := nameValue[0], nameValue[1]
switch name {
Expand Down

0 comments on commit 9d905a2

Please sign in to comment.