Updates and bug fixes
Merged
AL
24d ago+996+996+012345678901234567890123456789-102-102-012345678901234567890123456789
Summary by cubic
Fixes several correctness bugs in the omophub R client and bumps the package to 1.10.0.
Bug Fixes
- Batch concept and recommendation requests keep JSON arrays for single IDs, filters, and named input vectors; vocabulary filters are validated before sending.
get_by_code()percent-encodes vocabulary and code path segments, so codes containing slashes or percent signs work with all query options.- HTTP failures now raise the documented
omophub_*condition classes (omophub_validation_error,omophub_auth_error,omophub_forbidden_error,omophub_not_found,omophub_rate_limit_error,omophub_server_error,omophub_connection_error), carryingstatus_code,error_code,details,request_id, andretry_after; the httr2 classes ande$respare preserved for existing handlers. Unparseable or empty error bodies fall back to the HTTP status without masking the failure.
Changed
- Autocomplete now calls
/search/autocompleteand returns compactsuggestion,type, andcountfields; basic search enforces the API's 3–500 character query range. - CI workflows no longer share an API key for live tests, avoiding exhausted rate limits; the live suite runs once in
integration-tests.yaml.