Skip to content

fix /compile endpoint - #7699

Merged
mccanne merged 1 commit into
mainfrom
post-compile
Nov 23, 2026
Merged

mccanne merged 1 commit into
mainfrom
post-compile

Conversation

@mccanne

@mccanne mccanne commented Nov 21, 2026

Copy link
Copy Markdown
Collaborator

Fix POST /compile, which failed with type "ast.Assignment" redefined. The AST is now returned without type names, so the endpoint’s output matches super compile.

Also, Respond now serializes the body before writing the status, so a serialization error returns an error status instead of HTTP 200. Fixes the Content-Type of these responses, which was previously text/plain because the status was written before the header was set.

Adds a success case to service/ztests/compile.yaml.

Fix POST /compile, which failed with type "ast.Assignment" redefined.
The AST is now returned without type names, so the endpoint’s output
matches super compile.

Also, Respond now serializes the body before writing the status, so a
serialization error returns an error status instead of HTTP 200.
Fixes the Content-Type of these responses, which was previously text/plain
because the status was written before the header was set.

Adds a success case to service/ztests/compile.yaml.
@mccanne
mccanne merged commit e0da748 into main Nov 23, 2026
2 checks passed
@mccanne
mccanne deleted the post-compile branch November 23, 2026 00:50
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.

2 participants