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
The URL fragments in schema URL feature does not work as expected. Take, for example, following YAML file referencing and Open API schema fragment.
# yaml-language-server: $schema=https://github.com/OAI/OpenAPI-Specification/raw/main/schemas/v3.1/schema.json#/$defs/parametername: tokenin: headerdescription: token to be passed as a headerrequired: trueschema:
type: arrayitems:
type: integerformat: int64style: simple
Describe the bug
The URL fragments in schema URL feature does not work as expected. Take, for example, following YAML file referencing and Open API schema fragment.
Here is a
reference
to the parameter object.Instead of validation the object using the fragment, it validates it using the base object in the schema.
Expected Behavior
I would expect
yamlls
to resolve the fragment and use the objects' definition as its base for validation.Steps to Reproduce
yamlls
outputEnvironment
The text was updated successfully, but these errors were encountered: