Skip to content
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

Does -u option support specs in yaml? #682

Open
thim81 opened this issue Dec 5, 2024 Discussed in #677 · 0 comments
Open

Does -u option support specs in yaml? #682

thim81 opened this issue Dec 5, 2024 Discussed in #677 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@thim81
Copy link
Collaborator

thim81 commented Dec 5, 2024

Discussed in #677

Originally posted by jpjpjp December 1, 2024
I get this when I run with the remote crm.openapi.yml file:

npx @apideck/portman -u https://github.com/apideck-libraries/portman/blob/main/examples/testsuite-contract-tests/crm.openapi.yml  
=========================================================================================================================================================================
 Remote Url:            https://github.com/apideck-libraries/portman/blob/main/examples/testsuite-contract-tests/crm.openapi.yml
 Portman Config:        portman-config.default.json
 Postman Config:        postman-config.default.json
 Environment:           .env
 Inject Tests:          true
 Run Newman:            false
 Newman Iteration Data: false
 Upload to Postman:     false  
=========================================================================================================================================================================
 Error writing file "./tmp/crm.openapi.yml": JS-YAML: unacceptable kind of an object to dump [object Error]
 OAS URL error - There is a problem with the url: "https://github.com/apideck-libraries/portman/blob/main/examples/testsuite-contract-tests/crm.openapi.yml"
 YAMLException {
  name: 'YAMLException',
  reason: 'unacceptable kind of an object to dump [object Error]',
  mark: null,
  message: 'JS-YAML: unacceptable kind of an object to dump [object Error]',
  warning: false
}

If I download it locally:

npx @apideck/portman -l /tmp/crm.yml
=========================================================================================================================================================================
 Local Path:            /tmp/crm.yml
 Portman Config:        portman-config.default.json
 Postman Config:        postman-config.default.json
 Environment:           .env
 Inject Tests:          true
 Run Newman:            false
 Newman Iteration Data: false
 Upload to Postman:     false  
=========================================================================================================================================================================
  ✔ Conversion successful
=========================================================================================================================================================================
🚀 Collection written to: ./tmp/converted/crmApiContractTests.json 🚀
=========================================================================================================================================================================
```</div>
@thim81 thim81 added the bug Something isn't working label Dec 5, 2024
@thim81 thim81 self-assigned this Dec 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant