anwesen/tests/hurl/query/merge_kind_guard_400.hurl
Andreas Brenner 03cc12e640 ANW-26 HTTP /query markdown-merge mode
Accept: text/markdown on /query concatenates matched note bodies into one
markdown document, each fragment preceded by an HTML-comment source marker.
Adds __anw-order (frontmatter-key ordering, asc/desc, missing-key-last) and
__anw-kind (homogeneity guard, 400 on a mixed merge). Both evaluate over the
full matched set before __anw-limit truncates. Merge mode uses its own
body-cloning projection; the JSON path is unchanged (no body clone).
2026-06-14 18:35:20 +03:00

8 lines
308 B
Text

# [ANW-26] __anw-kind=status rejects a mixed merge: alpha (draft) and anwesen
# (active) carry distinct status values, so the guard returns 400.
GET {{host}}/query?__anw-path=Projects&status__exists=true&__anw-kind=status
Accept: text/markdown
HTTP 400
[Asserts]
body contains "draft"
body contains "active"