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

Import Swagger doesn't parse $ref #138

Open
fr-irene opened this issue Dec 15, 2019 · 1 comment
Open

Import Swagger doesn't parse $ref #138

fr-irene opened this issue Dec 15, 2019 · 1 comment

Comments

@fr-irene
Copy link

If the request and response is specified using $ref, the request_schema.json and response.schema.json file is not getting the detail schema inside $ref

@smollweide
Copy link
Owner

Hi @fr-irene,

I cannot reproduce the described issue.

In the demo data is this schema defined:
https://github.com/smollweide/node-mock-server/blob/master/demo/rest/products/%23%7BproductCode%7D/GET/response_schema.json#L10

which refers to https://github.com/smollweide/node-mock-server/blob/master/demo/rest/_DTO/CardDTO.json

if you change for example the name from string to number and validate the deep-validation.json you can see the $ref works fine.

2019-12-22_2115

Did I got something wrong?
Can you add some more details please?

Best,
Simon

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

2 participants