tangcent / easy-yapi

Generate API document to yapi
https://easyyapi.com
GNU Affero General Public License v3.0
439 stars 144 forks source link

fix: correct content-type for Postman API export #1144

Closed tangcent closed 4 months ago

tangcent commented 4 months ago

fix #1143

codecov[bot] commented 4 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 62.715%. Comparing base (a6fd903) to head (d1dc141). Report is 1 commits behind head on master.

Additional details and impacted files [![Impacted file tree graph](https://app.codecov.io/gh/tangcent/easy-yapi/pull/1144/graphs/tree.svg?width=650&height=150&src=pr&token=J6RUGI54XV&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=tangcent)](https://app.codecov.io/gh/tangcent/easy-yapi/pull/1144?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=tangcent) ```diff @@ Coverage Diff @@ ## master #1144 +/- ## =============================================== - Coverage 62.733% 62.715% -0.018% + Complexity 2372 2369 -3 =============================================== Files 254 255 +1 Lines 12314 12308 -6 Branches 3027 3026 -1 =============================================== - Hits 7725 7719 -6 Misses 3008 3008 Partials 1581 1581 ``` | [Flag](https://app.codecov.io/gh/tangcent/easy-yapi/pull/1144/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=tangcent) | Coverage Δ | | |---|---|---| | [unittests](https://app.codecov.io/gh/tangcent/easy-yapi/pull/1144/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=tangcent) | `62.715% <100.000%> (-0.018%)` | :arrow_down: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=tangcent#carryforward-flags-in-the-pull-request-comment) to find out more. | [Files](https://app.codecov.io/gh/tangcent/easy-yapi/pull/1144?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=tangcent) | Coverage Δ | | |---|---|---| | [...c/main/kotlin/com/itangcent/http/RawContentType.kt](https://app.codecov.io/gh/tangcent/easy-yapi/pull/1144?src=pr&el=tree&filepath=common-api%2Fsrc%2Fmain%2Fkotlin%2Fcom%2Fitangcent%2Fhttp%2FRawContentType.kt&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=tangcent#diff-Y29tbW9uLWFwaS9zcmMvbWFpbi9rb3RsaW4vY29tL2l0YW5nY2VudC9odHRwL1Jhd0NvbnRlbnRUeXBlLmt0) | `100.000% <100.000%> (ø)` | | | [...ugin/api/export/postman/DefaultPostmanApiHelper.kt](https://app.codecov.io/gh/tangcent/easy-yapi/pull/1144?src=pr&el=tree&filepath=idea-plugin%2Fsrc%2Fmain%2Fkotlin%2Fcom%2Fitangcent%2Fidea%2Fplugin%2Fapi%2Fexport%2Fpostman%2FDefaultPostmanApiHelper.kt&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=tangcent#diff-aWRlYS1wbHVnaW4vc3JjL21haW4va290bGluL2NvbS9pdGFuZ2NlbnQvaWRlYS9wbHVnaW4vYXBpL2V4cG9ydC9wb3N0bWFuL0RlZmF1bHRQb3N0bWFuQXBpSGVscGVyLmt0) | `69.262% <100.000%> (ø)` | | | [...ea/plugin/api/export/postman/PostmanApiExporter.kt](https://app.codecov.io/gh/tangcent/easy-yapi/pull/1144?src=pr&el=tree&filepath=idea-plugin%2Fsrc%2Fmain%2Fkotlin%2Fcom%2Fitangcent%2Fidea%2Fplugin%2Fapi%2Fexport%2Fpostman%2FPostmanApiExporter.kt&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=tangcent#diff-aWRlYS1wbHVnaW4vc3JjL21haW4va290bGluL2NvbS9pdGFuZ2NlbnQvaWRlYS9wbHVnaW4vYXBpL2V4cG9ydC9wb3N0bWFuL1Bvc3RtYW5BcGlFeHBvcnRlci5rdA==) | `32.432% <ø> (ø)` | | ... and [1 file with indirect coverage changes](https://app.codecov.io/gh/tangcent/easy-yapi/pull/1144/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=tangcent) ------ [Continue to review full report in Codecov by Sentry](https://app.codecov.io/gh/tangcent/easy-yapi/pull/1144?dropdown=coverage&src=pr&el=continue&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=tangcent). > **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=tangcent) > `Δ = absolute (impact)`, `ø = not affected`, `? = missing data` > Powered by [Codecov](https://app.codecov.io/gh/tangcent/easy-yapi/pull/1144?dropdown=coverage&src=pr&el=footer&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=tangcent). Last update [a6fd903...d1dc141](https://app.codecov.io/gh/tangcent/easy-yapi/pull/1144?dropdown=coverage&src=pr&el=lastupdated&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=tangcent). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=tangcent).