Skip to content

fix: reject non-object JSON-RPC requests - #16

Closed
be-student wants to merge 1 commit into
AgentPostmortem:mainfrom
be-student:codex/9-reject-non-object-requests
Closed

fix: reject non-object JSON-RPC requests#16
be-student wants to merge 1 commit into
AgentPostmortem:mainfrom
be-student:codex/9-reject-non-object-requests

Conversation

@be-student

Copy link
Copy Markdown
Contributor

Closes #9.

Rejects null, arrays, and other non-object JSON values with JSON-RPC -32600 before dispatch. Adds regression coverage for the reported cases.

Validation: npm test; npm run typecheck

@royalpinto007

Copy link
Copy Markdown
Collaborator

Thanks! Merging #15 for this one since its tests cover primitives too (string/number/boolean). The README note about -32600 would still be a welcome docs addition.

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.

Non-object JSON-RPC bodies crash or get the wrong error code

2 participants