JSON error, but it works internally.

Answered

'I built an API that consumes the following JSON:

{
   'endereco_cliente_id': 21,
   'ofertas_quantidade': [
     {
       'oferta_id': 1,
       'quantidade': 1
     },
     {
       'oferta_id': 5,
       'quantidade': 1
     }
   ]
 } 

However, when I use it in Swagger, it returns a different result compared to Xano, and Postman is other result. With the same payload and everything identical, it throws an error. Have any of you encountered this issue? Please note that one of the input items is an object.

2 replies