Skip to content

docs(sdk): add code fences; test(api-server): malformed JSON /simulate body - #936

Merged
Maki-Zeninn merged 1 commit into
Maki-Zeninn:mainfrom
frienzy514-png:docs-sdk-fences-and-simulate-malformed-json-test
Jul 27, 2026
Merged

docs(sdk): add code fences; test(api-server): malformed JSON /simulate body#936
Maki-Zeninn merged 1 commit into
Maki-Zeninn:mainfrom
frienzy514-png:docs-sdk-fences-and-simulate-malformed-json-test

Conversation

@frienzy514-png

Copy link
Copy Markdown
Contributor

Summary

  • Adds markdown code fences around the Installation, Quick Start, and Publishing snippets in docs/sdk.md, matching the style used in the rest of docs/ (e.g. docs/signing-abstraction.md).
  • Adds test_simulate_malformed_json_body_returns_400_or_422 in api-server/src/tests.rs, which sends a non-JSON body ("not json") to POST /simulate to exercise axum's Json extractor rejection path, complementing the existing test_simulate_empty_body_returns_400_or_422 test which only covers syntactically-valid-but-empty JSON.

Closes #920
Closes #918

Test plan

  • Manually reviewed rendered docs/sdk.md for correct fencing/formatting
  • cargo test -p api-server test_simulate_malformed_json_body_returns_400_or_422 (could not run locally — no Rust toolchain in this environment; please verify in CI)

🤖 Generated with Claude Code

… JSON /simulate body

- Wrap the Installation, Quick Start, and Publishing snippets in docs/sdk.md
  with proper markdown code fences, matching the style used elsewhere in docs/.
- Add test_simulate_malformed_json_body_returns_400_or_422 to exercise axum's
  Json extractor rejection path (non-JSON body) on POST /simulate, distinct
  from the existing empty-object test which only hits handler validation.

Closes Maki-Zeninn#920
Closes Maki-Zeninn#918

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@drips-wave

drips-wave Bot commented Jul 27, 2026

Copy link
Copy Markdown

@frienzy514-png Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@Maki-Zeninn
Maki-Zeninn merged commit a45f609 into Maki-Zeninn:main Jul 27, 2026
1 check passed
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.

docs(docs): add missing code fences in docs/sdk.md test(api-server): add test for malformed (non-JSON) request body on POST /simulate

2 participants