Describe the bug
Expected Behavior
JSON Schema should resolve
Current Behavior
I am attempting to create a new schema and the top level $ref is saying it cannot be resolved. In troubleshooting, I found that only an old schema on GitHub was working. To isolate, I downloaded the older schema and uploaded it to another repository and the schema will not resolve the top level reference with the same file. It being a copy of the same file that is working from a commit around a year ago.
I have the following in VS Code settings.json
"yaml.schemas": {
"https://raw.githubusercontent.com/scotttyso/Cisco-AI-Pods/147be45524687406c29997e75dc6bceef64257c8/schema/easy-imm.json": "*.ezai.yaml",
"https://raw.githubusercontent.com/terraform-cisco-modules/easy-imm/15d4fe511ec8e339b070edc54934e34cae2e6e06/yaml_schema/easy-imm.json": "*.ezi.yaml"
},
Here is an example YAML content to use the schema
example:
pools:
mac:
- name: mac-pool
mac_blocks:
- from: 00:25:B5:0A:00:00
size: 255
If I name the file example.ezi.yaml the Schema works as expected.
If I name the file example.ezai.yaml the schema fails to load with the error:
$ref '/components/schemas/easy_imm' in 'https://github.com/terraform-cisco-modules/easy-imm' cannot be resolved.
The only difference between the two json schema files is one is from today and one is from Jun 30, 2025.
I also see the error if I use a more current version of the schema in the same repository that is working. I thought I was going Crazy
Steps to Reproduce
- Create YAML file with two different extensions as shown above
Environment
Describe the bug
Expected Behavior
JSON Schema should resolve
Current Behavior
I am attempting to create a new schema and the top level
$refis saying it cannot be resolved. In troubleshooting, I found that only an old schema on GitHub was working. To isolate, I downloaded the older schema and uploaded it to another repository and the schema will not resolve the top level reference with the same file. It being a copy of the same file that is working from a commit around a year ago.I have the following in VS Code
settings.jsonHere is an example YAML content to use the schema
If I name the file
example.ezi.yamlthe Schema works as expected.If I name the file
example.ezai.yamlthe schema fails to load with the error:The only difference between the two json schema files is one is from today and one is from Jun 30, 2025.
I also see the error if I use a more current version of the schema in the same repository that is working. I thought I was going Crazy
Steps to Reproduce
Environment