From 3a828ca9f7adc30b250d1e929845e4bbd47b4cfc Mon Sep 17 00:00:00 2001 From: Katie Ots Date: Fri, 27 Mar 2020 04:08:29 -0700 Subject: [PATCH] Adjust field names to match schema Reviewed By: rleshchinskiy Differential Revision: D20672370 fbshipit-source-id: b1104dc5077871bf7c272fa42d1b9e5c3f464c16 --- hphp/hack/src/typing/typing_symbol_json_builder.ml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/hphp/hack/src/typing/typing_symbol_json_builder.ml b/hphp/hack/src/typing/typing_symbol_json_builder.ml index 47de6cf0b35..8fc7ebe3f13 100644 --- a/hphp/hack/src/typing/typing_symbol_json_builder.ml +++ b/hphp/hack/src/typing/typing_symbol_json_builder.ml @@ -389,7 +389,7 @@ let build_typedef_decl_json_ref fact_id = JSON_Object [("typedef_", build_id_json fact_id)] let build_gconst_decl_json_ref fact_id = - JSON_Object [("global_const", build_id_json fact_id)] + JSON_Object [("globalConst", build_id_json fact_id)] let build_property_decl_json_ref fact_id = JSON_Object [("property_", build_id_json fact_id)] @@ -417,8 +417,8 @@ let add_container_defn_fact clss decl_id member_decls progress = let class_fields = base_fields @ [ - ("is_abstract", JSON_Bool is_abstract); - ("is_final", JSON_Bool clss.c_final); + ("isAbstract", JSON_Bool is_abstract); + ("isFinal", JSON_Bool clss.c_final); ] in (ClassDefinition, class_fields) @@ -533,7 +533,7 @@ let add_typedef_decl_fact name elem progress = JSON_Object [ ("name", build_name_json_nested name); - ("is_transparent", JSON_Bool is_transparent); + ("isTransparent", JSON_Bool is_transparent); ] in add_fact TypedefDeclaration json_fact progress -- 2.11.4.GIT