-
Notifications
You must be signed in to change notification settings - Fork 30
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
No support for APEX (Salesforce flavor of Java) #603
Comments
Was able to get the following error: |
Seems that this is happening because CJS isn't recognized by the comment-patterns library that we use: https://github.com/nknapp/comment-patterns/tree/master/languages/patterns |
Yep, I came to the same conclusion. Pulled the repo down and am adjusting the pattern in the options. |
Hey @erunion, I was able to make a few edits to get this working:
It would be nice to be able to specify the glob and the pattern from the command line. Additionally, we have a deprecated file in our repo that looks like this:
This file causes an unable to recognize language error. In the short-term I was able to ignore the error, but this use case may be something to solve for in the error handling. Thank you |
@erunion Any thoughts on a timeline for this enhancement. Kicking off an enterprise project 3/1 with ReadMe and would love to build this into our CI/CD pipeline. |
@erunion the pattern appended to the options would also have to be honored by |
@garrett-wade We're currently locked up on some large projects and don't have the bandwidth for at least another month or two but am always open to accepting a pull request if you'd like to take stab at it. |
@erunion I the following PR https://github.com/readmeio/swagger-inline/pull/249 to added pattern support to swagger-inline as this will be a dependency for the changes to resolve this enhancement. |
@garrett-wade You |
Our company builds APIs on Salesforce and as a result our source code is in APEX. I have done some due diligence and it seems the CLI does not support APEX files. APEX files have a file extension of ".cls" and even when I directly try to create the file via swagger-inline with the following snippet
npx swagger-inline "force-app/main/default/classes/*.cls" --base 'test.json'
the path is not added to the OAS. This would be a huge lift if we are able to support APEX and APIs built on Salesforce. Thank you.The text was updated successfully, but these errors were encountered: