[
https://issues.apache.org/jira/browse/AVRO-3483?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17520245#comment-17520245
]
ASF subversion and git services commented on AVRO-3483:
-------------------------------------------------------
Commit 552b6be8e522d29d648080f305ebde831f113e04 in avro's branch
refs/heads/avro-3483-log-reason-for-validation-failures from Martin Tzvetanov
Grigorov
[ https://gitbox.apache.org/repos/asf?p=avro.git;h=552b6be8e ]
AVRO-3483: Value::validate_internal() now returns Option<String>
Some brings the accumulated error message(s).
None means that the validation passed!
Signed-off-by: Martin Tzvetanov Grigorov <[email protected]>
> [Rust] Log error messages with a reason when the validation fails
> -----------------------------------------------------------------
>
> Key: AVRO-3483
> URL: https://issues.apache.org/jira/browse/AVRO-3483
> Project: Apache Avro
> Issue Type: Improvement
> Components: rust
> Reporter: Martin Tzvetanov Grigorov
> Assignee: Martin Tzvetanov Grigorov
> Priority: Major
> Labels: pull-request-available
> Time Spent: 50m
> Remaining Estimate: 0h
>
> Currently types::Value::validate(Schema) just returns a boolean with the
> result of the validation.
> It would be good if the Rust SDK logs the reason for a failed validation.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)