Files
vectorize-io__hindsight/hindsight-docs
Nicolò Boschi 88456981f6 fix(api): declare binary download bodies so generated clients return bytes (#4315)
* fix(api): declare binary download bodies so generated clients return bytes (#4292)

GET attachments/{id} and files/download/{key} returned a raw Response with no
response_class, so FastAPI added application/json next to the declared binary
media type. The generated clients picked JSON and decoded the body as text,
corrupting the bytes (UnicodeDecodeError on a PNG's 0x89 magic byte).

Set response_class=Response and a string/binary schema on both routes, and
regenerate the spec and clients (Python now returns bytearray, TS Blob).

Tests: an api-slim spec guard that no 200 response mixes application/json with
a binary media type, and a live-server Python client test that retains an inline
PNG and fetches it back byte-identical.

* chore(docs-skill): regenerate the skill's OpenAPI copy for the binary download schema
2026-09-11 11:26:52 +02:00
..
2026-09-10 09:54:44 +02:00
2025-11-25 19:28:26 +01:00
2025-11-25 19:28:26 +01:00
2025-11-25 19:28:26 +01:00
2026-08-07 18:16:35 +02:00

Website

This website is built using Docusaurus, a modern static website generator.

Installation

npm install

Local Development

npm start

This command starts a local development server and opens up a browser window. Most changes are reflected live without having to restart the server.

Build

npm run build

This command generates static content into the build directory and can be served using any static contents hosting service.

Deployment

Using SSH:

USE_SSH=true npm run deploy

Not using SSH:

GIT_USER=<Your GitHub username> npm run deploy

If you are using GitHub pages for hosting, this command is a convenient way to build the website and push to the gh-pages branch.