yaml-language-server icon indicating copy to clipboard operation
yaml-language-server copied to clipboard

Support JSON Schema 2019 and 2020

Open datho7561 opened this issue 7 months ago • 3 comments

Hi, this PR seemed to support for draft 04, 2019 and 2020 but was eventually revert due to issue with draft 04 (if I understand correctly). If there were no particular issues with 2019 and 2020, cant we add them back ? It seems like a lot of users would love to have support for draft 07 > features.

If it's just about adding back validators for 2019 and 2020, I dont mind creating the PR myself, but I d like to know first what was the main issue with them (if any).

Originally posted by @damioune123 in https://github.com/redhat-developer/yaml-language-server/issues/1006#issuecomment-3093221818

datho7561 avatar Jul 21 '25 12:07 datho7561

Note: https://github.com/redhat-developer/yaml-language-server/pull/1006#issuecomment-3097226164

We might need to use a different schema validator

datho7561 avatar Jul 21 '25 16:07 datho7561

Thank you for creating the issue ! I will start looking at it asap

damioune123 avatar Jul 22 '25 18:07 damioune123

Hyperjump also supports open api 3-0, 3-1 and 3-2 schemas. We can either integrate these schemas support directly in this pr or open another once this one is merged.

https://github.com/hyperjump-io/json-schema

damioune123 avatar Jul 23 '25 05:07 damioune123