Skip to content

Commit ded20dd

Browse files
committed
Temporary fix
1 parent bbf98ba commit ded20dd

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

powertools-validation/src/main/java/software/amazon/lambda/powertools/validation/ValidationUtils.java

+3
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
import com.fasterxml.jackson.databind.node.JsonNodeType;
2222
import com.fasterxml.jackson.databind.node.NullNode;
2323
import com.networknt.schema.JsonSchema;
24+
import com.networknt.schema.SchemaValidatorsConfig;
2425
import com.networknt.schema.ValidationMessage;
2526
import io.burt.jmespath.Expression;
2627
import java.io.ByteArrayOutputStream;
@@ -263,6 +264,8 @@ private static JsonSchema createJsonSchema(String schema) {
263264
"'" + schema + "' is invalid, verify '" + filePath + "' is in your classpath");
264265
}
265266
} else {
267+
//SchemaValidatorsConfig config = new SchemaValidatorsConfig();
268+
//config.getUriTranslator().add(UriTranslator)
266269
jsonSchema = ValidationConfig.get().getFactory().getSchema(schema);
267270
}
268271

powertools-validation/src/main/resources/schemas/meta_schema_V201909

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
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",
44
"$vocabulary": {
55
"https://json-schema.org/draft/2019-09/vocab/core": true,
66
"https://json-schema.org/draft/2019-09/vocab/applicator": true,

0 commit comments

Comments
 (0)