-
-
Notifications
You must be signed in to change notification settings - Fork 201
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Find a way to rename OpenAPI object and operation globally #619
Comments
You can rename your operation_id for example: #[endpoint(operation_id="AAAAAAA", tags("todos"), status_codes(200, 404))]
pub async fn update_todo(id: PathParam<u64>, updated: JsonBody<Todo>) -> Result<StatusCode, StatusError> {
...
} |
@chrislearn yes indeed but it’s also on objects like return types; would be nice to config the root so it’s smaller across the whole project automatically :-) |
You can use your custom https://github.com/salvo-rs/salvo/blob/main/crates/oapi/src/naming.rs I just don't have time to polish the documentation. PRs for documentation are welcome. |
On the swagger spec the operationIds are very long
This results in very long auto generated code
We need away to reduce it.
The text was updated successfully, but these errors were encountered: