Skip to content

Non-conformant payload returns 200 #114

@blake-regalia

Description

@blake-regalia

If I submit a JSON payload to /project/{project_id}/refs that does not conform to the Swagger model, I get an HTTP 200 response:

{
  "message": "[ERROR]: Unable to get object from JSON request"
}

However, this should return HTTP 400 so that developer can debug their program or handle invalid user input appropriately.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions