[
https://issues.apache.org/jira/browse/AVRO-2130?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Shabab Ayub resolved AVRO-2130.
-------------------------------
Resolution: Fixed
Release Note: The SchemaValidator class is not in the 1.8.2 release.
> [RUBY] QUESTION: Is Avro::SchemaValidator class accessible in version 1.8.2?
> ----------------------------------------------------------------------------
>
> Key: AVRO-2130
> URL: https://issues.apache.org/jira/browse/AVRO-2130
> Project: Avro
> Issue Type: Task
> Components: ruby
> Affects Versions: 1.8.2
> Reporter: Shabab Ayub
> Priority: Major
> Fix For: 1.8.2
>
> Attachments: image-2018-01-15-22-25-27-964.png
>
> Original Estimate: 24h
> Remaining Estimate: 24h
>
> I can't seem to access `Avro::SchemaValidator.validate!()` in the current
> version 1.8.2. I was wondering if this class is being made public in a future
> version or am I missing something in how I use it? It seems that it is not
> one of the accessible classes from the Avro module, if this is the case, I
> was wondering what the reason for this would be?
> I figured doing
> ```
> require 'avro'
> Avro::SchemaValidator.validate!(schema, data)
> ```
> Would be enough.
> I was interested in the ValidtionError class to return specific error
> messages.
> file:
> https://github.com/apache/avro/blob/master/lang/ruby/lib/avro/schema_validator.rb
>
> Thank you!
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)