Replies: 3 comments
-
|
The only way to do it currently is to make a vscode extension that uses the register contributor api and sends back schemas based off of what schema_version is in that file |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Thank you for this hint. I will try that. Looks promising. |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
If you go that route and have any questions let me know! I'm hoping to create a sample project that shows people how to do this in the coming months |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Maybe I really miss some point here. But I have the following situation:
I locally store different versions of the same schema for a YAML in the way:
.../schema/master/service.schema.json.../schema/1.0.5/service.schema.json.../schema/0.0.4/service.schema.jsonI then have several projects using this schemas. And it works well. Big THANK YOU for that.
But over time it happens that project-a's
service.ymlis of version 0.0.4 and project-b'sservice.ymlis of version 1.0.5. To be able to clarify that, I have an attributeschema_versionin myservice.yml.Problem now: Whenever I want vscode to validate against my schema in correct version I need to edit my configuration in the
settings.jsonbecause there I define:So my questions are:
service.ymlvia place holder in settings?Beta Was this translation helpful? Give feedback.
All reactions