I am trying to develop an Intellij Plugin, which could generate Json Schema out of a Java Class using this awesome library:
To use this library, the class object is needed, like
JsonSchema schema = schemaGen.generateSchema(SimpleBean.class);
However, I cannot load the class object from my source code in my plugin. My code shows below:
JsonSchema schema = schemaGen.generateSchema(ClassLoader.getSystemClassLoader().load(psiClass.getName()));
Is there anyway to achieve to load class object from source code into plugin?