Manweill / swagger-axios-codegen

swagger client to use axios and typescript
MIT License
306 stars 83 forks source link

how do you think about includeOption use multimatch do filter? #56

Closed xxbld closed 4 years ago

xxbld commented 4 years ago

multimatch

[
"User",
"user*",
"!user*",
{"user":["get*","!set*"]}
]
Manweill commented 4 years ago

Briefly describe your usage and filtering rules

xxbld commented 4 years ago

multimatch support include and exclude filter, case easy to match tag-name ,path or operationId you want

Manweill commented 4 years ago

Got it. Welcome PR.

xxbld commented 4 years ago

@Manweill
我基本实现了这个功能, 因为匹配字符className里面有一些特殊字符 *,?,**,{},!, 所以要求严格按照 pascalcase规则书写;你看是沿用include参数还是怎么的? image image

Manweill commented 4 years ago

@xxbb 用include参数吧,到时候把readme也修改一下

xxbld commented 4 years ago

https://github.com/Manweill/swagger-axios-codegen/pull/86/commits/61d414c8d99439ad9fa395f79252894706f3f535