Closed Groodian closed 2 years ago
You must provide a class that can be analyzed by the library to generate the appropriate documentation. Any doesn't mean anything so it makes no sense to allow that. If you mean it returns nothing you can use Unit. If it returns an empty object create an empty data class.
Thanks for your answer. I don't want to return anything, i don't want a parameter. I replaced Any with UInt, but I still get an error.
API route with UInt must be a data class.
And I can't find a way to create an empty data class because it needs a parameter for a data class.
Unit
not UInt
Oh sorry, now it works.
The route works fine if i run the application, but if i am trying to run this inside the test the route does not work.
Error when running the test: