I am trying to validate a field in payload which could hold either integer or string using the below code but it's not validated in 9.0.0.
I found on the below sites it can be done in draft#02
But,when I am keeping the type as mentioned above in my code then it is accepting both the values at the same it doesn't throw error when I am passing other datatypes such as object ,array, boolean etc in the field.Can anyone help me for the same.Is it doable in draft 2 or not.However,in higher versions I found it is doable.
I am not sure if this works in GW 9.00 in 9,3 we at least support Json draft v4.
There is also a user story out there to enhance this in a future version , did you check if this works in 9.3.
Feel free to raise a support case so we can have a closer look at this .
Did the answers on this thread answered your question? If it did please mark it as the right answer. When your question is not answered or you still have additional questions please let us know.
With Kind RegardsDirk