Commit dea74ee
Add 400 response for invalid sort.order on POST /contacts/search (#567)
* Add 400 response for invalid sort.order on POST /contacts/search
The contacts search endpoint now returns 400 with an invalid_sort_order
error when sort.order is not "ascending" or "descending".
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* Document contacts search sort schema and align 400 example
- Add a contact_search_request schema (sort.field + sort.order enum:
ascending/descending, default descending) and point POST /contacts/search
at it. Conversations and tickets searches keep the shared search_request.
- Add request_id to the 400 invalid_sort_order example for parity with the
rest of the spec.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* Clarify sort.order description on contact_search_request
Reword so valid values aren't implied to 400: "Values other than
`ascending` or `descending` return a 400 error" instead of "Any other
value". Keeps the contacts search schema in sync with developer-docs.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 3f4f07d commit dea74ee
1 file changed
Lines changed: 51 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8391 | 8391 | | |
8392 | 8392 | | |
8393 | 8393 | | |
| 8394 | + | |
| 8395 | + | |
| 8396 | + | |
| 8397 | + | |
| 8398 | + | |
| 8399 | + | |
| 8400 | + | |
| 8401 | + | |
| 8402 | + | |
| 8403 | + | |
| 8404 | + | |
| 8405 | + | |
| 8406 | + | |
| 8407 | + | |
8394 | 8408 | | |
8395 | 8409 | | |
8396 | 8410 | | |
8397 | 8411 | | |
8398 | | - | |
| 8412 | + | |
8399 | 8413 | | |
8400 | 8414 | | |
8401 | 8415 | | |
| |||
8406 | 8420 | | |
8407 | 8421 | | |
8408 | 8422 | | |
| 8423 | + | |
| 8424 | + | |
| 8425 | + | |
8409 | 8426 | | |
8410 | 8427 | | |
8411 | 8428 | | |
| |||
27497 | 27514 | | |
27498 | 27515 | | |
27499 | 27516 | | |
| 27517 | + | |
| 27518 | + | |
| 27519 | + | |
| 27520 | + | |
| 27521 | + | |
| 27522 | + | |
| 27523 | + | |
| 27524 | + | |
| 27525 | + | |
| 27526 | + | |
| 27527 | + | |
| 27528 | + | |
| 27529 | + | |
| 27530 | + | |
| 27531 | + | |
| 27532 | + | |
| 27533 | + | |
| 27534 | + | |
| 27535 | + | |
| 27536 | + | |
| 27537 | + | |
| 27538 | + | |
| 27539 | + | |
| 27540 | + | |
| 27541 | + | |
| 27542 | + | |
| 27543 | + | |
| 27544 | + | |
| 27545 | + | |
| 27546 | + | |
| 27547 | + | |
| 27548 | + | |
| 27549 | + | |
27500 | 27550 | | |
27501 | 27551 | | |
27502 | 27552 | | |
| |||
0 commit comments