public static string CompileFromJson(string json, string defaultNamespace) { var compiler = new TLSchemaCompiler(defaultNamespace); TLSchema schema = compiler.GetTLSchemaFromJson(json); return(compiler.Compile(schema)); }
public static string CompileFromTL(string tl, string defaultNamespace) { var compiler = new TLSchemaCompiler(defaultNamespace); TLSchema schema = compiler.GetTLSchemaFromTL(tl); return(compiler.Compile(schema)); }