生成 open api 时,能自定义 Request 对象的名称,且能输出字段的 description#17
Open
vfasky wants to merge 7 commits intozhang740:masterfrom
Open
生成 open api 时,能自定义 Request 对象的名称,且能输出字段的 description#17vfasky wants to merge 7 commits intozhang740:masterfrom
vfasky wants to merge 7 commits intozhang740:masterfrom
Conversation
Codecov Report
@@ Coverage Diff @@
## master #17 +/- ##
==========================================
+ Coverage 78.45% 79.92% +1.47%
==========================================
Files 24 24
Lines 557 558 +1
Branches 71 73 +2
==========================================
+ Hits 437 446 +9
+ Misses 97 88 -9
- Partials 23 24 +1
Continue to review full report at Codecov.
|
Owner
|
validateMetaInfo 的数据是对齐 https://github.com/node-modules/parameter 这个库的,其实可以使用 OAS3 的定义来替代,用 schemas 那个属性,手写或者通过这个模块内的 ts 编译插件 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
自定义 Request 对象的名称
在 validateMetaInfo 增加 schemaName 字段,用于解决
Request为object时, 名称总是GenType_生成 open api 时,Request 属性输出 description