Skip to content

Commit

Permalink
Use better name for field name config (#3)
Browse files Browse the repository at this point in the history
Co-authored-by: Schulte, Johannes <johannes.schulte@eventim.de>
  • Loading branch information
baunz and Schulte, Johannes authored May 5, 2021
1 parent 24480c3 commit ed07eab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
*/
public class StructConverterConfig extends ConverterConfig {

public static final String FIELD_NAME_CONFIG = "converter.fieldname";
public static final String FIELD_NAME_CONFIG = "fieldname";
public static final String FIELD_NAME_DEFAULT = "value";
private static final String FIELD_NAME_DOC = "The name of the field that contains the string value in the resulting struct.";
private static final String FIELD_NAME_DISPLAY = "Field name to use for the struct";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class StructConverterTest {

@BeforeAll
void beforeAll() {
converter.configure(Collections.singletonMap("converter.fieldname", CUSTOM_FIELD_NAME), true);
converter.configure(Collections.singletonMap("fieldname", CUSTOM_FIELD_NAME), true);
}

private Struct assertSchemaAndStruct(SchemaAndValue schemaAndValue) {
Expand Down

0 comments on commit ed07eab

Please sign in to comment.