mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-09-13 23:11:10 +00:00
Merge 17d812c6a6 into ad25634905
This commit is contained in:
commit
b297d00169
3 changed files with 6 additions and 2 deletions
|
|
@ -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: [
|
||||
|
|
|
|||
|
|
@ -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."
|
||||
|
||||
|
|
|
|||
|
|
@ -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."
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue