Hi, I am creating a restful webservice, yes. OpenAPI is working well. One thing that is a bit awkward in the OpenAPI is to extend a type. far as I can work out it all have to be in the same file there. I was hoping this is easier in Avro where you can use multiple files for the schema (at least I think you can).
But then there is also the problem that I haven't been able to do the code generation of this swagger schema with Avro... regards, Rune On 2020/08/18 03:46:41, Patrick Farry <[email protected]> wrote: > 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 >
