-
Notifications
You must be signed in to change notification settings - Fork 228
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
Schema validation reports errors in valid YAML document #42
Comments
I've narrowed this down to a regression in redhat-developer/yaml-language-server@2a8456a inside the jsonParser. I'm currently working on fixing this! |
I think I'm meeting the same issue. I have a schema for a .travis.yml that defines the type of e.g. But the inside VS Code I get the validation error that |
I believe this is the same issue. I have a fix for it we just need to release the extension again for the update! |
@JPinkney to make these releases automatic, would you be interested in a semantic-release auto-release workflow? I set that up for php-language-server and vscode-php-intellisense and it works very well |
Hi, I've fixed this issue! It's now available in the latest release! |
@JPinkney awesome! Did you read my comment above? |
@JPinkney thanks, with latest release my schema works as expected. BTW the schema is here: https://github.com/vojtechhabarta/heat-template-schema/blob/master/schema/heat-template.schema.json - it is generated schema for OpenStack Heat Orchestration Templates. |
@vojtechhabarta I would encourage you to contribute it to jsonschemastore :) |
…idation Fixing the validator and making it more stable
I have rather complex JSON schema with which YAML plugin doesn't work correctly. It reports errors in valid YAML document. But when I use this schema with equivalent JSON document it works correctly.
I tried to simplify the schema and narrow the problem but it is still long and complex because the problem is in some combination of schema constructs.
I have vscode-yaml 0.0.4 with VSCode insider build (see bellow).
Here is the YAML document which doesn't work correctly:
Here is JSON document which works:
Here is
test.schema.json
schema:The text was updated successfully, but these errors were encountered: