info:
  name: Search Invalid Library ID
  type: http
  seq: 3

http:
  method: GET
  url: "{{base_url}}/api/media-items/search"
  params:
    - name: q
      value: "test"
      type: query
      disabled: false
    - name: library_id
      value: "invalid-uuid"
      type: query
      disabled: false
  auth: inherit

settings:
  encodeUrl: true
  timeout: 0
  followRedirects: true
  maxRedirects: 5

docs: |-
  ## Search Invalid Library ID

  Tests error handling when an invalid library_id is provided.

  **Method:** GET

  **Endpoint:** /api/media-items/search

  **Authentication:** Required (Bearer token)

  **Query Parameters:**
  - `q` (string, required): Search query
  - `library_id` (string, invalid): Malformed UUID

  **Response:** HTTP 400 (Bad Request)
  ```json
  {
    "error": "invalid library_id"
  }
  ```

  **Success Criteria:**
  - Status: 400
  - Returns error message indicating invalid library_id

  **Edge Cases Tested:**
  - Malformed UUID (not valid UUID format)
  - Validates input sanitization
