-
Notifications
You must be signed in to change notification settings - Fork 26
Open
Description
This issue was detected by running schemathesis on a Claude-generated API.
- Claude-generated API: https://github.com/WildMeOrg/wildbook-ia/blob/api/api_docs/openapi/api_claude.yaml
schemathesistest logs: https://github.com/WildMeOrg/wildbook-ia/blob/api/api_docs/schemathesis/logs/api_claude.txt- Claude-generated summary of issues: https://github.com/WildMeOrg/wildbook-ia/blob/api/api_docs/schemathesis/summaries/api_claude.md
SQL Syntax Errors (~5-10% of errors, ~11-22 failures):
- Empty lists passed to SQL IN clauses generate invalid SQL: "WHERE id IN ()"
- Example:
GET /api/annot/imageset/uuid/fails with "OperationalError: near ')': syntax error" when annotations have no associated imagesets - Root cause: SQL query building doesn't handle empty lists
Example:
- https://github.com/WildMeOrg/wildbook-ia/blob/api/api_docs/schemathesis/logs/api_claude.txt#L113:
GET /api/annot/imageset/uuid/- OperationalError: SQL syntax error "near ')'" when building IN clause with empty imageset IDs (annotations have no associated imagesets)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels