diff options
Diffstat (limited to 'lib/api/ml_model_packages.rb')
-rw-r--r-- | lib/api/ml_model_packages.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/ml_model_packages.rb b/lib/api/ml_model_packages.rb index 35d231d9fe1..8a7a8fc9525 100644 --- a/lib/api/ml_model_packages.rb +++ b/lib/api/ml_model_packages.rb @@ -50,7 +50,7 @@ module API requires :model_name, type: String, desc: 'Model name', regexp: Gitlab::Regex.ml_model_name_regex, file_path: true requires :model_version, type: String, desc: 'Model version', - regexp: Gitlab::Regex.ml_model_version_regex + regexp: Gitlab::Regex.semver_regex requires :file_name, type: String, desc: 'Package file name', regexp: Gitlab::Regex.ml_model_file_name_regex, file_path: true optional :status, type: String, values: ALLOWED_STATUSES, desc: 'Package status' |