(schema: LibraryJSONSchema, rootName?: string)
| 666 | * ``` |
| 667 | */ |
| 668 | export function createParser(schema: LibraryJSONSchema, rootName?: string): Parser { |
| 669 | const paramMap = compileSchema(schema); |
| 670 | return { |
| 671 | parse(input: string): ParseResult { |
| 672 | return parse(input, paramMap, rootName); |
| 673 | }, |
| 674 | }; |
| 675 | } |
| 676 | |
| 677 | /** |
| 678 | * Create a streaming parser from a library JSON Schema document. |
no test coverage detected