diff --git a/src/main/java/run/halo/app/core/extension/Theme.java b/src/main/java/run/halo/app/core/extension/Theme.java index b755ec1f4d..37f51f8f95 100644 --- a/src/main/java/run/halo/app/core/extension/Theme.java +++ b/src/main/java/run/halo/app/core/extension/Theme.java @@ -1,5 +1,7 @@ package run.halo.app.core.extension; +import static io.swagger.v3.oas.annotations.media.Schema.RequiredMode.NOT_REQUIRED; + import io.swagger.v3.oas.annotations.media.Schema; import java.util.List; import lombok.Data; @@ -60,6 +62,7 @@ public static class ThemeSpec { @Schema(description = "Deprecated, use `requires` instead.") private String require; + @Schema(requiredMode = NOT_REQUIRED) private String requires; private String settingName;