I have a attribute address, in Json response I'll get array of address and when address is not available Iam getting "" empty string as response. I declared address as array type in raml file, so Iam getting error when I receive "" Empty String. So, How to accept both string and array of objects as input for a same attribute in raml file.
RAML file
addresses:
type:
properties:
streetNo:
type: string
Response:
type: object
properties:
address:
type: addresses[]
How to accept both string and array of objects as input for a same attribute in raml file.
I might get the output as "" empty string in Json response if no address available. At that time I am getting error.