google-api-java-client-services icon indicating copy to clipboard operation
google-api-java-client-services copied to clipboard

google-api-services-cloudbuild api model has incorrect annotation

Open Jammy-Louie opened this issue 6 years ago • 1 comments

We are in the middle of upgrading our version of spring boot to 2.2.1 for Spinnaker.

which includes a Jackson upgrade com.fasterxml.jackson.core:* from 2.9.9.3 to 2.10.0

This has resulted in an exception being thrown.

number type formatted as a JSON number cannot use @JsonString annotation

which can be traced back to here:

https://github.com/googleapis/google-api-java-client-services/blob/master/clients/google-api-services-cloudbuild/v1/1.26.0/com/google/api/services/cloudbuild/v1/model/StorageSource.java#L45

Jammy-Louie avatar Nov 22 '19 18:11 Jammy-Louie

I will take a look into this and try to see what the issue might be here. The purpose of that annotation is

Use this annotation to specify that a declared numeric Java field should map to a JSON string.

codyoss avatar Dec 06 '19 19:12 codyoss