-
Notifications
You must be signed in to change notification settings - Fork 90
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
I think this is a bug, but it may be open to interpretation. Running:
optic diff --base <branch> <file_to_compare_against> --checkGave the following output:
x Accounts API openapi/federation/external/swagger.2023-01.json
Preview docs: https://useoptic.com/docs/cloud-get-started
Operations: 1 operation added
x Checks: 36/48 passed (11 warnings)
specification details:
- /servers, /info/contact added
- /openapi, /info/version, /info/title changed
✔ POST /logistics/api/2023-01/accounts: added
- request:
- body application/json:
- response 200:
- body application/json:
- response 401:
- body application/json:
- response 409:
- body application/json:
...and 1 other endpoint
See the full history of this API by running "optic api add openapi/federation/external/swagger.2023-01.json --history-depth 0"
If I check the exit code, I get 1.
$ echo $?
1To Reproduce
N/A
Expected behavior
I thought if there is an error causing the exit code 1, getting the output would be helpful. Or the exit code may be set on warnings? Because I do have warnings when running optic lint.
Details (please complete the following information):
- OS and version: Ubuntu (CircleCI virtual env)
- Optic version: 0.47.3
- NodeJS version: 18
Additional context
For context, there's no file to compare to in the staging branch. Also, ran optic lint to check for errors, but there were none. I think the exit code may be wrong, or the output is hiding the error.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working
