diff --git a/api/build.gradle b/api/build.gradle index 33f5a47ed4..102a50883d 100644 --- a/api/build.gradle +++ b/api/build.gradle @@ -14,6 +14,7 @@ javadoc.options.encoding = "UTF-8" repositories { mavenCentral() maven { url 'https://repo.spring.io/milestone' } + maven { url 'https://s01.oss.sonatype.org/content/repositories/snapshots' } } dependencies { diff --git a/application/build.gradle b/application/build.gradle index 0d9abe3187..d26002f3e5 100644 --- a/application/build.gradle +++ b/application/build.gradle @@ -24,6 +24,7 @@ repositories { mavenCentral() maven { url 'https://repo.spring.io/milestone' } + maven { url 'https://s01.oss.sonatype.org/content/repositories/snapshots' } } diff --git a/application/src/main/java/run/halo/app/core/extension/attachment/endpoint/AttachmentEndpoint.java b/application/src/main/java/run/halo/app/core/extension/attachment/endpoint/AttachmentEndpoint.java index 4274507f0f..d8b41c0f60 100644 --- a/application/src/main/java/run/halo/app/core/extension/attachment/endpoint/AttachmentEndpoint.java +++ b/application/src/main/java/run/halo/app/core/extension/attachment/endpoint/AttachmentEndpoint.java @@ -273,6 +273,7 @@ public Comparator toComparator() { } } + @Schema(types = "object") public interface IUploadRequest { @Schema(requiredMode = REQUIRED, description = "Attachment file") diff --git a/application/src/main/java/run/halo/app/core/extension/endpoint/PluginEndpoint.java b/application/src/main/java/run/halo/app/core/extension/endpoint/PluginEndpoint.java index d6d015c1ff..b85189765a 100644 --- a/application/src/main/java/run/halo/app/core/extension/endpoint/PluginEndpoint.java +++ b/application/src/main/java/run/halo/app/core/extension/endpoint/PluginEndpoint.java @@ -673,7 +673,7 @@ Mono list(ServerRequest request) { .flatMap(listResult -> ServerResponse.ok().bodyValue(listResult)); } - @Schema(name = "PluginInstallRequest") + @Schema(name = "PluginInstallRequest", types = "object") public static class InstallRequest { private final MultiValueMap multipartData; diff --git a/application/src/main/java/run/halo/app/core/extension/endpoint/UserEndpoint.java b/application/src/main/java/run/halo/app/core/extension/endpoint/UserEndpoint.java index 20faeb57c0..47441a1d4d 100644 --- a/application/src/main/java/run/halo/app/core/extension/endpoint/UserEndpoint.java +++ b/application/src/main/java/run/halo/app/core/extension/endpoint/UserEndpoint.java @@ -244,6 +244,7 @@ private Mono uploadUserAvatar(ServerRequest request) { .flatMap(user -> ServerResponse.ok().bodyValue(user)); } + @Schema(types = "object") public interface IAvatarUploadRequest { @Schema(requiredMode = REQUIRED, description = "Avatar file") FilePart getFile(); diff --git a/application/src/main/java/run/halo/app/core/extension/theme/ThemeEndpoint.java b/application/src/main/java/run/halo/app/core/extension/theme/ThemeEndpoint.java index 233abad3e1..2d96a3066c 100644 --- a/application/src/main/java/run/halo/app/core/extension/theme/ThemeEndpoint.java +++ b/application/src/main/java/run/halo/app/core/extension/theme/ThemeEndpoint.java @@ -466,7 +466,7 @@ Mono resetSettingConfig(ServerRequest request) { .bodyValue(theme)); } - @Schema(name = "ThemeInstallRequest") + @Schema(name = "ThemeInstallRequest", types = "object") public static class InstallRequest { @Schema(hidden = true) diff --git a/application/src/main/java/run/halo/app/migration/MigrationEndpoint.java b/application/src/main/java/run/halo/app/migration/MigrationEndpoint.java index 1bd43831aa..33017defac 100644 --- a/application/src/main/java/run/halo/app/migration/MigrationEndpoint.java +++ b/application/src/main/java/run/halo/app/migration/MigrationEndpoint.java @@ -140,6 +140,7 @@ private Flux getContent(RestoreRequest request) { .switchIfEmpty(backupFileContent); } + @Schema(types = "object") public static class RestoreRequest { private final MultiValueMap multipart; diff --git a/platform/application/build.gradle b/platform/application/build.gradle index 7275d8febb..a3bf4f8f2d 100644 --- a/platform/application/build.gradle +++ b/platform/application/build.gradle @@ -18,7 +18,7 @@ ext { guava = "32.0.1-jre" jsoup = '1.15.3' jsonPatch = "1.13" - springDocOpenAPI = "2.2.0" + springDocOpenAPI = "2.2.1-SNAPSHOT" lucene = "9.7.0" resilience4jVersion = "2.0.2" }