Skip to content

batch: --format is html, markdown or text; 0.1.7 - #19

Merged
DibbayajyotiRoy merged 3 commits into
mainfrom
fix/batch-no-json
Nov 19, 2026
Merged

DibbayajyotiRoy merged 3 commits into
mainfrom
fix/batch-no-json

Conversation

@DibbayajyotiRoy

Copy link
Copy Markdown
Collaborator

The Spicrawl API now refuses response_format: "json" on /v1/batch; batch returns html, markdown or text, and the JSON envelope is a /v1/scrape feature.

  • spicrawl batch --format json is refused before anything is sent: "batch returns html, markdown or text; use spicrawl scrape --format json for the JSON envelope". Help text updated. scrape unchanged.
  • openapi copy and generated schemas (internal/schema/batch.json, batch-item.json): batch response_format enum is html, markdown, text (no json, no pdf, which batch also refuses). Golden hashes for schema batch refreshed.
  • Version 0.1.7 (npm/package.json, README, install.sh, CHANGELOG).

Tests: go vet ./... and go test ./... pass. A per-item response_format in an items file is not checked client-side; the API refuses it.

Spicrawl added 3 commits November 19, 2026 17:22
The batch API no longer accepts response_format json. batch submit refuses
--format json before sending and points at scrape; help, the batch schema and
the spec copy drop json. Scrape is unchanged.
@DibbayajyotiRoy DibbayajyotiRoy self-assigned this Nov 19, 2026
@DibbayajyotiRoy
DibbayajyotiRoy merged commit 566fb4a into main Nov 19, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant