-
Notifications
You must be signed in to change notification settings - Fork 202
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MAINT: add json property descriptions for kv configs #4747
MAINT: add json property descriptions for kv configs #4747
Conversation
private boolean strictGrouping = false; | ||
|
||
@JsonProperty("string_literal_character") | ||
@JsonPropertyDescription("Can be set to either a single quotation mark (`'`) or a double quotation mark (`\"`). " + |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This description specifies the valid values but not what this parameter means. I would suggest include the text from the example column (https://opensearch.org/docs/latest/data-prepper/pipelines/configuration/processors/key-value/). Somehow the example text explains what the parameter means in the documentation.
private String keyValueWhen; | ||
|
||
@JsonProperty("strict_grouping") | ||
@JsonPropertyDescription("Specifies whether strict grouping should be enabled when the `value_grouping` " + |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here. Let's include the text in the example column as well for this parameter.
823d156
to
5c68a53
Compare
Signed-off-by: Katherine Shen <katshen@amazon.com>
Signed-off-by: Katherine Shen <katshen@amazon.com>
5c68a53
to
2b3c018
Compare
@shenkw1 , You have a checkstyle error: |
Signed-off-by: Katherine Shen <katshen@amazon.com>
…ect#4747) add json property descriptions for kv configs Signed-off-by: Katherine Shen <katshen@amazon.com> Signed-off-by: Krishna Kondaka <krishkdk@dev-dsk-krishkdk-2c-bd29c437.us-west-2.amazon.com>
…ect#4747) add json property descriptions for kv configs Signed-off-by: Katherine Shen <katshen@amazon.com> Signed-off-by: Krishna Kondaka <krishkdk@dev-dsk-krishkdk-2c-bd29c437.us-west-2.amazon.com>
…ect#4747) add json property descriptions for kv configs Signed-off-by: Katherine Shen <katshen@amazon.com> Signed-off-by: Krishna Kondaka <krishkdk@dev-dsk-krishkdk-2c-bd29c437.us-west-2.amazon.com>
…ect#4747) add json property descriptions for kv configs Signed-off-by: Katherine Shen <katshen@amazon.com> Signed-off-by: Krishna Kondaka <krishkdk@dev-dsk-krishkdk-2c-bd29c437.us-west-2.amazon.com>
…ect#4747) add json property descriptions for kv configs Signed-off-by: Katherine Shen <katshen@amazon.com> Signed-off-by: Krishna Kondaka <krishkdk@dev-dsk-krishkdk-2c-bd29c437.us-west-2.amazon.com>
…ect#4747) add json property descriptions for kv configs Signed-off-by: Katherine Shen <katshen@amazon.com> Signed-off-by: Krishna Kondaka <krishkdk@dev-dsk-krishkdk-2c-bd29c437.us-west-2.amazon.com>
…ect#4747) add json property descriptions for kv configs Signed-off-by: Katherine Shen <katshen@amazon.com> Signed-off-by: Krishna Kondaka <krishkdk@dev-dsk-krishkdk-2c-bd29c437.us-west-2.amazon.com>
Description
This PR serves as the starter for plugin config table into @JsonPropertyDescription so that a complete JSON schema can be generated for the Key-Value Processor.
Issues Resolved
Resolves #[Issue number to be closed when this PR is merged]
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.