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.json
I 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.yml
is of version 0.0.4 and project-b'sservice.yml
is of version 1.0.5. To be able to clarify that, I have an attributeschema_version
in 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.json
because there I define:So my questions are:
service.yml
via place holder in settings?Beta Was this translation helpful? Give feedback.
All reactions