This commit is contained in:
Junghwan 2026-04-24 09:40:30 -06:00 committed by GitHub
commit b297d00169
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 6 additions and 2 deletions

View file

@ -28,6 +28,10 @@ describe("roomodes JSON schema", () => {
expect(validate).toBeDefined()
})
it("should advertise a JSON-serving canonical $id", () => {
expect(schema["$id"]).toBe("https://raw.githubusercontent.com/RooCodeInc/Roo-Code/main/schemas/roomodes.json")
})
it("should accept a minimal valid .roomodes config", () => {
const config = {
customModes: [

View file

@ -50,7 +50,7 @@ export function generateRoomodesJsonSchema(): Record<string, unknown> {
target: "jsonSchema7",
}) as Record<string, unknown>
jsonSchema["$id"] = "https://github.com/RooCodeInc/Roo-Code/blob/main/schemas/roomodes.json"
jsonSchema["$id"] = "https://raw.githubusercontent.com/RooCodeInc/Roo-Code/main/schemas/roomodes.json"
jsonSchema["title"] = "Roo Code Custom Modes"
jsonSchema["description"] = "Schema for .roomodes configuration files used by Roo Code to define custom modes."

View file

@ -90,7 +90,7 @@
"required": ["customModes"],
"additionalProperties": false,
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://github.com/RooCodeInc/Roo-Code/blob/main/schemas/roomodes.json",
"$id": "https://raw.githubusercontent.com/RooCodeInc/Roo-Code/main/schemas/roomodes.json",
"title": "Roo Code Custom Modes",
"description": "Schema for .roomodes configuration files used by Roo Code to define custom modes."
}