Skip to content
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

Add json schema #5

Open
packman80 opened this issue May 28, 2023 · 3 comments
Open

Add json schema #5

packman80 opened this issue May 28, 2023 · 3 comments

Comments

@packman80
Copy link

packman80 commented May 28, 2023

Please, add json schema for validation and autosuggests in VSCode between standard components of benthos. it can bring much faster configuration writing (https://json-schema-everywhere.github.io/yaml).

@disintegrator
Copy link
Collaborator

@packman80 I definitely want to support this but I'm not quite sure how to do it from within the extension. We'll need to find a way to get the json schema from the benthos program, using benthos list for example, or by you pointing us at a custom schema within a .benthosrc.json file or similar.

@packman80
Copy link
Author

packman80 commented Jun 2, 2023

Ideally, benthos would have the built-in ability to generate a json schema using the cli. In the source code of the "cli" I saw that it was possible to use the following output:
benthos list --format json-full

Similarly, it would not hurt to be able to generate a json schema using the
benthos list --format json-schema command

I think that's what you meant in your previous answer

After that may be need make a generation during ci process and store files as artifacts ? Not sure, that's good idea.

@packman80
Copy link
Author

Hey @disintegrator. is there any hope for implementation ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants