Skip to content

v0.2.1: writer-tool input validation

Choose a tag to compare

@cyanheads cyanheads released this 28 Jun 13:46
· 7 commits to main since this release
v0.2.1
81dbc27

writer-tool input validation

Three input-validation fixes across the writer tools, plus a design-doc correction.

Fixed:

  • docgen_export_spreadsheet validates worksheet names against Excel's constraints before render — typed invalid_sheet_name instead of a raw ExcelJS throw or silent over-31-character truncation (#4)
  • docgen_fill_form accepts line-wrapped base64 PDFs (ASCII whitespace stripped before decode); malformed base64 still rejected (#5)
  • docgen_render_pdf rejects data supplied without a template via the declared invalid_source reason, no longer dropping it silently (#6)
  • docs/design.md reframes downloadUrl as a reserved field not emitted in v1 (#7)

152 tests pass; bun run devcheck clean.