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 88import cz .habarta .typescript .generator .TypeScriptGenerator ;
99import jakarta .json .bind .annotation .JsonbCreator ;
1010import jakarta .json .bind .annotation .JsonbProperty ;
11+ import jakarta .json .bind .annotation .JsonbTransient ;
1112import java .lang .annotation .Retention ;
1213import java .lang .annotation .RetentionPolicy ;
1314import java .util .Collection ;
@@ -277,6 +278,17 @@ public void optionality() {
277278 }
278279 }
279280
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+
280292 private String generate (final Settings settings , Class <?> cls ) {
281293 return new TypeScriptGenerator (settings ).generateTypeScript (Input .from (cls ));
282294 }
You can’t perform that action at this time.
0 commit comments