You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
post:
tags:
- Authsummary: Sign In/Up with Googledescription: | Sign Ins or Sign Ups a user using a google accountoperationId: auth-googlerequestBody:
content:
application/json:
schema:
$ref: "../../components/schemas/auth-with-3rd-party.yaml"required: trueresponses:
$ref: "../../components/responses/auth.yaml"
But the json output is (just a section of it, not the entire file):
I have the same issue. For now, I am working around it by using redocly which is able to 'bundle' (i.e. flatten everything) into one file.
So I flatten it using redocly-cli, which reads in and resolves all the $refs to other files, then I use openapi2postmanv2.
Something like this in my package.json. Hope it's useful :)
{
"scripts": {
"flatten": "redocly bundle my-openapi-spec.yaml -o flattened-spec.yml",
"generate-postman": "npm run flatten && openapi2postmanv2 -s flattened-spec.yml -o collection.json -p -O folderStrategy=Tags"
},
"devDependencies": {
"openapi-to-postmanv2": "4.15.0",
"@redocly/cli": "^1.11.0"
}
I have the following section in my
openapi.yaml
:./paths/auth/google.yaml
file content:But the json output is (just a section of it, not the entire file):
So the CLI isn't being able to import the content of
./paths/auth/google.yaml
, and it should be.Extra information:
openapi.yaml
is inside anopenapi
folder (so the complete path is./openapi/openapi.yaml
)openapi2postmanv2 -s openapi/openapi.yaml -o postman.json -p
through a package.json scriptThe text was updated successfully, but these errors were encountered: