Skip to content

How can I make all fields in the generated interfaces nullable without adding the @Nullable annotation? #1071

@zhoujin7

Description

@zhoujin7

Java Class:

@Getter
@Setter
public class User {
   private Integer id;
   private String name;
   private Integer age;
}

Excepted generated output:

export interface User {
    id?: number;
    name?: string;
    age?: number;
}

How should I configure to add a questionMark to all fields?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions