public static SchemaBuilderScope BuildSchema(this SchemaBuilderScope scope, ProtoBuf.Meta.ProtoSyntax sintax = ProtoBuf.Meta.ProtoSyntax.Proto2) { ISchemaRender render = new ProtobuffSchemaRender(sintax); ProtoSchemaBuilder builder = new ProtoSchemaBuilder(render); string schema = builder.BuildSchema(scope.Types); scope.Schema = schema; return(scope); }
public ProtobuffSchemaRender(ProtoBuf.Meta.ProtoSyntax sintax) { this.Sintax = sintax; }
public ProtobuffSchemaRender() { this.Sintax = ProtoBuf.Meta.ProtoSyntax.Proto2; }