Deployment Request Validation
Validation messages for the deployment request, covering function name format, template selection, file naming, SDK version, and description length.
Overview
| Key | Message | Description |
|---|---|---|
Pattern.deploymentRequestDto.functionName | The function name contains only lowercase letters and numbers and can contain hyphens in between | Function name format is invalid: only lowercase letters, numbers, and hyphens are allowed. |
Pattern.deploymentRequestDto.templateFiles.filename | The file name {0} for the attachment is invalid. Please use only letters, numbers, dots (.), hyphens (-), and underscores (_) in the file name. | The attachment file name {0} contains invalid characters. |
NotEmpty.deploymentRequestDto.functionName | Please input function name | The function name field is empty. |
NotNull.deploymentRequestDto.templateLanguageTag | The template is required. Please choose the template. | The template has not been selected for deployment. |
NotEmpty.deploymentRequestDto.templateFiles | Template files is required. Please input template files. | Template files have not been provided in the deployment request. |
NotEmpty.deploymentRequestDto.sdkVersion | SDK version is required. Please select the SDK version. | The SDK version has not been selected. |
Length.deploymentRequestDto.description | The description is too long. The maximum length is 1024 characters | The description field exceeds the maximum allowed length of 1024 characters. |
Validation Message Details
Pattern.deploymentRequestDto.functionName
Message
The function name contains only lowercase letters and numbers and can contain hyphens in between
Description
Function name format is invalid: only lowercase letters, numbers, and hyphens are allowed.
Root Cause
- The provided function name contains uppercase letters, spaces, or unsupported special characters.
Resolution
- Use only lowercase letters, numbers, and hyphens.
- Ensure the name does not start or end with a hyphen.
Pattern.deploymentRequestDto.templateFiles.filename
Message
The file name {0} for the attachment is invalid. Please use only letters, numbers, dots (.), hyphens (-), and underscores (_) in the file name.
Description
The attachment file name {0} contains invalid characters.
Root Cause
- The file name includes characters outside the allowed set (letters, numbers,
.,-,_).
Resolution
- Rename the file using only letters, numbers, dots (
.), hyphens (-), and underscores (_). - Re-upload after renaming the file.
NotEmpty.deploymentRequestDto.functionName
Message
Please input function name
Description
The function name field is empty.
Root Cause
- No function name was provided in the deployment request.
Resolution
- Provide a valid function name in the request.
NotNull.deploymentRequestDto.templateLanguageTag
Message
The template is required. Please choose the template.
Description
The template has not been selected for deployment.
Root Cause
- The
templateLanguageTagfield is null or missing from the request.
Resolution
- Select a template before submitting the deployment request.
NotEmpty.deploymentRequestDto.templateFiles
Message
Template files is required. Please input template files.
Description
Template files have not been provided in the deployment request.
Root Cause
- The
templateFilesfield is empty or missing from the request.
Resolution
- Include the required template files in the deployment request.
NotEmpty.deploymentRequestDto.sdkVersion
Message
SDK version is required. Please select the SDK version.
Description
The SDK version has not been selected.
Root Cause
- The
sdkVersionfield is empty or missing from the request.
Resolution
- Select a valid SDK version before submitting the deployment request.
Length.deploymentRequestDto.description
Message
The description is too long. The maximum length is 1024 characters
Description
The description field exceeds the maximum allowed length of 1024 characters.
Root Cause
- The provided description is longer than 1024 characters.
Resolution
- Reduce the description to 1024 characters or fewer.