MCPcopy Create free account
hub / github.com/apache/fory / parse_schema

Function parse_schema

compiler/fory_compiler/tests/test_swift_generator.py:27–31  ·  view source on GitHub ↗
(source: str)

Source from the content-addressed store, hash-verified

25
26
27def parse_schema(source: str):
28 schema = Parser(Lexer(source).tokenize()).parse()
29 validator = SchemaValidator(schema)
30 assert validator.validate(), validator.errors
31 return schema
32
33
34def generate_swift(source: str, swift_namespace_style=None) -> str:

Calls 6

validateMethod · 0.95
ParserClass · 0.90
LexerClass · 0.90
SchemaValidatorClass · 0.90
parseMethod · 0.45
tokenizeMethod · 0.45

Tested by

no test coverage detected