We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0da15e4 commit 29c4bccCopy full SHA for 29c4bcc
1 file changed
README.md
@@ -162,6 +162,18 @@ TestDto:
162
- myPrivateField: String: null
163
- myPublicField: int: 0
164
165
+### Omit all fields for type
166
+```java
167
+var result = fixture.build(TestDto.class)
168
+ .without(String.class)
169
+ .without(int.class)
170
+ .create();
171
+```
172
+#### Sample Result
173
+TestDto:
174
+- myPrivateField: String: null
175
+- myPublicField: int: 0
176
+
177
#### Note
178
Primitives will receive their default-value, classes will be `null`.
179
0 commit comments