Description
Schema v7Schema = schemaLoaderBuilder.build().load().build();
We deal with huge draft7 schemas which takes considerable amount of time to be converted into Schema Java Object which can they be used for validation purposes. We wanted to optimize this process of creation for this Schema Object by keeping serialized version of Schema object in the cache and then reading them quickly and derserializing it.
However, serialising the Schema Object using gson library was ending up with this kind of error:
java.lang.IllegalArgumentException: Class org.everit.json.schema.ReferenceSchema declares multiple JSON fields named 'title'; conflict is caused by fields org.everit.json.schema.ReferenceSchema#title and org.everit.json.schema.Schema#title
Just wanted to check if this is something even feasible for this complex Schema object or not?