Skip to main content

Deployment Request Validation

Validation messages for the deployment request, covering function name format, template selection, file naming, SDK version, and description length.


Overview

KeyMessageDescription
Pattern.deploymentRequestDto.functionNameThe function name contains only lowercase letters and numbers and can contain hyphens in betweenFunction name format is invalid: only lowercase letters, numbers, and hyphens are allowed.
Pattern.deploymentRequestDto.templateFiles.filenameThe 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.functionNamePlease input function nameThe function name field is empty.
NotNull.deploymentRequestDto.templateLanguageTagThe template is required. Please choose the template.The template has not been selected for deployment.
NotEmpty.deploymentRequestDto.templateFilesTemplate files is required. Please input template files.Template files have not been provided in the deployment request.
NotEmpty.deploymentRequestDto.sdkVersionSDK version is required. Please select the SDK version.The SDK version has not been selected.
Length.deploymentRequestDto.descriptionThe description is too long. The maximum length is 1024 charactersThe 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

  1. Use only lowercase letters, numbers, and hyphens.
  2. 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

  1. Rename the file using only letters, numbers, dots (.), hyphens (-), and underscores (_).
  2. 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

  1. 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 templateLanguageTag field is null or missing from the request.

Resolution

  1. 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 templateFiles field is empty or missing from the request.

Resolution

  1. 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 sdkVersion field is empty or missing from the request.

Resolution

  1. 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

  1. Reduce the description to 1024 characters or fewer.