diff --git a/hapi-fhir-docs/src/main/resources/ca/uhn/hapi/fhir/changelog/5_7_0/changes.yaml b/hapi-fhir-docs/src/main/resources/ca/uhn/hapi/fhir/changelog/5_7_0/changes.yaml
index 1203518c9d0..c4545051a89 100644
--- a/hapi-fhir-docs/src/main/resources/ca/uhn/hapi/fhir/changelog/5_7_0/changes.yaml
+++ b/hapi-fhir-docs/src/main/resources/ca/uhn/hapi/fhir/changelog/5_7_0/changes.yaml
@@ -4,6 +4,7 @@
title: "The version of a few dependencies have been bumped to the latest versions
(dependent HAPI modules listed in brackets):
+- Spring (JPA): 5.3.7 -> 5.3.13
- Thymeleaf (Testpage Overlay): 3.0.12.RELEASE -> 3.0.13.RELEASE (Addresses CVE-2021-43466)
"
diff --git a/hapi-fhir-jpaserver-base/pom.xml b/hapi-fhir-jpaserver-base/pom.xml
index c965058c337..30b763404f6 100644
--- a/hapi-fhir-jpaserver-base/pom.xml
+++ b/hapi-fhir-jpaserver-base/pom.xml
@@ -197,8 +197,8 @@
jackson-databind
- io.swagger
- swagger-annotations
+ org.springdoc
+ springdoc-openapi-ui
diff --git a/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/packages/NpmPackageMetadataJson.java b/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/packages/NpmPackageMetadataJson.java
index 7991da910ad..b15ed157757 100644
--- a/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/packages/NpmPackageMetadataJson.java
+++ b/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/packages/NpmPackageMetadataJson.java
@@ -27,15 +27,14 @@ import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
+import io.swagger.v3.oas.annotations.media.Schema;
import javax.annotation.Nonnull;
import java.util.Date;
import java.util.LinkedHashMap;
import java.util.Map;
-@ApiModel("Represents an NPM package metadata response")
+@Schema(description = "Represents an NPM package metadata response")
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonAutoDetect(creatorVisibility = JsonAutoDetect.Visibility.NONE, fieldVisibility = JsonAutoDetect.Visibility.NONE, getterVisibility = JsonAutoDetect.Visibility.NONE, isGetterVisibility = JsonAutoDetect.Visibility.NONE, setterVisibility = JsonAutoDetect.Visibility.NONE)
public class NpmPackageMetadataJson {
@@ -108,7 +107,7 @@ public class NpmPackageMetadataJson {
private String myDescription;
@JsonProperty("fhirVersion")
private String myFhirVersion;
- @ApiModelProperty(value = "The size of this package in bytes", example = "1000")
+ @Schema(description = "The size of this package in bytes", example = "1000")
@JsonProperty("_bytes")
private long myBytes;
diff --git a/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/packages/NpmPackageSearchResultJson.java b/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/packages/NpmPackageSearchResultJson.java
index 561416fafaf..7330ed180e2 100644
--- a/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/packages/NpmPackageSearchResultJson.java
+++ b/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/packages/NpmPackageSearchResultJson.java
@@ -23,13 +23,12 @@ package ca.uhn.fhir.jpa.packages;
import com.fasterxml.jackson.annotation.JsonAutoDetect;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
+import io.swagger.v3.oas.annotations.media.Schema;
import java.util.ArrayList;
import java.util.List;
-@ApiModel("Represents an NPM package search response")
+@Schema(description = "Represents an NPM package search response")
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonAutoDetect(creatorVisibility = JsonAutoDetect.Visibility.NONE, fieldVisibility = JsonAutoDetect.Visibility.NONE, getterVisibility = JsonAutoDetect.Visibility.NONE, isGetterVisibility = JsonAutoDetect.Visibility.NONE, setterVisibility = JsonAutoDetect.Visibility.NONE)
public class NpmPackageSearchResultJson {
@@ -95,7 +94,7 @@ public class NpmPackageSearchResultJson {
private String myDescription;
@JsonProperty("fhirVersion")
private List myFhirVersion;
- @ApiModelProperty(value = "The size of this package in bytes", example = "1000")
+ @Schema(description = "The size of this package in bytes", example = "1000")
@JsonProperty("_bytes")
private long myBytes;
diff --git a/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/packages/PackageDeleteOutcomeJson.java b/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/packages/PackageDeleteOutcomeJson.java
index 009449d2951..720e0d73ebf 100644
--- a/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/packages/PackageDeleteOutcomeJson.java
+++ b/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/packages/PackageDeleteOutcomeJson.java
@@ -23,12 +23,12 @@ package ca.uhn.fhir.jpa.packages;
import com.fasterxml.jackson.annotation.JsonAutoDetect;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
-import io.swagger.annotations.ApiModel;
+import io.swagger.v3.oas.annotations.media.Schema;
import java.util.ArrayList;
import java.util.List;
-@ApiModel("Represents an NPM package deletion response")
+@Schema(description = "Represents an NPM package deletion response")
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonAutoDetect(creatorVisibility = JsonAutoDetect.Visibility.NONE, fieldVisibility = JsonAutoDetect.Visibility.NONE, getterVisibility = JsonAutoDetect.Visibility.NONE, isGetterVisibility = JsonAutoDetect.Visibility.NONE, setterVisibility = JsonAutoDetect.Visibility.NONE)
public class PackageDeleteOutcomeJson {
diff --git a/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/packages/PackageInstallOutcomeJson.java b/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/packages/PackageInstallOutcomeJson.java
index dc9d7ac6841..8d31f799dc0 100644
--- a/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/packages/PackageInstallOutcomeJson.java
+++ b/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/packages/PackageInstallOutcomeJson.java
@@ -23,14 +23,14 @@ package ca.uhn.fhir.jpa.packages;
import com.fasterxml.jackson.annotation.JsonAutoDetect;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
-import io.swagger.annotations.ApiModel;
+import io.swagger.v3.oas.annotations.media.Schema;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
-@ApiModel("Represents an NPM package installation response")
+@Schema(description = "Represents an NPM package installation response")
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonAutoDetect(creatorVisibility = JsonAutoDetect.Visibility.NONE, fieldVisibility = JsonAutoDetect.Visibility.NONE, getterVisibility = JsonAutoDetect.Visibility.NONE, isGetterVisibility = JsonAutoDetect.Visibility.NONE, setterVisibility = JsonAutoDetect.Visibility.NONE)
public class PackageInstallOutcomeJson {
diff --git a/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/packages/PackageInstallationSpec.java b/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/packages/PackageInstallationSpec.java
index d24b1846dd0..9e633d7b533 100644
--- a/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/packages/PackageInstallationSpec.java
+++ b/hapi-fhir-jpaserver-base/src/main/java/ca/uhn/fhir/jpa/packages/PackageInstallationSpec.java
@@ -27,15 +27,14 @@ import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
-import io.swagger.annotations.ApiModel;
-import io.swagger.annotations.ApiModelProperty;
+import io.swagger.v3.oas.annotations.media.Schema;
import java.util.ArrayList;
import java.util.List;
import java.util.function.Supplier;
-@ApiModel(
- value = "PackageInstallationSpec",
+@Schema(
+ name = "PackageInstallationSpec",
description =
"Defines a set of instructions for package installation"
)
@@ -47,25 +46,25 @@ import java.util.function.Supplier;
@JsonAutoDetect(creatorVisibility = JsonAutoDetect.Visibility.NONE, fieldVisibility = JsonAutoDetect.Visibility.NONE, getterVisibility = JsonAutoDetect.Visibility.NONE, isGetterVisibility = JsonAutoDetect.Visibility.NONE, setterVisibility = JsonAutoDetect.Visibility.NONE)
public class PackageInstallationSpec {
- @ApiModelProperty("The direct package URL")
+ @Schema(description = "The direct package URL")
@JsonProperty("packageUrl")
private String myPackageUrl;
- @ApiModelProperty("The NPM package Name")
+ @Schema(description = "The NPM package Name")
@JsonProperty("name")
private String myName;
- @ApiModelProperty("The direct package version")
+ @Schema(description = "The direct package version")
@JsonProperty("version")
private String myVersion;
- @ApiModelProperty("Should resources from this package be extracted from the package and installed into the repository individually")
+ @Schema(description = "Should resources from this package be extracted from the package and installed into the repository individually")
@JsonProperty("installMode")
private InstallModeEnum myInstallMode;
- @ApiModelProperty("If resources are being installed individually, this is list provides the resource types to install. By default, all conformance resources will be installed.")
+ @Schema(description = "If resources are being installed individually, this is list provides the resource types to install. By default, all conformance resources will be installed.")
@JsonProperty("installResourceTypes")
private List myInstallResourceTypes;
- @ApiModelProperty("Should dependencies be automatically resolved, fetched and installed with the same settings")
+ @Schema(description = "Should dependencies be automatically resolved, fetched and installed with the same settings")
@JsonProperty("fetchDependencies")
private boolean myFetchDependencies;
- @ApiModelProperty("Any values provided here will be interpreted as a regex. Dependencies with an ID matching any regex will be skipped.")
+ @Schema(description = "Any values provided here will be interpreted as a regex. Dependencies with an ID matching any regex will be skipped.")
private List myDependencyExcludes;
@JsonIgnore
private byte[] myPackageContents;
diff --git a/pom.xml b/pom.xml
index de2fd40c6f8..bd0fcfbad76 100644
--- a/pom.xml
+++ b/pom.xml
@@ -833,7 +833,7 @@
1.2_5
1.7.30
2.11.1
- 5.3.7
+ 5.3.13
2.5.0
4.3.3
2.5.0
@@ -1169,11 +1169,6 @@
junit
4.13.2
-
- io.swagger
- swagger-annotations
- 1.6.2
-
io.swagger.core.v3
swagger-models
@@ -1189,6 +1184,11 @@
mysql-connector-java
8.0.24
+
+ org.springdoc
+ springdoc-openapi-ui
+ 1.5.13
+
net.sourceforge.htmlunit
htmlunit
@@ -1756,6 +1756,11 @@
spring-core
${spring_version}
+
+ org.springframework
+ spring-expression
+ ${spring_version}
+
org.springframework
spring-jdbc
@@ -1786,6 +1791,11 @@
spring-test
${spring_version}
+
+ org.springframework
+ spring-webmvc
+ ${spring_version}
+
org.springframework.boot
spring-boot-starter-test
@@ -1806,11 +1816,6 @@
spring-web
${spring_version}
-
- org.springframework
- spring-webmvc
- ${spring_version}
-
org.springframework
spring-websocket