Skip to content

Commit 63d7a1b

Browse files
committed
typo fixes in readme
1 parent 7ce4d65 commit 63d7a1b

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,7 @@ If you want to store the schemas on the classpath (instead of eg. serving them t
454454
to use the `classpath:` protocol to make the schemas reference each other. To make the `classpath:` protocol work:
455455
* if you use the [Spring framework](https://spring.io) you don't have to do anything, spring installs the necessary
456456
protocol handler out of the box
457-
* otherwise you can utilize the library's built-in classpath-aware `SchemaClient`, exampple:
457+
* otherwise you can utilize the library's built-in classpath-aware `SchemaClient`, example:
458458

459459
```java
460460
SchemaLoader schemaLoader = SchemaLoader.builder()
@@ -489,16 +489,16 @@ SchemaLoader schemaLoader = SchemaLoader.builder()
489489
.registerSchemaByURI(new URI("urn:uuid:a773c7a2-1a13-4f6a-a70d-694befe0ce63"), aJSONObject)
490490
.registerSchemaByURI(new URI("http://example.org"), otherJSONObject)
491491
.schemaJson(jsonSchema)
492-
.resolutionScope("classpath://my/schemas/directory/") // setting the default resolution scope
492+
.resolutionScope("classpath://my/schemas/directory/")
493493
.build();
494494
```
495495

496496
Notes:
497497
* the passed schema object must be a `JSONObject` or a `Boolean` (the formal parameter type is `Object` only because
498-
these two don't have any common superclass).
499-
* if you want you can pass a URL with HTTP protocol, it is still a valid URI. Since in this case you pre-assigned a schema
500-
to an URI, there will be no network call made. This can be a caching strategy (though defining your own `SchemaClient`
501-
implementation works too)
498+
these two don't have any other common superclass).
499+
* if you want, you can pass a URL with HTTP protocol, it is still a valid URI. Since in this case you pre-assigned a schema
500+
to a URI, there will be no network call made. This can be a caching strategy (though defining your own `SchemaClient`
501+
implementation works too, or you can even utilize the extensible [protocol handling](https://stackoverflow.com/questions/26363573/registering-and-using-a-custom-java-net-url-protocol) of the `java.net` package)
502502

503503

504504

0 commit comments

Comments
 (0)