Skip to content

How can this library be made to support additional schema formats? #134

Answered by VisualBean
mike-schenk asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @mike-schenk
Ive now refactored and added support for Avro Schemas.

OAS should be easy to implement at this point.
see #170

Basically what you will need, is this;

  1. Add the Schema classes (probably almost a direct copy of the AsyncApiSchema).
  2. Add an AsyncApiOAIMessagePayload class that decorates the new schema type.
  3. Add a deserializer (probably almost a direct copy of the AsyncApiSchemaDeserializer).
  4. Add the supported schemaformat types to the AsyncApiMessageDeserializer and forward the payload loading to the prior mentioned deserializer.
  5. Write tests.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by VisualBean
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants