def convert_references_json(ref_content, soup=None):
<EOL>if (<EOL>(ref_content.get("<STR_LIT:type>") == "<STR_LIT>")<EOL>or<EOL>(ref_content.get("<STR_LIT:type>") == "<STR_LIT>" and "<STR_LIT>" not in ref_content)<EOL>or<EOL>(ref_content.get("<STR_LIT:type>") == "<STR_LIT>" and "<STR_LIT>" not in ref_content)<EOL>or<EOL>(ref_content.get("<STR_LIT:type>") in ["<STR_LIT>", "<STR_LIT>"]<EOL>and not "<STR_LIT>" in ref_content)<EOL>or<EOL>(ref_content.get("<STR_LIT:type>") == "<STR_LIT>" and "<STR_LIT>" not in ref_content)<EOL>or<EOL>(ref_content.get("<STR_LIT:type>") in ["<STR_LIT>", "<STR_LIT>", "<STR_LIT>", "<STR_LIT>", "<STR_LIT>"]<EOL>and "<STR_LIT>" not in ref_content)<EOL>or<EOL>(ref_content.get("<STR_LIT:type>") == "<STR_LIT>" and "<STR_LIT>" not in ref_content)<EOL>or<EOL>(ref_content.get("<STR_LIT:type>") == "<STR_LIT:data>" and "<STR_LIT:source>" not in ref_content)<EOL>or<EOL>(ref_content.get("<STR_LIT:type>") == "<STR_LIT>" and "<STR_LIT>" not in ref_content)<EOL>):<EOL><INDENT>ref_content = references_json_to_unknown(ref_content, soup)<EOL><DEDENT>return ref_content<EOL>
Check for references that will not pass schema validation, fix or convert them to unknown