Node: change node config diagnostics json field labels to use underscores

This commit is contained in:
dbornside 2018-07-14 19:11:11 -04:00 committed by Grégoire Henry
parent 289cc7ba96
commit 67cca7dd93

View File

@ -50,7 +50,7 @@ let () =
Format.fprintf ppf Format.fprintf ppf
"Invalid data directory '%s'." "Invalid data directory '%s'."
path) path)
Data_encoding.(obj1 (req "datadirPath" string)) Data_encoding.(obj1 (req "datadir_path" string))
(function (function
| Invalid_data_dir path -> | Invalid_data_dir path ->
Some path Some path
@ -66,8 +66,8 @@ let () =
"Invalid data directory version '%s' (expected '%s')." "Invalid data directory version '%s' (expected '%s')."
got exp) got exp)
Data_encoding.(obj2 Data_encoding.(obj2
(req "expectedVersion" string) (req "expected_version" string)
(req "actualVersion" string)) (req "actual_version" string))
(function (function
| Invalid_data_dir_version (expected, actual) -> | Invalid_data_dir_version (expected, actual) ->
Some (expected, actual) Some (expected, actual)
@ -78,7 +78,7 @@ let () =
~id: "couldNotReadDataDirVersion" ~id: "couldNotReadDataDirVersion"
~title: "Could not read data directory version file" ~title: "Could not read data directory version file"
~description: "Data directory version file was invalid." ~description: "Data directory version file was invalid."
Data_encoding.(obj1 (req "versionPath" string)) Data_encoding.(obj1 (req "version_path" string))
~pp:(fun ppf path -> ~pp:(fun ppf path ->
Format.fprintf ppf Format.fprintf ppf
"Tried to read version file at '%s', \ "Tried to read version file at '%s', \
@ -91,7 +91,7 @@ let () =
~id: "noDataDirVersionFile" ~id: "noDataDirVersionFile"
~title: "Data directory version file does not exist" ~title: "Data directory version file does not exist"
~description: "Data directory version file does not exist" ~description: "Data directory version file does not exist"
Data_encoding.(obj1 (req "versionPath" string)) Data_encoding.(obj1 (req "version_path" string))
~pp:(fun ppf path -> ~pp:(fun ppf path ->
Format.fprintf ppf Format.fprintf ppf
"Expected to find data directory version file at '%s', \ "Expected to find data directory version file at '%s', \