How Do You Handle Missing or Incorrect REST API JSON Response Data Keys in Your Applications?

14 Replies, 2107 Views

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.

Messages In This Thread



Users browsing this thread: 1 Guest(s)