-
Notifications
You must be signed in to change notification settings - Fork 113
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
JSON schema validation does not work for array items when in a combined schema #231
Comments
Yes I did. I also did some more digging and found that the culprit is an extension after all: When I re-ran the extension bisect, it found something this time. With I created an issue there: 42Crunch/vscode-openapi#272 |
Hi! Author of I wonder if this could this be a VS Code regression? The extension indeed contributes an
The
The example json file above does not match I should note, that the way we contribute the openapi schema in the extension is not new, and has been like that for a while. If needed, I can find past discussion with VS Code devs, related to the fact that VS Code has no way to dynamically set the schema based on file contents, forcing us to use |
Note that VSCode is doing some validation even in my repro. |
Registering a schema for The schema validation service looks for all schemas that match a given file name. if there are multiple ones, it combines them with a |
@aeschli Then how do you explain that a JSON object will still get validation errors? And that all my other JSON schema validations work just fine? |
@aeschli Should it be using |
Yes, sorry, my bad, ignore my comment. |
I found the problem. -> It's a bug in the json-languageservice on how the current schema version is evaluated |
Does this issue occur when all extensions are disabled?: Yes
Steps to Reproduce:
The text was updated successfully, but these errors were encountered: