public final class Example2 extends Object
This example uses the same schema with one difference: the mntent
subschema is now referenced via inline addressing using an id
.
The schema used for validation is here.
In order to use inline schema addressing, we cannot use the default
factory: we must go through a JsonSchemaFactoryBuilder
and use a
modified LoadingConfiguration
to tell that we want to use inline
dereferencing.
Apart from these, the files used for validation and validation results
are the same as Example1
.
Dereferencing
Constructor and Description |
---|
Example2() |
public static void main(String... args) throws IOException, ProcessingException
IOException
ProcessingException