Create a `Schema` from a string representing a JSON Avro schema.
(&mut self, input: &str)
| 60 | |
| 61 | /// Create a `Schema` from a string representing a JSON Avro schema. |
| 62 | pub(super) fn parse_str(&mut self, input: &str) -> AvroResult<Schema> { |
| 63 | let value = serde_json::from_str(input).map_err(Details::ParseSchemaJson)?; |
| 64 | self.parse(value, None) |
| 65 | } |
| 66 | |
| 67 | /// Create an array of `Schema`s from an iterator of JSON Avro schemas. |
| 68 | /// |