Skip to content

Add validation for JSON request body #583

Open
@ashitaprasad

Description

@ashitaprasad

Tell us about the task you want to perform and are unable to do so because the feature is not available

Currently, validation is missing for JSON request body.

What is JSON validation?

Image

From UX point of view,

  • a single line status card below the JSON Text field would be a good idea which will turn red if the JSON is invalid and user can tap/hover on the card to view more details of the error.
  • A more preferred approach is to notify user via the Status bar as mentioned in Add a Global status bar in API Dash #587

Also, the check should be triggered keeping proper debounce time which allows users to finish typing a word or phrase without triggering unnecessary checks.

There is a JSON editor in the repo which has not yet been integrated for request body:
https://github.com/foss42/apidash/blob/main/lib/widgets/editor_json.dart

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions