Skip to content

Commit

Permalink
MAINT: backfill documentation into json description for string_conver…
Browse files Browse the repository at this point in the history
…ter (opensearch-project#4725)

* MAINT: backfill documentation into json description for string_converter

Signed-off-by: George Chen <[email protected]>
Signed-off-by: Krishna Kondaka <[email protected]>
  • Loading branch information
chenqi0805 authored and Krishna Kondaka committed Jul 23, 2024
1 parent b4a4d8e commit c53a8fe
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

package org.opensearch.dataprepper.plugins.processor;

import com.fasterxml.jackson.annotation.JsonPropertyDescription;
import org.opensearch.dataprepper.model.annotations.DataPrepperPlugin;
import org.opensearch.dataprepper.model.annotations.DataPrepperPluginConstructor;
import org.opensearch.dataprepper.model.configuration.PluginSetting;
Expand Down Expand Up @@ -40,6 +41,7 @@ public class StringProcessor implements Processor<Record<Event>, Record<Event>>
private final boolean upperCase;

public static class Configuration {
@JsonPropertyDescription("Whether to convert to uppercase (`true`) or lowercase (`false`).")
private boolean upperCase = true;

public boolean getUpperCase() {
Expand Down

0 comments on commit c53a8fe

Please sign in to comment.