Skip to content

Can't run Accounting openapi in Prism #498

@overgapo

Description

@overgapo

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions