vscode-benthos icon indicating copy to clipboard operation
vscode-benthos copied to clipboard

Add json schema

Open packman80 opened this issue 2 years ago • 3 comments

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).

packman80 avatar May 28 '23 13:05 packman80

@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.

disintegrator avatar May 30 '23 15:05 disintegrator

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 avatar Jun 02 '23 03:06 packman80

Hey @disintegrator. is there any hope for implementation ?

packman80 avatar Sep 11 '23 20:09 packman80