Skip to content

Commit 03000ae

Browse files
committed
chore: ensure openapi.json ends with newline
1 parent 8874f8d commit 03000ae

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tools/v2_sync_pipeline/openapi_loader.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ def save_artifacts(artifacts: FetchArtifacts, spec: dict[str, Any], snapshot_dir
8484
json_path = snapshot_dir / "openapi.json"
8585
html_path.write_text(artifacts.html, encoding="utf-8")
8686
state_path.write_text(artifacts.state_js, encoding="utf-8")
87-
json_path.write_text(json.dumps(spec, indent=2, sort_keys=True), encoding="utf-8")
87+
json_path.write_text(json.dumps(spec, indent=2, sort_keys=True) + "\n", encoding="utf-8")
8888
manifest_path = snapshot_dir / "artifact_hashes.json"
8989
hashes = {
9090
"html_sha256": _hash_file(html_path),

0 commit comments

Comments
 (0)