-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Document how to integrate Vector config schema with IDEs #22326
Comments
Hi @nomalord, did you close this accidentally? It sounded like a great devex idea. |
Feel free to reopen this or even better create an issue using this template: https://github.com/vectordotdev/vector/issues/new?template=feature.yml |
I saw the generate-schema cli flag that generates a json-schema 😁 I just wish it would be better documented |
Awesome! Can you share the steps you did to make it work for your IDE? |
Of course 👍 vector generate-schema > vector-schema.json Move the json-schema file into a folder for schemas (I Personally use Documents in windows and setup a schemas folder) In vscode, setup using the following guide: In JetBrains setup using the following guide: I personally like setting up the file pattern like:
So vector configurations will have file names: *.vector.yaml |
TIL, thank you @nomalord. I will try it out locally on RustRover. And I will think of an appropriate place for this in the docs. P.S. In the past, I have also seen some VRL plugins for Vim. We also have a https://playground.vrl.dev/ that does syntax highlighting for VRL. Things like this should go under the same umbrella in the docs. |
I will reopen this under the guise of a documentation request :) I don't really know how to add tags so i hope you will help me with that 😊 |
I have started recently using vector. When creating different configurations, I noticed I had something missing, and that was auto generation in my IDE for the configuration.
Adding custom json-schemas into vs-code/jetbrains products allows for auto completion, type checking, built-in descriptions etc...
I believe adding a generated Json Schema for configurations as part of releases will significantly enhance the user experience.
How possible do you think this is?
The text was updated successfully, but these errors were encountered: