proudmonkey / AutoWrapper

A simple, yet customizable global exception handler and Http response wrapper for ASP.NET Core APIs.
MIT License
677 stars 82 forks source link

How to use Custom Response Schema in version 5 #138

Open avazon opened 2 years ago

avazon commented 2 years ago

Has anyone a sample of Custom Response Schema in version 5? I have used in version 4 with the wrapper option IsCustomSchema=true which is removed in version 5. I tried with a class inheriting from IApiResponse but cannot get it to work. I wonder if the test for IApiResponse in HandleSuccessfulRequestAsync is correct or should have a test for there is an interface of type IApiResponse instead?