diff --git a/schemas/v1/device.schema.json b/schemas/v1/device.schema.json index 1426ef6..3d3fc0b 100644 --- a/schemas/v1/device.schema.json +++ b/schemas/v1/device.schema.json @@ -182,7 +182,7 @@ "provider": { "description": "Provider slug, `owner/name`.", "type": "string", - "pattern": "^[A-Za-z0-9][A-Za-z0-9._-]*/[A-Za-z0-9][A-Za-z0-9._-]*$" + "pattern": "^[A-Za-z0-9][A-Za-z0-9._-]*/[A-Za-z0-9._-]+$" }, "workspace_root": { "description": "Key of the `workspace_roots` entry this checkout sits under. Absent for an out-of-estate checkout, which by ADR 0025 has no declared root.", diff --git a/tests/fixtures/schemas/v1/valid-device.yaml b/tests/fixtures/schemas/v1/valid-device.yaml index 40353d1..bd81826 100644 --- a/tests/fixtures/schemas/v1/valid-device.yaml +++ b/tests/fixtures/schemas/v1/valid-device.yaml @@ -23,3 +23,9 @@ harnesses: state: path: "${XDG_STATE_HOME}/github-device-sync" + +repositories: + - provider: "example-organization/.github" + workspace_root: "organization" + path: "organization/.github" + materialization: "checkout"