rayokota opened a new issue, #103:
URL: https://github.com/apache/avro-rs/issues/103

   The docs state that the `Schema::parse_list` can parse a set of schemas that 
depend on one another,  but all schemas in the set need to be named.
   
   How would I parse a set of schemas where one schema is a union that depends 
on other named schemas such as the following?
   
   ```
           let union = "['myschema1', 'myschema2']";
   
           let myschema1 = r#"
           {
               'type': 'record',
               'name': 'myschema1',
               'fields': [ {'name': 'name', 'type': 'string'} ]
           }
           "#;
   
           let myschema2 = r#"
           {
               'type': 'record',
               'name': 'myschema2',
               'fields': [ {'name': 'age', 'type': 'int'} ]
           }
           "#;
   ```
   
   It seems the  `Schema::parse_with_names(value: &Value, names: Names)` method 
would work for this use case, but it is not currently public.  Would it be 
possible to make that method public?
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to