When defining or documenting APIs/plugins, ensure the declared contract matches how the system actually resolves requests and config fields. Validate examples and client expectations against these checks:

1) Route matching must cover the real request path

2) Request body/encoding must match extraction rules

Example (consistent with $post_arg.tenant_id):

curl -i "http://127.0.0.1:9080/post" -X POST \
  -H "Content-Type: application/x-www-form-urlencoded" \
  -d 'tenant_id=000'

3) Keep API config field types aligned with upstream/integration contracts

4) Use the correct framework primitives/wiring

Adopt this as a “pre-merge” checklist item for any API-facing documentation or examples: run through the exact request path and encoding, confirm the resolved variables/fields, and ensure the config schema types reflect the real integration contract.