-
Notifications
You must be signed in to change notification settings - Fork 423
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The documented JSON output for /api/v0/dag/import
is incorrect
#1980
Comments
This comment has been minimized.
This comment has been minimized.
@smoyer64 thank you for filling this. As @2color noted, these docs are generated by code mentioned in #1981 (comment) Your analysis from #1981 (comment) is spot-on, yes, it is intentional. I think the only missing piece of the puzzle is streaming and why we have it and that CLI uses it by default. Some context below:
The docs for Next stepsWith that context in mind, there are probably various ways of fixing this in /tools/http-api-docs generator.
Ideas / PRs against /tools/http-api-docs welcome. |
The current documentation describes
/api/v0/dag/import
as returning a JSON body with the following structure:What is actually returned is a JSONL body with the following structure:
Note that the
Stats
"record" is only returned if thestats=true
argument is provided.The text was updated successfully, but these errors were encountered: