-
Notifications
You must be signed in to change notification settings - Fork 192
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature custom ToSchema rename (#354)
Add support for custom `rename` and `rename_all` attribute on `ToSchema` derived types. These attributes work like the serde counter parts can be used instead of serde ones. But if both are defined then serde `rename` and `rename_all` will take prededence. Add support for `title` attribute for `ToSchema` derived types. Currently there is one limitation with `title` and it cannot be put on complex enum because of limitations in types used to generate OpenAPI spec. in `utoipa`. Update docs and add more examples regarding rename and title on `ToSchema`. Add tests for possible configuration options. Refactor `ToSchema` enum `ToTokens` functionality once more to simplify it.
- Loading branch information
Showing
11 changed files
with
1,078 additions
and
455 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.