def validate(self):
if (self.data.get('<STR_LIT>') or self.data.get('<STR_LIT:body>')) andself.data.get('<STR_LIT>', '<STR_LIT>').lower() not in CONTENT_TYPE_METHODS:<EOL><INDENT>raise InvalidConfig(<EOL>extra_body='<STR_LIT>'<EOL>'<STR_LIT>'.format('<STR_LIT:U+002CU+0020>'.join(CONTENT_TYPE_METHODS), self.name)<EOL>)<EOL><DEDENT>self.data['<STR_LIT>'] = CONTENT_TYPE_ALIASES.get(self.data.get('<STR_LIT>'),<EOL>self.data.get('<STR_LIT>'))<EOL>form_type = CONTENT_TYPE_ALIASES['<STR_LIT>']<EOL>if self.data.get('<STR_LIT:body>') and (self.data.get('<STR_LIT>') or form_type) == form_type:<EOL><INDENT>try:<EOL><INDENT>self.data['<STR_LIT:body>'] = json.loads(self.data['<STR_LIT:body>'])<EOL><DEDENT>except JSONDecodeError:<EOL><INDENT>raise InvalidConfig(<EOL>extra_body='<STR_LIT>'.format(self.name)<EOL>)<EOL><DEDENT><DEDENT>
Check self.data. Raise InvalidConfig on error

        :return: None