-
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
Now that we have "exclude" , maybe we also need "include"? #905
Comments
i try to use because if i use "-d " define the root of search path, but some struct out of the root can not be recognized, and return error like |
or maybe we need a new arg like searchroot or something ? |
analysis the code, find the reason why return error like "cannot find type definition: xxxxxx" is that search struct define root path is same with Directory you want to parse. but if your api request or response define struct not located in the the Directory you want to parse. then will return this error. |
i find struct type define also be ignore by exclude args, so move the skip excloud path function and add include. Welcome to discuss this idea :) |
So what if one wants to exclude some sub directories in the directory included by --includes. |
good question, i'll check whether my pr can support your idea. this the reason why i want to add this arg: ├── src |
Do we need to consider the situation where both exist? how to solve it? |
Now |
@nimohunter any update here? |
Any docs for this? |
We aren't given the option to 'include'. We can only provide a search base. I provided a search base, and then excluded my entire project, but it still scans the whole thing and generates docs for it. I'm trying to generate docs for a single file in my entire project. It may share some models, sure, but overall, it's a much smaller interface with a different use case. I can't figure out how to do this. Having include that includes only definitions in a specific folder (or file, in my case) would be extremely handy.
How? Where do I put this 1 file so I can include only that file in some output? I'd like to keep it where it is, but if there's some way to fix this by moving I can try. |
same to #640 , if the path tree like this:
i just want need generate swagger file in package_c/someapi_of_c2, we have to use
--exclude src/package_a,src/package_b/;src/package_c/ someapi_of_c1
Can it be optimized here?
Describe the solution you'd like
if this is useful and meaning, i'll try to pull request.
The text was updated successfully, but these errors were encountered: