Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: swaggo/swag
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v1.16.5
Choose a base ref
...
head repository: swaggo/swag
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v1.16.6
Choose a head ref
  • 5 commits
  • 19 files changed
  • 7 contributors

Commits on Jul 18, 2025

  1. fix: prevent nil pointer dereference in getFuncDoc when parsing depen…

    …dencies (#2044)
    
    Add comprehensive nil checks in getFuncDoc function to handle incomplete
    AST nodes from dependency packages. This resolves segmentation faults
    that occur when parsing standard library types like atomic.Int32,
    json.scanner, and ecdh.PrivateKey with ParseDependency enabled.
    
    - Check for empty astDecl.Specs before accessing astDecl.Specs[0]
    - Check for empty astDecl.Values before accessing astDecl.Values[0]
    - Add nil checks for value.Obj and value.Obj.Decl chain
    
    Fixes critical crash when parsing projects with dependencies.
    
    Co-authored-by: James Gates <jgates@corebt.com>
    gatorjuice and James Gates authored Jul 18, 2025
    Configuration menu
    Copy the full SHA
    d7cec57 View commit details
    Browse the repository at this point in the history

Commits on Jul 21, 2025

  1. Configuration menu
    Copy the full SHA
    0f3bf86 View commit details
    Browse the repository at this point in the history

Commits on Jul 24, 2025

  1. Feature: allow enum ordered const name override (2nd PR for this) (#2046

    )
    
    * Implement getting name override from comment for enum ordered consts.
    
    * Update README and enum tests for enum variant name override feature.
    
    * Update to address comments and linting.
    
    * Fix typo in ConstVariable.VariableName() comment.
    
    * Improve named enum testing.
    
    * `x-enum-descriptions` should have same length as `enum` array.
    
    Otherwise, there's no way to know which descriptions corresponds to
    which enum value.
    
    * Update TypeSpecDef.Alias() to use standard nameOverride() function.
    
    * Fix enum test.
    
    * Remove name override from TypeSpecDef.TypeName() method.
    
    As per PR #1866, the name override functionality has been removed from
    TypeName() and put into Alias() which is used by SetSchemaName().
    drewsilcock authored Jul 24, 2025
    Configuration menu
    Copy the full SHA
    b0c5cc9 View commit details
    Browse the repository at this point in the history

Commits on Jul 25, 2025

  1. Use the structs name without the @name comment (#2043)

    * Fixed struct naming when using dependency parsing
    
    * Fixed naming
    
    * Fixed debug message always triggering
    
    ---------
    
    Co-authored-by: skast <stephan.kast@hoss-mobility.com>
    skast96 and skast authored Jul 25, 2025
    Configuration menu
    Copy the full SHA
    252fecd View commit details
    Browse the repository at this point in the history

Commits on Jul 28, 2025

  1. Configuration menu
    Copy the full SHA
    f676981 View commit details
    Browse the repository at this point in the history
Loading