-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Conversation
sdghchj
commented
Dec 13, 2019
•
edited
Loading
edited
- optimization: parseTypeExpr return poionter to spec.Schema.
- optimization: struct parsed as definition ref, which may decrease output size.
- 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 Report
@@ 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
Continue to review full report at Codecov.
|
2.fix bug: lost schema's general information such as field extensions.
There was a problem hiding this 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.
sorry for not promptly reply. @sdghchj Thank you for your contribution. 💯 |