Skip to content

Commit c3f29a0

Browse files
committed
Update options.go
1 parent cc762bb commit c3f29a0

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

transformers/options.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,12 @@ func WithPrimaryKeyComponents(fields ...string) StructTransformerOption {
8585
}
8686
}
8787

88+
func WithSkipPrimaryKeyValidation(fields ...string) StructTransformerOption {
89+
return func(t *structTransformer) {
90+
t.skipPKValidationFields = fields
91+
}
92+
}
93+
8894
// WithMaxJSONTypeSchemaDepth allows to specify the maximum depth of JSON type schema
8995
func WithMaxJSONTypeSchemaDepth(maxDepth int) StructTransformerOption {
9096
return func(t *structTransformer) {

0 commit comments

Comments
 (0)