2020-04-22 19:07:51 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
Grape::Validations.register_validator(:absence, ::API::Validations::Validators::Absence)
|
|
|
|
Grape::Validations.register_validator(:file_path, ::API::Validations::Validators::FilePath)
|
|
|
|
Grape::Validations.register_validator(:git_ref, ::API::Validations::Validators::GitRef)
|
|
|
|
Grape::Validations.register_validator(:git_sha, ::API::Validations::Validators::GitSha)
|
|
|
|
Grape::Validations.register_validator(:integer_none_any, ::API::Validations::Validators::IntegerNoneAny)
|
|
|
|
Grape::Validations.register_validator(:array_none_any, ::API::Validations::Validators::ArrayNoneAny)
|
|
|
|
Grape::Validations.register_validator(:check_assignees_count, ::API::Validations::Validators::CheckAssigneesCount)
|
2020-06-23 00:09:42 +05:30
|
|
|
Grape::Validations.register_validator(:untrusted_regexp, ::API::Validations::Validators::UntrustedRegexp)
|
2021-01-29 00:20:46 +05:30
|
|
|
Grape::Validations.register_validator(:email_or_email_list, ::API::Validations::Validators::EmailOrEmailList)
|
2021-02-22 17:27:13 +05:30
|
|
|
Grape::Validations.register_validator(:iteration_id, ::API::Validations::Validators::IntegerOrCustomValue)
|
2021-11-18 22:05:49 +05:30
|
|
|
Grape::Validations.register_validator(:project_portable, ::API::Validations::Validators::ProjectPortable)
|