You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
finalFilefile = newFile("src/test/resources/data/person.json");
finalStringpersonSchema = FileUtils.readFileToString(file, StandardCharsets.UTF_8);
finalJSONSchemajsonSchema = JSONSchema.parseSchema(personSchema);
// create the person without amount property which is required in the person schema.finalPersonperson = newPerson();
person.setId(1);
person.setAge(22);
finalValidateResultresult = jsonSchema.validate(person);
System.out.println(result.getMessage());
返回结果
requiredpropertyage
期待的正确结果
requiredpropertyamount
相关日志输出
请复制并粘贴任何相关的日志输出。
附加信息
如果你还有其他需要提供的信息,可以在这里填写(可以提供截图、视频等)。
The text was updated successfully, but these errors were encountered:
问题描述
JSON Schema 校验 required 字段时,
ValidateResult
返回的错误信息字段错误环境信息
请填写以下信息:
重现步骤
期待的正确结果
相关日志输出
请复制并粘贴任何相关的日志输出。
附加信息
如果你还有其他需要提供的信息,可以在这里填写(可以提供截图、视频等)。
The text was updated successfully, but these errors were encountered: