Skip to content
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

Extended generics support #1277

Merged
merged 8 commits into from Aug 2, 2022
Merged

Commits on Jul 17, 2022

  1. feat: add support for nested generics

    nested generics support and related tests added
    FabianMartin committed Jul 17, 2022
    Copy the full SHA
    9fbd264 View commit details
    Browse the repository at this point in the history

Commits on Jul 18, 2022

  1. fix: Multiple usage of same generic generate different definition paths

    cache generic definitions by full name
    FabianMartin committed Jul 18, 2022
    Copy the full SHA
    42eea37 View commit details
    Browse the repository at this point in the history

Commits on Jul 24, 2022

  1. Copy the full SHA
    58f73f4 View commit details
    Browse the repository at this point in the history

Commits on Jul 31, 2022

  1. feat: add support for generic array parameter

    - allow usage of arrays as parameter definitions
    - tests extended and new body param added to tests
    FabianMartin committed Jul 31, 2022
    Copy the full SHA
    e6065e6 View commit details
    Browse the repository at this point in the history
  2. feat: Add support for generic properties

    - get generic field type
    - support built in types in structs
    
    refs swaggo#1213
    FabianMartin committed Jul 31, 2022
    Copy the full SHA
    fff4b9f View commit details
    Browse the repository at this point in the history

Commits on Aug 1, 2022

  1. feat: Support custom model names for generics

    add prefix to generic model names, to prevent renaming, if name annotation exists
    FabianMartin committed Aug 1, 2022
    Copy the full SHA
    9c54413 View commit details
    Browse the repository at this point in the history
  2. 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
    FabianMartin committed Aug 1, 2022
    Copy the full SHA
    84cb853 View commit details
    Browse the repository at this point in the history
  3. refactor: Apply suggested changes from PR

    Suggested changes applied
    FabianMartin committed Aug 1, 2022
    Copy the full SHA
    68fbadb View commit details
    Browse the repository at this point in the history