reinert / JJSchema

A generator from Java Types to JSON-Schema using Jackson.
Other
117 stars 56 forks source link

Error converting Java interface to Json schema #65

Closed architm closed 6 years ago

architm commented 7 years ago

I am getting the following error while converting java inteface to json schema

Exception in thread "main" java.lang.NullPointerException at java.lang.Class.isAssignableFrom(Native Method) at com.github.reinert.jjschema.JsonSchemaGenerator.checkAndProcessType(JsonSchemaGenerator.java:106) at com.github.reinert.jjschema.JsonSchemaGenerator.generateSchema(JsonSchemaGenerator.java:86) at com.github.reinert.jjschema.JsonSchemaGenerator.mergeWithParent(JsonSchemaGenerator.java:300) at com.github.reinert.jjschema.JsonSchemaGenerator.processCustomType(JsonSchemaGenerator.java:140) at com.github.reinert.jjschema.JsonSchemaGenerator.checkAndProcessType(JsonSchemaGenerator.java:120) at com.github.reinert.jjschema.JsonSchemaGenerator.generateSchema(JsonSchemaGenerator.java:86) at SchemaGeneratorTest.main(SchemaGeneratorTest.java:25)

My query is does jjschema library supports interface conversion or not?

reinert commented 7 years ago

It does support Interface. The problem is related to your specific interface. If you put it here I could check what is going on.