Hey, I’ve had this issue too, and it’s super annoying. I usually write custom validation functions to check for the rest api json response data keys. It’s a bit of work upfront, but it pays off in the long run.
If you’re using TypeScript, you can define interfaces for your responses. That way, you’ll get type errors if the keys don’t match. Not foolproof, but it helps catch a lot of issues early.
If you’re using TypeScript, you can define interfaces for your responses. That way, you’ll get type errors if the keys don’t match. Not foolproof, but it helps catch a lot of issues early.
