From 083e5a6a27eaf63c0a62108033a2b0db71e019eb Mon Sep 17 00:00:00 2001 From: Gaurav Ghildiyal Date: Sat, 31 Jul 2021 03:45:06 +0530 Subject: [PATCH 1/2] Replace getGenericType() with getAnnotated().getGenericType() to work with the newer jackson2 version --- .../spi/config/jsonwriter/JacksonResourceSchemaProvider.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/endpoints-framework/src/main/java/com/google/api/server/spi/config/jsonwriter/JacksonResourceSchemaProvider.java b/endpoints-framework/src/main/java/com/google/api/server/spi/config/jsonwriter/JacksonResourceSchemaProvider.java index 18bbdb7e..7546c7d3 100644 --- a/endpoints-framework/src/main/java/com/google/api/server/spi/config/jsonwriter/JacksonResourceSchemaProvider.java +++ b/endpoints-framework/src/main/java/com/google/api/server/spi/config/jsonwriter/JacksonResourceSchemaProvider.java @@ -128,7 +128,7 @@ private TypeToken getPropertyType(TypeToken beanType, Method readMethod, M } } else if (field != null) { return ApiAnnotationIntrospector.getSchemaType( - beanType.resolveType(field.getGenericType()), config); + beanType.resolveType(field.getAnnotated().getGenericType()), config); } return null; } From 373de37911cbc2a636e6c336cba8fbe448d4b1c4 Mon Sep 17 00:00:00 2001 From: Gaurav Ghildiyal Date: Sat, 31 Jul 2021 03:46:15 +0530 Subject: [PATCH 2/2] Bump version number to 2.0.17 --- gradle.properties | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gradle.properties b/gradle.properties index 6acdc23b..6830f414 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,4 +1,4 @@ -version=2.0.16 +version=2.0.17 sourceCompatibility=1.7 targetCompatibility=1.7