Start 5.0.0 release branch
This commit is contained in:
2
pom.xml
2
pom.xml
@@ -11,7 +11,7 @@
|
|||||||
<parent>
|
<parent>
|
||||||
<groupId>ca.uhn.hapi.fhir</groupId>
|
<groupId>ca.uhn.hapi.fhir</groupId>
|
||||||
<artifactId>hapi-fhir</artifactId>
|
<artifactId>hapi-fhir</artifactId>
|
||||||
<version>4.2.0</version>
|
<version>5.0.0-SNAPSHOT</version>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<artifactId>hapi-fhir-jpaserver-starter</artifactId>
|
<artifactId>hapi-fhir-jpaserver-starter</artifactId>
|
||||||
|
|||||||
@@ -285,27 +285,7 @@ public class JpaRestfulServer extends RestfulServer {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Validation
|
// Validation
|
||||||
IValidatorModule validatorModule;
|
IValidatorModule validatorModule = appCtx.getBean(IValidatorModule.class);
|
||||||
switch (fhirVersion) {
|
|
||||||
case DSTU2:
|
|
||||||
validatorModule = appCtx.getBean("myInstanceValidatorDstu2", IValidatorModule.class);
|
|
||||||
break;
|
|
||||||
case DSTU3:
|
|
||||||
validatorModule = appCtx.getBean("myInstanceValidatorDstu3", IValidatorModule.class);
|
|
||||||
break;
|
|
||||||
case R4:
|
|
||||||
validatorModule = appCtx.getBean("myInstanceValidatorR4", IValidatorModule.class);
|
|
||||||
break;
|
|
||||||
case R5:
|
|
||||||
validatorModule = appCtx.getBean("myInstanceValidatorR5", IValidatorModule.class);
|
|
||||||
break;
|
|
||||||
// These versions are not supported by HAPI FHIR JPA
|
|
||||||
case DSTU2_HL7ORG:
|
|
||||||
case DSTU2_1:
|
|
||||||
default:
|
|
||||||
validatorModule = null;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
if (validatorModule != null) {
|
if (validatorModule != null) {
|
||||||
if (HapiProperties.getValidateRequestsEnabled()) {
|
if (HapiProperties.getValidateRequestsEnabled()) {
|
||||||
RequestValidatingInterceptor interceptor = new RequestValidatingInterceptor();
|
RequestValidatingInterceptor interceptor = new RequestValidatingInterceptor();
|
||||||
|
|||||||
Reference in New Issue
Block a user