Add a protobuf compiler plugin that generates client-side code for TS clients.
It is necessary to implement support for generating a "proxy" client, as well as models. The target protocols at this stage are Json and MessagePack.
In the case of generating models for json, it should be possible to specify an additional parameter on how the field names should be formatted, as well as whether to generate code that converts field names from PascalCase to CamelCase and back.
For example, it may look like this:
static fromDto(dto: any): Model
{
let result = new Model();
result.field1 = dto["Field1"];
return result;
}
toDto(): any
{
var result : any = {};
result["Field1"] = this.field1;
return result;
}
Add a protobuf compiler plugin that generates client-side code for TS clients.
It is necessary to implement support for generating a "proxy" client, as well as models. The target protocols at this stage are
JsonandMessagePack.In the case of generating models for json, it should be possible to specify an additional parameter on how the field names should be formatted, as well as whether to generate code that converts field names from PascalCase to CamelCase and back.
For example, it may look like this: