mirror of https://github.com/halo-dev/halo
Upgrade to SpringDoc 2.2.1-SNAPSHOT (#4854)
#### What type of PR is this? /kind bug /area core /milestone 2.11.x #### What this PR does / why we need it: This PR upgrades to SpringDoc 2.2.1-SNAPSHOT to resolve the problem of Swagger API doc display errors. #### Does this PR introduce a user-facing change? ```release-note 升级 SpringDoc 至 2.2.1-SNAPSHOT 以解决部分 API 文档无法正常使用的问题 ```pull/4856/head
parent
65a7e970cd
commit
b04496e4f3
|
@ -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 {
|
||||
|
|
|
@ -24,6 +24,7 @@ repositories {
|
|||
mavenCentral()
|
||||
|
||||
maven { url 'https://repo.spring.io/milestone' }
|
||||
maven { url 'https://s01.oss.sonatype.org/content/repositories/snapshots' }
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -273,6 +273,7 @@ public class AttachmentEndpoint implements CustomEndpoint {
|
|||
}
|
||||
}
|
||||
|
||||
@Schema(types = "object")
|
||||
public interface IUploadRequest {
|
||||
|
||||
@Schema(requiredMode = REQUIRED, description = "Attachment file")
|
||||
|
|
|
@ -673,7 +673,7 @@ public class PluginEndpoint implements CustomEndpoint {
|
|||
.flatMap(listResult -> ServerResponse.ok().bodyValue(listResult));
|
||||
}
|
||||
|
||||
@Schema(name = "PluginInstallRequest")
|
||||
@Schema(name = "PluginInstallRequest", types = "object")
|
||||
public static class InstallRequest {
|
||||
|
||||
private final MultiValueMap<String, Part> multipartData;
|
||||
|
|
|
@ -244,6 +244,7 @@ public class UserEndpoint implements CustomEndpoint {
|
|||
.flatMap(user -> ServerResponse.ok().bodyValue(user));
|
||||
}
|
||||
|
||||
@Schema(types = "object")
|
||||
public interface IAvatarUploadRequest {
|
||||
@Schema(requiredMode = REQUIRED, description = "Avatar file")
|
||||
FilePart getFile();
|
||||
|
|
|
@ -466,7 +466,7 @@ public class ThemeEndpoint implements CustomEndpoint {
|
|||
.bodyValue(theme));
|
||||
}
|
||||
|
||||
@Schema(name = "ThemeInstallRequest")
|
||||
@Schema(name = "ThemeInstallRequest", types = "object")
|
||||
public static class InstallRequest {
|
||||
|
||||
@Schema(hidden = true)
|
||||
|
|
|
@ -140,6 +140,7 @@ public class MigrationEndpoint implements CustomEndpoint {
|
|||
.switchIfEmpty(backupFileContent);
|
||||
}
|
||||
|
||||
@Schema(types = "object")
|
||||
public static class RestoreRequest {
|
||||
private final MultiValueMap<String, Part> multipart;
|
||||
|
||||
|
|
|
@ -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"
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue