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

Referencing the same object in request and response schemas results in error #236

Open
SchabaJo opened this issue Jul 5, 2023 · 0 comments

Comments

@SchabaJo
Copy link

SchabaJo commented Jul 5, 2023

Hi!

As the title says, referencing the same object in request and response schemas results in error when clicking Try it: Cannot read properties of undefined (reading 'PROPERTYNAME'). It happens when the referenced files reference a common object by themselves. It happens with JSON and YAML schemas. I have prepared some files to reproduce the issue (link in steps below).

Example:

  • POST request body schema references file A.yaml
  • response schema references file B.yaml
  • A.yaml and B.yaml both reference C.yaml

Steps to reproduce:

  1. checkout https://github.com/SchabaJo/vscode-openapi-reference-issue
  2. open openapi.yaml with vscode
  3. click Try it (between post and description)

Best Regards
Josef

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