https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42592

--- Comment #2 from Tomás Cohen Arazi (tcohen) <[email protected]> ---
Created attachment 199113
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=199113&action=edit
Bug 42592: Annotate unsortable +count embeds with x-koha-unsortable-embeds

Adds x-koha-unsortable-embeds vendor extension to list operations that
advertise +count embeds which cannot be sorted. This lets API consumers
know upfront which +count columns do not support sorting, without
trial and error.

Annotated operations:
- GET /acquisitions/orders: biblio.uncancelled_orders+count,
  current_item_level_holds+count
- GET /biblios/{biblio_id}/items: bundle_items_lost+count,
  bundle_items_not_lost+count
- GET /patrons: overdues+count

The extension is rendered in the published API docs by adding it to
the showExtensions list in koha-api-docs config.yaml.

Note: as dependent bugs (42587-42591) are resolved, their embeds
should be removed from this list.

Test plan:
1. Apply patch
2. Verify the spec is valid:
   $ ktd --shell
   k$ cd /kohadevbox/koha
   k$ prove t/db_dependent/api/v1/swagger/openapi.t
=> SUCCESS: Spec validates
3. Sign off :-D

Assisted-by: Sonnet 4.6 (Anthropic)

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to