Hi Rune, Are you doing OpenApi for Rest API’s? If so, code generation using OpenAPI code gen is straightforward and easy to customize.
If you are looking to serialize objects for streaming, messaging or for file/object storage then Avro might be the right thing. Sent from my iPhone > On Aug 14, 2020, at 7:54 AM, Rune Gellein <[email protected]> wrote: > > Hi, > I am relatively new to the world of Json schemas. I have been tasked with > doing the code generation for a swagger schema we are about to start to use > where I am working. > The code generation is fine with OpenAPI. However I think Avro might have > some advantages when it comes to extensions, so I wanted to try that too. > Using the latest XMLSpy from Altova I managed to validate a test message > against the swagger schema if I loaded it as an Avro schema. However when I > try with the avro-maven-plugin I get errors. > > Any idea why. Is swagger schemas meant to work with Avro? Are they > compatible. It has been difficult to find any information on this on google. > I think XMLSpy is using Avro 1.8 and my plugin is version 1.10. > > regards, > Rune
