Skip to content

Commit 20b246f

Browse files
authored
Merge pull request #179 from jawaff/exposed-uri-factory
Expose URI Factory
2 parents 99d2187 + e37b2d4 commit 20b246f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/main/java/com/networknt/schema/JsonSchemaFactory.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,14 @@ private JsonMetaSchema findMetaSchemaForSchema(final JsonNode schemaNode) {
245245
}
246246
return jsonMetaSchema;
247247
}
248+
249+
/**
250+
* @return A shared {@link URI} factory that is used for creating the URI references in schemas.
251+
*/
252+
public URIFactory getUriFactory()
253+
{
254+
return this.uriFactory;
255+
}
248256

249257
public JsonSchema getSchema(final String schema, final SchemaValidatorsConfig config) {
250258
try {

0 commit comments

Comments
 (0)