Skip to content

Commit

Permalink
Upgrade to SpringDoc 2.2.1-SNAPSHOT (halo-dev#4854)
Browse files Browse the repository at this point in the history
#### 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 文档无法正常使用的问题
```
  • Loading branch information
JohnNiang authored Nov 15, 2023
1 parent 65a7e97 commit b04496e
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 3 deletions.
1 change: 1 addition & 0 deletions api/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
1 change: 1 addition & 0 deletions application/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ repositories {
mavenCentral()

maven { url 'https://repo.spring.io/milestone' }
maven { url 'https://s01.oss.sonatype.org/content/repositories/snapshots' }
}


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,7 @@ public Comparator<Attachment> toComparator() {
}
}

@Schema(types = "object")
public interface IUploadRequest {

@Schema(requiredMode = REQUIRED, description = "Attachment file")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -673,7 +673,7 @@ Mono<ServerResponse> list(ServerRequest request) {
.flatMap(listResult -> ServerResponse.ok().bodyValue(listResult));
}

@Schema(name = "PluginInstallRequest")
@Schema(name = "PluginInstallRequest", types = "object")
public static class InstallRequest {

private final MultiValueMap<String, Part> multipartData;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,7 @@ private Mono<ServerResponse> uploadUserAvatar(ServerRequest request) {
.flatMap(user -> ServerResponse.ok().bodyValue(user));
}

@Schema(types = "object")
public interface IAvatarUploadRequest {
@Schema(requiredMode = REQUIRED, description = "Avatar file")
FilePart getFile();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@ Mono<ServerResponse> resetSettingConfig(ServerRequest request) {
.bodyValue(theme));
}

@Schema(name = "ThemeInstallRequest")
@Schema(name = "ThemeInstallRequest", types = "object")
public static class InstallRequest {

@Schema(hidden = true)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ private Flux<DataBuffer> getContent(RestoreRequest request) {
.switchIfEmpty(backupFileContent);
}

@Schema(types = "object")
public static class RestoreRequest {
private final MultiValueMap<String, Part> multipart;

Expand Down
2 changes: 1 addition & 1 deletion platform/application/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
Expand Down

0 comments on commit b04496e

Please sign in to comment.