Skip to content

Api empty project snippets

Robert Schilling requested to merge api-empty-project-snippets into master

What does this MR do?

Ensures that code content is not empty. The PUT request returned a 500 error if code was empty. The POST endpoint worked differently: here a validation in the model catched the error. However, I added a validation in the API to unify the error message (error code is still the same: 400).

What are the relevant issue numbers?

Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/50270

Does this MR meet the acceptance criteria?

Merge request reports