interagent / interagent/committee

No support for request body which is not Hash

Open
#220 3 comments 17 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

middleware
Dominant language
Ruby
Stars
955
Forks
145
Avg merge
5d 4h
Merged PRs (30d)
6

Description

As commented on
https://github.com/interagent/committee/blob/master/lib/committee/request_unpacker.rb#L81-L87

No support for request body which is Array/Int/String (not Hash) and raise error Invalid JSON input. Require object with parameters as keys.

Want to support these not Hash request body

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with lib/committee/request_unpacker.rb lines 81-87 and trace how request bodies are validated and unpacked. Reproduce the current error with Array, Integer, and String JSON bodies, then add coverage for the supported non-Hash cases; done means these bodies no longer raise the stated invalid-input error.

Written by the indexing model from the issue text.

Assessment

Tech stack
ruby
Domain
api, backend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.