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

fully support map and optimization #583

Merged
merged 5 commits into from
Dec 20, 2019
Merged

fully support map and optimization #583

merged 5 commits into from
Dec 20, 2019

Conversation

sdghchj
Copy link
Member

@sdghchj sdghchj commented Dec 13, 2019

  1. optimization: parseTypeExpr return poionter to spec.Schema.
  2. optimization: struct parsed as definition ref, which may decrease output size.
  3. fully support map type, including map[string]interface{},map[string]primitive, also fix bug described in map not perfectly supported in struct #581.

2. fully support map type, including map[string]interface{},map[string]primitive.
3. optimization: struct parsed as definition ref.
@codecov-io
Copy link

codecov-io commented Dec 13, 2019

Codecov Report

Merging #583 into master will decrease coverage by 1.21%.
The diff coverage is 71.84%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #583      +/-   ##
==========================================
- Coverage   87.45%   86.24%   -1.22%     
==========================================
  Files           7        7              
  Lines        1618     1599      -19     
==========================================
- Hits         1415     1379      -36     
- Misses        119      136      +17     
  Partials       84       84
Impacted Files Coverage Δ
parser.go 80.32% <71.84%> (-2.23%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b731715...ed6cb86. Read the comment docs.

parser.go Outdated Show resolved Hide resolved
parser_test.go Outdated Show resolved Hide resolved
sdghchj and others added 3 commits December 14, 2019 17:50
2.fix bug: lost schema's general information such as field extensions.
Copy link
Member

@easonlin404 easonlin404 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should add more testing against on map. For this PR LGTM.

@easonlin404 easonlin404 merged commit eb4805c into swaggo:master Dec 20, 2019
@easonlin404
Copy link
Member

sorry for not promptly reply. @sdghchj Thank you for your contribution. 💯

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

3 participants