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

Can't run Accounting openapi in Prism #498

Open
overgapo opened this issue Jul 7, 2022 · 0 comments
Open

Can't run Accounting openapi in Prism #498

overgapo opened this issue Jul 7, 2022 · 0 comments

Comments

@overgapo
Copy link

overgapo commented Jul 7, 2022

For API mocking purposes and to avoid creating demo or trial company i tried to run Accounting openapi in Prism but with no luck.

Expected Behavior

Command prism mock Xero-OpenAPI/xero_accounting.yaml runs a mock server

Current Behavior

Got fatal Cannot set property $ref of #<Object> which has only a getter error

Possible Solution

So i tried to open openapi file in stsoplight.io to see possible errors in specification and found a lot of errors and warnings:
image

Typical errors are:

image
Removing quotes around object in example section fixes this error

image
A lot of similar errors that appear after fixing examples blocks

So mostly i found out - that problem is with quotes, but after fixing it - new errors happen.

I suppose after fixing all errors - it should run correctly with Prism.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant