Skip to content

Commit 80db300

Browse files
authored
fix: set schemastore ID (#194)
1 parent f1fc040 commit 80db300

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

config.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -356,6 +356,8 @@ func (conf Config) Schema() ([]byte, error) {
356356
reflector := jsonschema.Reflector{}
357357
_ = reflector.AddGoComments("github.com/ctfer-io/ctfd-setup", "./") // this could fail once binary is compiled, thus ignored (no problem)
358358
r := reflector.Reflect(&Config{})
359+
r.ID = "https://json.schemastore.org/ctfd.json" // set the Schemastore ID
360+
359361
return json.MarshalIndent(r, "", " ")
360362
}
361363

0 commit comments

Comments
 (0)