We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cc762bb commit c3f29a0Copy full SHA for c3f29a0
transformers/options.go
@@ -85,6 +85,12 @@ func WithPrimaryKeyComponents(fields ...string) StructTransformerOption {
85
}
86
87
88
+func WithSkipPrimaryKeyValidation(fields ...string) StructTransformerOption {
89
+ return func(t *structTransformer) {
90
+ t.skipPKValidationFields = fields
91
+ }
92
+}
93
+
94
// WithMaxJSONTypeSchemaDepth allows to specify the maximum depth of JSON type schema
95
func WithMaxJSONTypeSchemaDepth(maxDepth int) StructTransformerOption {
96
return func(t *structTransformer) {
0 commit comments