Skip to content

Commit

Permalink
doc strings for enhanced UI view auto-generation (#4755)
Browse files Browse the repository at this point in the history
Signed-off-by: Santhosh Gandhe <[email protected]>
  • Loading branch information
san81 authored Jul 22, 2024
1 parent bbfaef6 commit 6a9757f
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
package org.opensearch.dataprepper.plugins.processor.splitevent;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyDescription;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
Expand All @@ -20,12 +21,15 @@ public class SplitEventProcessorConfig {
@NotEmpty
@NotNull
@JsonProperty("field")
@JsonPropertyDescription("The event field to be split")
private String field;

@JsonProperty("delimiter_regex")
@JsonPropertyDescription("The regular expression used as the delimiter for splitting the field")
private String delimiterRegex;

@Size(min = 1, max = 1)
@JsonPropertyDescription("The delimiter used for splitting the field. If not specified, the default delimiter is used")
private String delimiter;

public String getField() {
Expand Down

0 comments on commit 6a9757f

Please sign in to comment.