You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In 0.20.x and before, the sub-schema was correctly loaded and applied to the document.
In 0.21.0, the remote load is broken, and in 0.21.1, it ignores the fragment and applies the top level schema.
Expected Behavior
It should obey the URL fragment like it used to, so that portions of schemas can be used. This is especially important for validating the targets of $ref properties from OpenAPI schemas.
Current Behavior
It ignores the fragment and validates the file using the "root" schema, which produces bazillions of bogus schema validation errors.
Steps to Reproduce
Create a file using the fragment reference, which should validate according to the fragment. For example:
I made some investigation of this, basically we don’t have a direct implementation of supporting schema url fragments (like: '#/definitions/Schema'). Previously it was working because of bug(related to how we store schema priority) with redhat-developer/yaml-language-server#499 I fix that bug. But apparently it broke schema url fragments. So I'm going to implement this like new feature.
Describe the bug
Given a yaml file with something like this as the first line:
In 0.20.x and before, the sub-schema was correctly loaded and applied to the document.
In 0.21.0, the remote load is broken, and in 0.21.1, it ignores the fragment and applies the top level schema.
Expected Behavior
It should obey the URL fragment like it used to, so that portions of schemas can be used. This is especially important for validating the targets of
$ref
properties from OpenAPI schemas.Current Behavior
It ignores the fragment and validates the file using the "root" schema, which produces bazillions of bogus schema validation errors.
Steps to Reproduce
Environment
The text was updated successfully, but these errors were encountered: