Hi
I am trying to extract a variable from URI /test/{id}/user
And in the next step i trying to validate the datatype of ID.The ID is supposed to be a integer.But it seems extract policy using URI gives only string.Can someone please confirm this.
@VMuralitharan6 Yes once you extract the variable its data type is String in apigee.
URIPath extraction will result in String.Whereas for JSON/XML payload extraction,you can define the type.
Is there a way to extract and specify the datatype?
One way that I can think of is to use parseInt() js function for that extracted variable.