Custom serializer for HTTPApiDispatcher

How can I implement a custom serializer for HttpApiDispatcher? We want to change the Json output for some types used inside our objects.

Hi,

I assume that you are using .NET.

  • copy content of OpenApiJsonSerializerand HttpApiDispatcher to your own class (MyOpenApiJsonSerializer and MyHttpApiDispatcher).
  • MyHttpApiDispatcher should use MyOpenApiJsonSerializer
  • modify MyOpenApiJsonSerializer.

Note: you may need also implement the MyOpenApiRodlConverter depending on changes you want to do