Commit 5cbb166 1 parent b828234 commit 5cbb166 Copy full SHA for 5cbb166
File tree 1 file changed +2
-0
lines changed
ml-algorithms/src/main/java/org/opensearch/ml/engine/algorithms/remote
1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -269,12 +269,14 @@ public static SdkHttpFullRequest signRequest(
269
269
public static void validateSchema (String schemaString , String instanceString ) {
270
270
try {
271
271
// parse the schema JSON as string
272
+ System .out .println (schemaString );
272
273
JsonValue schemaJson = new JsonParser (schemaString ).parse ();
273
274
// map the raw json to a reusable Schema instance
274
275
Schema schema = new SchemaLoader (schemaJson ).load ();
275
276
// create a validator instance for each validation (one-time use object)
276
277
Validator validator = Validator .create (schema , new ValidatorConfig (FormatValidationPolicy .ALWAYS ));
277
278
// parse the input instance to validate against the schema
279
+ System .out .println (instanceString );
278
280
JsonValue instance = new JsonParser (instanceString ).parse ();
279
281
// run the validation
280
282
ValidationFailure failure = validator .validate (instance );
You can’t perform that action at this time.
0 commit comments