Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Convert XSDs to Protos

I have a set of services coupled with whole bunch of XSDs. Clients that use my service use XML and in the future will use protobufs. Is there a tool out there that will convert my XSDs into proto files?

The plan here is to define the interface once using XSD and then autogenerate the protos so that both interfaces remain in sync.

like image 395
skword Avatar asked Jun 22 '11 15:06

skword


1 Answers

Protomak is a tool dedicated to exactly this task.

  • https://github.com/mtedone/protomak/ {source code}
  • http://www.jemos.eu/projects/protomak/ {project website}

The lastest release supports:

  • Xsd to Proto files with support for
    • Anonymous types
    • Complex types
    • Inherited complex types
    • Restrictions for enumerations
  • Maven plugin
  • Ant build task

Disclaimer: I worked on this project

like image 175
Edward Wilde Avatar answered Oct 21 '22 19:10

Edward Wilde