Fix keys not defined in schema from showing up in response and after fetch

- After fetching (inside `parse`), we need to call `validateAttributes` to enforce the schema
- Inside `validateAttributes`, we need to discard keys which are undefined in the schema to prevent `key = null` from ending up in the output