-
Notifications
You must be signed in to change notification settings - Fork 58
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
oaOutput in NPX call doesn't write file #278
Comments
Hi @ChristineP2 Could you share which parameters you were using? So we can reproduce the issue. |
We integrated OpenApi-format to facilitate easy filtering capabilities using a wide range of options (tags, tag values, targeting syntax (ex: POST::*)) without the need for Portman users to install an additional package. For more complex usage scenarios, you can use OpenApi-format upfront and pass the result to Portman. We use similar chaining of OpenApi-format and Portman, where we have a huge OpenApi spec but want to test parts individually or filter out WIP endpoints from the test suite. |
The chain is what I ended up doing as well. I loved the initial filtering capability, but there's even more I can do with the full library. Overall I'm thrilled with these 2 libraries, they make OAS the functional and time saving spec I expected it to be. Without these tools, it makes keeping the OAS3 file up to date a chore instead of a needed tool. I am so happy to have these. I'm going to work on getting a POC together and see if I can find root cause on the underlying issue. |
hi @ChristineP2 Very happen to hear, that you have found a flow that works for you. I have created a blog post that describes the "spec-driven" approach and talked about it in a podcast. This is how my flow looks like, which off course is heavily based on OAS, OpenAPI-format & Portman. |
@ChristineP2 Do you have any news on which parameters you were using, so we can reproduce the issue? |
@thim81 Sorry for the delay. I put this branch together that will hopefully allow you to see what I'm seeing: https://github.com/ChristineP2/swagger-petstore/tree/portman I believe it will demonstrate 2 issues:
The command with the collection and filter is The command with just the filter output is where I saw the tmp location: You can also run the following gradle tasks:
|
@ChristineP2 What is the location/path from which you run the command?
Do you run it from from the content root or from I'll investigate if Portman will create the folder for oaOutput, since that might be a bug. |
@ChristineP2 We just released version 1.15.0 of Portman, where the reported issues should be fixed. |
Closing this issue. If you still have problems, feel free to re-open or create a new issue. |
I attempted to generate an output and an oaOutput file together using
npx
using Gradle. The CLI output indicated the oaOutput file wrote to tmp even though I ensured the filepath existed prior to running the command.I will say I find it is just as easy to chain a gradle task for OpenAPI-format with the Portman task. I wonder if it might make sense to avoid embedding it, unless it is needed for other purposes.
My current plan is to create the various test sets from my main spec using openAPI-format, then process that through portman to generate the postman collection(s).
The text was updated successfully, but these errors were encountered: