test_class.file: conjure-core/src/test/java/com/palantir/conjure/defs/validator/FieldNameValidatorTest.java
test_class.identifier: FieldNameValidatorTest
test_case.body: @Test
      public void testValidNames() {
          FieldNameValidator.validate(FieldName.of("camel"));
          FieldNameValidator.validate(FieldName.of("camelCase"));
          FieldNameValidator.validate(FieldName.of("camelCase1"));
          FieldNameValidator.validate(FieldName.of("camel1Case2"));
          FieldNameValidator.validate(FieldName.of("kebab-case"));
          FieldNameValidator.validate(FieldName.of("kebab1-case123"));
          FieldNameValidator.validate(FieldName.of("snake_case"));
          FieldNameValidator.validate(FieldName.of("snake1_case123"));
          FieldNameValidator.validate(FieldName.of("xCoordinate"));
          FieldNameValidator.validate(FieldName.of("defaultXPosition"));
          FieldNameValidator.validate(FieldName.of("defaultX"));
      }
test_case.class_method_signature: FieldNameValidatorTest.testValidNames()
test_case.full_signature: @Test public void testValidNames()
test_case.identifier: testValidNames
test_case.invocations: validate of validate of validate of validate of validate of validate of validate of validate of validate of validate of validate of
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testValidNames()
focal_class.declarator: log = LoggerFactory.getLogger(FieldNameValidator.class)
focal_class.modifier: private static final
focal_class.original_string: private static final Logger log = LoggerFactory.getLogger(FieldNameValidator.class);
focal_class.type: Logger
focal_class.var_name: log
focal_class.file: conjure-core/src/main/java/com/palantir/conjure/defs/validator/FieldNameValidator.java
focal_class.identifier: FieldNameValidator
focal_class.class_method_signature: FieldNameValidator.FieldNameValidator()
focal_class.full_signature: private  FieldNameValidator()
focal_class.identifier: FieldNameValidator
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.signature:  FieldNameValidator()
focal_class.class_method_signature: FieldNameValidator.capitalize(FieldName fieldName)
focal_class.full_signature: public static String capitalize(FieldName fieldName)
focal_class.identifier: capitalize
focal_class.modifiers: public static
focal_class.parameters: (FieldName fieldName)
focal_class.return: String
focal_class.signature: String capitalize(FieldName fieldName)
focal_class.class_method_signature: FieldNameValidator.toCase(FieldName fieldName, CaseConverter.Case targetCase)
focal_class.full_signature: public static FieldName toCase(FieldName fieldName, CaseConverter.Case targetCase)
focal_class.identifier: toCase
focal_class.modifiers: public static
focal_class.parameters: (FieldName fieldName, CaseConverter.Case targetCase)
focal_class.return: FieldName
focal_class.signature: FieldName toCase(FieldName fieldName, CaseConverter.Case targetCase)
focal_class.class_method_signature: FieldNameValidator.validate(FieldName fieldName)
focal_class.full_signature: @SuppressWarnings("Slf4jLogsafeArgs") public static void validate(FieldName fieldName)
focal_class.identifier: validate
focal_class.modifiers: @SuppressWarnings("Slf4jLogsafeArgs") public static
focal_class.parameters: (FieldName fieldName)
focal_class.return: void
focal_class.signature: void validate(FieldName fieldName)
focal_class.class_method_signature: FieldNameValidator.nameCase(FieldName fieldName)
focal_class.full_signature: private static CaseConverter.Case nameCase(FieldName fieldName)
focal_class.identifier: nameCase
focal_class.modifiers: private static
focal_class.parameters: (FieldName fieldName)
focal_class.return: CaseConverter.Case
focal_class.signature: CaseConverter.Case nameCase(FieldName fieldName)
focal_method.body: @SuppressWarnings("Slf4jLogsafeArgs")
      public static void validate(FieldName fieldName) {
          Preconditions.checkArgument(
                  CaseConverter.CAMEL_CASE_PATTERN.matcher(fieldName.get()).matches()
                          || CaseConverter.KEBAB_CASE_PATTERN
                                  .matcher(fieldName.get())
                                  .matches()
                          || CaseConverter.SNAKE_CASE_PATTERN
                                  .matcher(fieldName.get())
                                  .matches(),
                  "FieldName \"%s\" must follow one of the following patterns: %s",
                  fieldName,
                  Arrays.toString(CaseConverter.Case.values()));
  
          if (!CaseConverter.CAMEL_CASE_PATTERN.matcher(fieldName.get()).matches()) {
              log.warn(
                      "{} should be specified in lowerCamelCase. kebab-case and snake_case are supported for "
                              + "legacy endpoints only: {}",
                      FieldName.class,
                      fieldName.get());
          }
      }
focal_method.class_method_signature: FieldNameValidator.validate(FieldName fieldName)
focal_method.full_signature: @SuppressWarnings("Slf4jLogsafeArgs") public static void validate(FieldName fieldName)
focal_method.identifier: validate
focal_method.invocations: checkArgument matches matcher get matches matcher get matches matcher get toString values matches matcher get warn get
focal_method.modifiers: @SuppressWarnings("Slf4jLogsafeArgs") public static
focal_method.parameters: (FieldName fieldName)
focal_method.return: void
focal_method.signature: void validate(FieldName fieldName)