File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
typescript-generator-core/src/test/java/cz/habarta/typescript/generator/parser Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change 8
8
import cz .habarta .typescript .generator .TypeScriptGenerator ;
9
9
import jakarta .json .bind .annotation .JsonbCreator ;
10
10
import jakarta .json .bind .annotation .JsonbProperty ;
11
+ import jakarta .json .bind .annotation .JsonbTransient ;
11
12
import java .lang .annotation .Retention ;
12
13
import java .lang .annotation .RetentionPolicy ;
13
14
import java .util .Collection ;
@@ -277,6 +278,17 @@ public void optionality() {
277
278
}
278
279
}
279
280
281
+ public static class TransientField {
282
+ @ JsonbTransient
283
+ public String foo ;
284
+ }
285
+
286
+ @ Test
287
+ public void testTransientField () {
288
+ final String output = generate (settings , TransientField .class );
289
+ Assertions .assertFalse (output .contains ("foo" ), output );
290
+ }
291
+
280
292
private String generate (final Settings settings , Class <?> cls ) {
281
293
return new TypeScriptGenerator (settings ).generateTypeScript (Input .from (cls ));
282
294
}
You can’t perform that action at this time.
0 commit comments