Skip to content

test(api): pin the import's one-object-per-line refusal - #2317

Merged
Nash0x7E2 merged 3 commits into
mainfrom
test/ai-3484-import-line-wording
Nov 24, 2026
Merged

Nash0x7E2 merged 3 commits into
mainfrom
test/ai-3484-import-line-wording

Conversation

@thesyncim

Copy link
Copy Markdown
Member

Changes

  • None to the router: two tests pin the 400 an import answers when a line is not one JSON object.

Tests

  • TestAnImportWithAnObjectOverSeveralLinesIsToldToWriteOnePerLine: an export written with each line indented over several lines is answered 400, and the failure says "one JSON object per line". It fails when the failure is the parser's text alone ("this is not an export: "+err.Error()).
  • TestAnImportWithTwoObjectsOnALineIsToldToWriteOnePerLine: an export written with no newline between its lines is answered 400 with the same words. It fails under the same wording change.

Follow-up to #2253 (Kanat's R1.1)

Part of AI-3484

An import with an object spread over several lines, or two objects on one
line, is refused with a 400 that says an import is one JSON object per line.
@thesyncim
thesyncim requested a review from kanat November 23, 2026 23:43
@thesyncim thesyncim added the data-layer-review: ready Data layer review fix: passed automated review, merges cleanly, ready for a human review label Nov 24, 2026
@Nash0x7E2
Nash0x7E2 merged commit b231cc5 into main Nov 24, 2026
8 of 12 checks passed
@Nash0x7E2
Nash0x7E2 deleted the test/ai-3484-import-line-wording branch November 24, 2026 11:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

data-layer-review: ready Data layer review fix: passed automated review, merges cleanly, ready for a human review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants