File tree 2 files changed +5
-2
lines changed
powertools-validation/src/main
java/software/amazon/lambda/powertools/validation
2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 21
21
import com .fasterxml .jackson .databind .node .JsonNodeType ;
22
22
import com .fasterxml .jackson .databind .node .NullNode ;
23
23
import com .networknt .schema .JsonSchema ;
24
+ import com .networknt .schema .SchemaValidatorsConfig ;
24
25
import com .networknt .schema .ValidationMessage ;
25
26
import io .burt .jmespath .Expression ;
26
27
import java .io .ByteArrayOutputStream ;
@@ -263,6 +264,8 @@ private static JsonSchema createJsonSchema(String schema) {
263
264
"'" + schema + "' is invalid, verify '" + filePath + "' is in your classpath" );
264
265
}
265
266
} else {
267
+ //SchemaValidatorsConfig config = new SchemaValidatorsConfig();
268
+ //config.getUriTranslator().add(UriTranslator)
266
269
jsonSchema = ValidationConfig .get ().getFactory ().getSchema (schema );
267
270
}
268
271
Original file line number Diff line number Diff line change 1
1
{
2
- "$schema": "https://json-schema.org/draft/2019-09/schema# ",
3
- "$id": "https://json-schema.org/draft/2019-09/schema# ",
2
+ "$schema": "https://json-schema.org/draft/2019-09/schema",
3
+ "$id": "https://json-schema.org/draft/2019-09/schema",
4
4
"$vocabulary": {
5
5
"https://json-schema.org/draft/2019-09/vocab/core": true,
6
6
"https://json-schema.org/draft/2019-09/vocab/applicator": true,
You can’t perform that action at this time.
0 commit comments