Parse a [`Schema`] into a [`crate::Schema`]
(
self,
)
| 67 | impl FFISchema { |
| 68 | /// Parse a [`Schema`] into a [`crate::Schema`] |
| 69 | pub(super) fn parse( |
| 70 | self, |
| 71 | ) -> Result<(Schema, Box<dyn Iterator<Item = SchemaWarning>>), miette::Report> { |
| 72 | let (schema_frag, warnings) = self.parse_schema_fragment()?; |
| 73 | Ok((schema_frag.try_into()?, warnings)) |
| 74 | } |
| 75 | |
| 76 | /// Return a [`crate::SchemaFragment`], which can be printed with `.to_string()` |
| 77 | /// and converted to JSON with `.to_json()`. |
no test coverage detected