forked from 0b01001001/spectree
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Support for customizing how nested names are generated (0b0100100…
…1#305) 🔀 merge(types, spec, utils): add support for nested model reference names ✨ feat(types.py): add NestedNamingStrategy type alias ✨ feat(spec.py): add nested_naming_strategy parameter to SpecTree constructor and get_model_schema method ✨ feat(utils.py): add get_nested_key function to generate nested model reference names The changes add support for nested model reference names in Spectree. A new type alias, NestedNamingStrategy, is added to _types.py. SpecTree constructor and get_model_schema method in spec.py now accept a new parameter, nested_naming_strategy, which is used to generate nested model reference names. get_nested_key function is added to utils.py to generate nested model reference names.
- Loading branch information
1 parent
3d5f31a
commit 69fe8e0
Showing
3 changed files
with
33 additions
and
8 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