Skip to content

v0.2.5

Latest

Choose a tag to compare

@ajeetsk ajeetsk released this 25 Nov 01:20

Selected fields that exist on no item are now reported (#13).

  • When select named a field that is not in the response, for example a guessed employee_count where the API calls it staff, every item got null for it and nothing said why. null reads as "unknown", so the model could report the values as missing.
  • Such fields are now listed in _meta.select_not_found. A short note in _meta.select_not_found_note tells the model the field was not found and lists fields that do exist to choose from.
  • Items keep the field as null, so every item has the same keys as before. A field present on some items, or present but null everywhere, is not reported.
  • Your code gets the list on ReducedResult.select_not_found. It also appears in summary() and as a count in log_fields(). The new helper paths_not_found(items, fields) runs the same check.
  • New Messages.select_not_found text, configurable like the others.

Tested with Claude Opus 5.5 on a source that stores the employee count as staff. It guessed employee_count, read the note and switched to staff on the next call, then listed all 30 companies correctly. Without the note it also recovered, but only after it noticed the blanks and fetched a page without a select.