fix: fix validate-format

This commit is contained in:
topsworld 2024-12-10 19:36:13 +08:00
parent 99e89d78e0
commit 0cffda9a5c
2 changed files with 0 additions and 28 deletions

View File

@ -94,28 +94,6 @@ def main():
if not spec_filter(load_json(f"{source_dir}/spec_filter.json")):
print(script_name, "spec_filter FAIL")
sys.exit(1)
if not nested_2_dict_str_str(load_json(
f"{source_dir}/std_ex_actions.json")):
print(script_name, "std_ex_actions.json FAIL")
sys.exit(1)
if not nested_2_dict_str_str(load_json(
f"{source_dir}/std_ex_devices.json")):
print(script_name, "std_ex_devices.json FAIL")
sys.exit(1)
if not nested_2_dict_str_str(load_json(f"{source_dir}/std_ex_events.json")):
print(script_name, "std_ex_events.json FAIL")
sys.exit(1)
if not nested_2_dict_str_str(load_json(
f"{source_dir}/std_ex_properties.json")):
print(script_name, "std_ex_properties.json FAIL")
sys.exit(1)
if not nested_2_dict_str_str(load_json(
f"{source_dir}/std_ex_services.json")):
print(script_name, "std_ex_services.json FAIL")
sys.exit(1)
if not nested_2_dict_str_str(load_json(f"{source_dir}/std_ex_values.json")):
print(script_name, "std_ex_values.json FAIL")
sys.exit(1)
source_dir = "../miot/i18n"
if not nested_3_dict_str_str(load_json(f"{source_dir}/de.json")):

View File

@ -17,12 +17,6 @@ export source_dir="../miot/specs"
python3 json_format.py $source_dir/bool_trans.json
python3 json_format.py $source_dir/multi_lang.json
python3 json_format.py $source_dir/spec_filter.json
python3 json_format.py $source_dir/std_ex_actions.json
python3 json_format.py $source_dir/std_ex_devices.json
python3 json_format.py $source_dir/std_ex_events.json
python3 json_format.py $source_dir/std_ex_properties.json
python3 json_format.py $source_dir/std_ex_services.json
python3 json_format.py $source_dir/std_ex_values.json
export source_dir="../miot/i18n"
python3 json_format.py $source_dir/de.json
python3 json_format.py $source_dir/en.json