Skip to content

Commit

Permalink
Fix the problem of not initializing default theme correctly (#3194)
Browse files Browse the repository at this point in the history
#### What type of PR is this?

/kind bug
/area core
/milestone 2.2.x

#### What this PR does / why we need it:

Make requires field of Theme not required.

#### Which issue(s) this PR fixes:

Fixes #3177

#### Special notes for your reviewer:

1. Clear Halo working directory
2. Start Halo freshly

#### Does this PR introduce a user-facing change?

```release-note
None
```
  • Loading branch information
JohnNiang authored Jan 31, 2023
1 parent c079762 commit 0c18fb3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/java/run/halo/app/core/extension/Theme.java
Original file line number Diff line number Diff line change
@@ -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;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 0c18fb3

Please # to comment.