Yo! I’ve been using a library called AJV (Another JSON Validator) for validating rest api json response data keys. It’s super fast and lets you define schemas for your responses.
Also, if the API docs are unreliable, I’ll sometimes log the entire response to see what’s actually coming through. Helps me figure out if the key is missing or just named weirdly.
Also, if the API docs are unreliable, I’ll sometimes log the entire response to see what’s actually coming through. Helps me figure out if the key is missing or just named weirdly.
