Somewhere between version 10.x and 13.x of twilio-java, the return type of com.twilio.rest.verify.v2.service.Verification#getSendCodeAttempts() changed from List<Map<String, Object>> to just List<Object>, but the change isn't noted anywhere in the upgrade guide. It appears that the "shape" of the returned list element is the same, and casting it to a Map<String, Object> is all that's needed.
There are several things that I think could be addressed here:
- The main focus of this ticket: it's probably worth calling out this change somewhere in the upgrade guide.
- Could
getSendCodeAttempts return a more specific object type?
- The Javadoc for
twilio-java from 11.x and up does not include any of the getter methods for Verification (and numerous other classes). It looks like the last version for which getter documentation was present is 10.9.2. I'm guessing that doc generation for 11+ is happening before some code generation step that would actually add the getters.
- On a related note, the published source jars for at least 13.0.0 (and I strongly suspect other versions) do not match the published bytecode.
- For 10.9.2 (and probably other versions), trying to actually view the docs leads to an "access denied" error.
I'm happy to open separate issues for all of these if that's helpful to you; I present them here as a single issue because they're all part of the same "trying to figure out what changed and when" story.
Thanks!
Somewhere between version 10.x and 13.x of
twilio-java, the return type ofcom.twilio.rest.verify.v2.service.Verification#getSendCodeAttempts()changed fromList<Map<String, Object>>to justList<Object>, but the change isn't noted anywhere in the upgrade guide. It appears that the "shape" of the returned list element is the same, and casting it to aMap<String, Object>is all that's needed.There are several things that I think could be addressed here:
getSendCodeAttemptsreturn a more specific object type?twilio-javafrom 11.x and up does not include any of the getter methods forVerification(and numerous other classes). It looks like the last version for which getter documentation was present is 10.9.2. I'm guessing that doc generation for 11+ is happening before some code generation step that would actually add the getters.I'm happy to open separate issues for all of these if that's helpful to you; I present them here as a single issue because they're all part of the same "trying to figure out what changed and when" story.
Thanks!