|
2 | 2 |
|
3 | 3 | import io.micronaut.serde.annotation.Serdeable; |
4 | 4 | import io.swagger.v3.oas.annotations.media.Schema; |
| 5 | +import jakarta.annotation.Nullable; |
| 6 | +import jakarta.validation.constraints.NotBlank; |
5 | 7 | import jakarta.validation.constraints.NotNull; |
| 8 | +import jakarta.validation.constraints.PositiveOrZero; |
6 | 9 | import net.onelitefeather.vulpes.api.model.FontEntity; |
7 | 10 |
|
8 | 11 | import java.util.List; |
|
12 | 15 | @Serdeable |
13 | 16 | public record FontModelDTO( |
14 | 17 | @Schema(description = "ID of the mode", requiredMode = Schema.RequiredMode.NOT_REQUIRED) UUID id, |
15 | | - @Schema(description = "Model Name for the ui", requiredMode = Schema.RequiredMode.REQUIRED) String uiName, |
16 | | - @Schema(description = "Name in the UI", requiredMode = Schema.RequiredMode.REQUIRED) String variableName, |
17 | | - @Schema(description = "Which provider should be used", requiredMode = Schema.RequiredMode.REQUIRED) String provider, |
18 | | - @Schema(description = "Internal mapper variable", requiredMode = Schema.RequiredMode.REQUIRED) String mapper, |
19 | | - @Schema(description = "The path to the texture", requiredMode = Schema.RequiredMode.REQUIRED) String texturePath, |
20 | | - @Schema(description = "The comment", requiredMode = Schema.RequiredMode.REQUIRED) String comment, |
21 | | - @Schema(description = "The ascent property", requiredMode = Schema.RequiredMode.REQUIRED) int ascent, |
22 | | - @Schema(description = "The height property", requiredMode = Schema.RequiredMode.REQUIRED) int height, |
| 18 | + @Schema(description = "Model Name for the ui", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank @NotNull String uiName, |
| 19 | + @Schema(description = "Name in the UI", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank @NotNull String variableName, |
| 20 | + @Schema(description = "Which provider should be used", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank @NotNull String provider, |
| 21 | + @Schema(description = "Internal mapper variable", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank @NotNull String mapper, |
| 22 | + @Schema(description = "The path to the texture", requiredMode = Schema.RequiredMode.REQUIRED) @NotBlank @NotNull String texturePath, |
| 23 | + @Schema(description = "The comment", requiredMode = Schema.RequiredMode.REQUIRED) @Nullable String comment, |
| 24 | + @Schema(description = "The ascent property", requiredMode = Schema.RequiredMode.REQUIRED) @PositiveOrZero int ascent, |
| 25 | + @Schema(description = "The height property", requiredMode = Schema.RequiredMode.REQUIRED) @PositiveOrZero int height, |
23 | 26 | @Schema(description = "The chars which are overwritten", requiredMode = Schema.RequiredMode.NOT_REQUIRED) List<String> chars |
24 | 27 | ) { |
25 | 28 |
|
|
0 commit comments