Closed
Description
Describe the bug
The work done by @evidolob in #512 doesn't seem to work for several folks, including myself and @remcohaszing:
- Add support of URL fragments in schema URL #512 (comment)
- Add support of URL fragments in schema URL #512 (comment)
Based on Remco's comment, it also seems to vary by the specific schema URL used.
Expected Behavior
The PR should allow validating files against a sub-set of an upstream URL based on a fragment identifier
Current Behavior
For some people it works, and for others it doesn't. It's unclear what the difference is, and how to debug this
Steps to Reproduce
- Create
example.yaml
as below - Observe the errors -- it is validating against the JSON schema represented by the top level URL, instead of validating against the sub-schema identified by the fragment
example.yaml
:
# yaml-language-server: $schema=https://raw.githubusercontent.com/OAI/OpenAPI-Specification/main/schemas/v3.0/schema.json#/definitions/Schema
type: object
Environment
- Windows
- Mac
- Linux
- other (please specify)
Metadata
Metadata
Assignees
Labels
No labels