Skip to content

Commit

Permalink
extracted DBConfig from connector, added respective options
Browse files Browse the repository at this point in the history
  • Loading branch information
adranwit committed Jun 18, 2024
1 parent e394942 commit 0c550e3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions view/state/type.go
Original file line number Diff line number Diff line change
Expand Up @@ -199,11 +199,10 @@ func BuildParameter(field *reflect.StructField, fs *embed.FS, lookupType xreflec
result.Scope = pTag.Scope
result.When = pTag.When
result.With = pTag.With
required := field.Type.Kind() == reflect.Ptr || pTag.Required
required := pTag.Required && result.In.Kind != KindTransient
if required {
result.Required = &required
}

switch result.In.Kind {
case KindObject:
fieldType := field.Type
Expand Down

0 comments on commit 0c550e3

Please sign in to comment.