caddy-json-schema icon indicating copy to clipboard operation
caddy-json-schema copied to clipboard

How do we use this

Open evokerking1 opened this issue 1 year ago • 1 comments

And where do we use this. I am utterly confused about the usage of this

evokerking1 avatar Jul 18 '24 14:07 evokerking1

EDIT 3: All of my whole day of confusion (see below) could have been prevented by simply stating: This is a caddy plugin. Install it into caddy using a custom xcaddy build or https://caddyserver.com/download, then run the following command: caddy json-schema This will generate the JSON schema for caddy-core and the plugins you have installed alongside it. The generated JSON file can be imported to some IDEs. For syntax help, use caddy help json-schema

My original message:

Same. I expected a file to put into my Jetbrains IDE, but there is only a weird script and instructions for VS Code and vim :(

Do I have to install an learn the whole Go ecosystem so I can generate a simple file? Am I supposed to regenerate the schema every time I add a plugin to caddy?

EDIT: I took a deeper look at the repo and the issues, and now I have even less idea what am I looking at and where to start. All I want is some simple code completion into some easy to set up IDE or Notepad++ to get started.

EDIT 2: After much-much searching, I came to the conclusion that this is a caddy plugin, and I am somehow supposed to add it to my caddy installation and run it there. Wasted several hours and I still don't have code completion. Relevant discussion with the caddy dev: https://caddy.community/t/adding-json-schema-to-schemastore-org/25925/4

hatalmasalma avatar Dec 31 '24 03:12 hatalmasalma