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

How do we use this #10

Open
evokerking1 opened this issue Jul 18, 2024 · 1 comment
Open

How do we use this #10

evokerking1 opened this issue Jul 18, 2024 · 1 comment

Comments

@evokerking1
Copy link

evokerking1 commented Jul 18, 2024

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

@hatalmasalma
Copy link

hatalmasalma commented Dec 31, 2024

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

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