Build better business applications, faster. No more juggling REST endpoints or deciphering GraphQL queries. Hilla seamlessly connects Spring Boot and React to accelerate application development.
public record TeamName(@JsonValue String value) {
@JsonCreator
public TeamName(String value) {
this.value = validate(value);
}
public static String validate(String value) {
// TODO implement validation
return value;
}
}
public record TeamReference(
@Nonnull TeamName name
) {
}
The following TypeScript is generated:
interface TeamReference {
name?: string;
}
Expected-behavior
The following TypeScript should be generated (name attribute should not be optional/nullable):
interface TeamReference {
name: string;
}
Reproduction
Create the classes described above in a project and generate the corresponding TypeScript types.
Describe the bug
Given the following Java classes:
The following TypeScript is generated:
Expected-behavior
The following TypeScript should be generated (
name
attribute should not be optional/nullable):Reproduction
Create the classes described above in a project and generate the corresponding TypeScript types.
System Info
MacOS 14.5, Chrome 125.0.6422.114, Vaadin 24.5.0.alpha1.