Configuration API - Job property translation endpoints have enriched validation

Description

Added enriched validation for the LabelTranslation object by requiring at least one non-whitespace character in label field.

This is also reflected in the OpenAPI specification:

    LabelTranslation:
      type: object
      properties:
        label:
          type: string
          minLength: 1
          maxLength: 200
+         pattern: "^(?!\\s*$).+"

This validation is enforced for the request body of the following endpoints:

  • PATCH /configuration/job-properties/{id}/values/{valueId}/translations
  • PATCH /configuration/job-properties/{id}/translations

Impact

This change is not backwards compatible and will reject requests with translations containing only whitespace characters.
Previously such requests would be accepted.

References