Closed teunmooij closed 1 year ago
@thnhat51202574 thanks for reporting this potential bug. Can you maybe explain how you added the custom endpoint?
I tried to reproduce, but had no issue adding the endpoint
Thank you for responding, @teunmooij . I added the custom endpoint to the root config object.. But the result is different from yours, Did i have any wrong configurations ?
Your configuration is correct. I was able to reproduce. Thanks for the extra info. I'll write a fix.
I've released version 1.1.3, which fixes this issue.
The issue on which you originally posted this issue intends to improve custom endpoint documentation in general (eg make it possible to specify a return type). I'll pick that one up soon.
Thanks a lot @teunmooij
My concern is whether there is a solution to merge the default types with the custom type in our Swagger document.
Originally posted by @thnhat51202574 in https://github.com/teunmooij/payload-tools/issues/25#issuecomment-1556606045