Skip to content

Commit 7758373

Browse files
committed
#44, do not pre-register meta schema
1 parent e77a057 commit 7758373

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

json-schema-validator/src/test/java/io/openapiprocessor/jsonschema/example/SetupExampleTest.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,13 @@ void setupExample() throws ConverterException {
3333

3434
// 2. create a json schema store, register a schema and get the schema.
3535
// the store creates a JsonSchema object from the schema document. A
36-
// JsonSchema object is a required parameter of the Validator.
37-
// There are several register() methods and convenience functions to
38-
// register json schema draft versions (e.g. 2029-09 etc.).
39-
// Here the store will download the schema from the given uri.
36+
// JsonSchema object is a required parameter of the Validator. There are
37+
// several register() methods and convenience functions to register json
38+
// schema draft versions (e.g. 2029-09 etc.). Here the store will
39+
// download the schema and meta schema from the given uri.
4040
URI schemaUri = createUri ("https://openapiprocessor.io/schemas/mapping/mapping-v4.json");
4141
SchemaStore store = new SchemaStore (loader);
42-
store.registerDraft7();
42+
//store.registerDraft7();
4343
store.register(schemaUri);
4444

4545
// get the json schema object

0 commit comments

Comments
 (0)