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

Do not parse operations in dependency #1432

Merged
merged 4 commits into from Dec 29, 2022
Merged

Do not parse operations in dependency #1432

merged 4 commits into from Dec 29, 2022

Conversation

sdghchj
Copy link
Member

@sdghchj sdghchj commented Dec 28, 2022

Describe the PR
No longer parse operations in dependency, just parse models

Relation issue
#1430

Signed-off-by: sdghchj <sdghchj@qq.com>
Signed-off-by: sdghchj <sdghchj@qq.com>
Signed-off-by: sdghchj <sdghchj@qq.com>
Signed-off-by: sdghchj <sdghchj@qq.com>
@codecov
Copy link

codecov bot commented Dec 28, 2022

Codecov Report

Base: 85.16% // Head: 85.14% // Decreases project coverage by -0.01% ⚠️

Coverage data is based on head (d114473) compared to base (c8fad2c).
Patch coverage: 94.44% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1432      +/-   ##
==========================================
- Coverage   85.16%   85.14%   -0.02%     
==========================================
  Files          19       19              
  Lines        3613     3616       +3     
==========================================
+ Hits         3077     3079       +2     
- Misses        458      459       +1     
  Partials       78       78              
Impacted Files Coverage Δ
types.go 100.00% <ø> (ø)
parser.go 94.45% <90.00%> (-0.11%) ⬇️
golist.go 90.24% <100.00%> (ø)
packages.go 89.12% <100.00%> (+0.03%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@sdghchj sdghchj merged commit f916213 into master Dec 29, 2022
@sdghchj sdghchj deleted the no-api-in-dependency branch December 29, 2022 01:41
@sdghchj
Copy link
Member Author

sdghchj commented Mar 10, 2023

After this PR, it is suggested that if you want to parse apis in some external packges,just explicitly include them with flag -d。
swag init -g main.go -d cmd/api,pkg/api

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants