Skip to content

Commit b68cab3

Browse files
committed
fix: set schemastore ID
1 parent 7d242ba commit b68cab3

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 schema
360+
359361
return json.MarshalIndent(r, "", " ")
360362
}
361363

0 commit comments

Comments
 (0)