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
John Niang 2023-11-15 11:04:09 +08:00 committed by GitHub
parent 65a7e970cd
commit b04496e4f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 8 additions and 3 deletions

View File

@ -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 {

View File

@ -24,6 +24,7 @@ repositories {
mavenCentral()
maven { url 'https://repo.spring.io/milestone' }
maven { url 'https://s01.oss.sonatype.org/content/repositories/snapshots' }
}

View File

@ -273,6 +273,7 @@ public class AttachmentEndpoint implements CustomEndpoint {
}
}
@Schema(types = "object")
public interface IUploadRequest {
@Schema(requiredMode = REQUIRED, description = "Attachment file")

View 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;

View File

@ -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();

View File

@ -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)

View File

@ -140,6 +140,7 @@ public class MigrationEndpoint implements CustomEndpoint {
.switchIfEmpty(backupFileContent);
}
@Schema(types = "object")
public static class RestoreRequest {
private final MultiValueMap<String, Part> multipart;

View File

@ -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"
}