-
Notifications
You must be signed in to change notification settings - Fork 352
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Publish yaml schema of design definition on https://www.schemastore.org/json/ #1538
Comments
PR merged on schemastore: SchemaStore/schemastore#1138 |
The schema is available on https://www.schemastore.org/json You can use it in various IDE that are relying on it without specific configuration apart from installing the Yaml extension/plugin, for instance: VS Code: For Eclipse Desktop, it should work with latest snapshot of Wild Web Developer but not tried. Especially, possible with all client implementations listed here https://github.com/redhat-developer/yaml-language-server#clients For IntelliJ, you can upvote this issue https://youtrack.jetbrains.com/issue/IDEA-236449 (but given that they are not relying on Language Server protocol, this is a non-trivial task) |
is the auto completion triggered also by the modeline or it is required to use the .camelk.yaml suffix for file names ? |
the yaml schema specification is working only based on the file name patterns. it would be possible to dynamically assign the schema based on the modeline but it would require to implement it in each IDE we want to support. Allowing to specify the schema inside the data file would allow standalone files without relying on filename but it is not part of the specification priorities: json-schema-org/json-schema-spec#828 Can you precise the use case of not using From my little knowledge of Yaml, it seems that Kubernetes world is the only major one that doesn't enforce file name pattern (which is causing a lot of troubles in various IDEs for supporting it). Usually, when yaml is used, a file name pattern is expected. |
We had this discussion already and we added the modeline exactly for the reason to avoid having to add In camel-k the name of the file is used to determine the name of the integration so we would need to remove Also, modeline could be used to configure how to locate the schema of the dsl. |
it is the case for Camel Language Server. The Json schema support is not provided by the Camel language Server.
The support of auto-completion relies on the Json schema specification and the Yaml Language Server. It is not related to the Camel language Server.
Given that it is possible to provide a specific name using
Using a specific modeline for yaml-language-server seems to be the easiest to not rely on the filename. (I have no hope to have the json specification improved, especially on short-term). |
I know but the UX should be the consistent.
I never said that it should not follow that path but as we also have the modeline to help understanding that we are dealing with a camel-k dsl, then I don't see why we can't re-use it so the experience would be consistent.
But it won't solve the Java issue
|
There is no need of |
Reusing the current Camel K modeline means either developing specific code in each IDEs clients or to include specific Camel K code in Yaml language Server. None of that is a good solution on middle and long term. |
i don't think that it is the most important to have consistent User Experience between the various languages in Camel K. it sounds more important to have consistent User Experience with the language itself. |
created https://issues.redhat.com/browse/FUSETOOLS2-564 to track various possibilities to not force usage of file name pattern |
What's left on this issue? The original goal was to publish the schema and it is the case https://www.schemastore.org/json |
I think it can be closed |
it will allow to have validation/completion automatically in several IDEs (including VS Code)
requires to have the Yaml schema available of the design definition #1537
The text was updated successfully, but these errors were encountered: