Fix: correctly reference the request body class for the /api/user/namespace/create operation#1414
Conversation
| @@ -1151,7 +1151,7 @@ public ResponseEntity<ResultJson> createNamespace( | |||
| summary = "Create a namespace", | |||
| requestBody = @io.swagger.v3.oas.annotations.parameters.RequestBody( | |||
There was a problem hiding this comment.
Is there a reason we are doing this differently than on L1122? That seems to generate the correct spec and didn't require this specific requestBody in the annotation and inferred it from the method parameters instead.
There was a problem hiding this comment.
tbh I was asking myself the same question.
It could also be removed, to be consistent with the rest.
Keep in mind, that this operation will probably be moved somewhere else anyway as this is a route only useful for the frontend and should not be exposed in the openapi spec imho.
There was a problem hiding this comment.
Sounds good to me. I think consistency might be better in this case and remove it, but as long as the output is correct that's the most important thing.
This fixes #1413 .