forked from KKKIIO/swag
-
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.
Extended generics support (swaggo#1277)
* feat: add support for nested generics nested generics support and related tests added * fix: Multiple usage of same generic generate different definition paths cache generic definitions by full name * feat: add support for generic array parameter - allow usage of arrays as parameter definitions - tests extended and new body param added to tests * feat: Add support for generic properties - get generic field type - support built in types in structs refs swaggo#1213 * feat: Support custom model names for generics add prefix to generic model names, to prevent renaming, if name annotation exists * fix: Check if generic name starts with pkgName - The first underscore was replaced instead of checking if the generated name even starts with the package name. - New Tests added to test the name generation - schema test extended to test the new behavior * refactor: Apply suggested changes from PR
- Loading branch information
1 parent
cc25410
commit 2f148dd
Showing
29 changed files
with
3,720 additions
and
397 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
Oops, something went wrong.