Repository navigation
Selected fields that exist on no item are now reported (#13).
- When
selectnamed a field that is not in the response, for example a guessedemployee_countwhere the API calls itstaff, every item gotnullfor it and nothing said why.nullreads 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_notetells 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 butnulleverywhere, is not reported. - Your code gets the list on
ReducedResult.select_not_found. It also appears insummary()and as a count inlog_fields(). The new helperpaths_not_found(items, fields)runs the same check. - New
Messages.select_not_foundtext, 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.