Skip to content

Enforce Gitlab::Utils::DeepSize `max_size` and `max_depth` defaults

What does this MR do?

It could be that a developer passes nil to max_size and max_depth, in that case we need to guarantee those will get their default values.

This is a follow-up from: !21871 (comment 278464475)

Screenshots

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Security

If this MR contains changes to processing or storing of credentials or tokens, authorization and authentication methods and other items described in the security review guidelines:

  • Label as security and @ mention @gitlab-com/gl-security/appsec
  • The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • Security reports checked/validated by a reviewer from the AppSec team
Edited by 🤖 GitLab Bot 🤖

Merge request reports