ProjectTech4DevAI / ProjectTech4DevAI/kaapi-guardrails

Guardrails: Enhancements on initial code

Open
#14 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

  • #35 by @rkritika1508 — closed without merging
enhancement
Dominant language
Python
Stars
5
Forks
3
Avg merge
9d 13h
Merged PRs (30d)
2

Description

Which feature or component needs enhancement?
Now that an initial amount of code has been pushed to this repo, we need to keep in mind any enhancement that code needs, having stated this, noting down the list of things that need enhancement here.

Describe the current behavior

  • While the post endpoints gives back error for wrong parameter value, it does not give any error for wrong parameter name added with validators
  • The error you get for missing input body is not very clear as of now

Describe the enhancement you'd like

  • An error should be returned if someone gave post endpoints wrong parameter name, for example if they typed "on_fix" instead of "on_fail"
  • There should be a clear error message for missing input text

Contributor guide

No contributing guide indexed for this repository

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 by locating the POST endpoints and their validators, then reproduce the wrong-parameter and missing-input cases described in the issue. Done means invalid parameter names return an error and missing input text produces a clear error message.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
api
Issue type
Bug
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.