Skip to content

Commit 68f3dce

Browse files
chore(api): mirror the projects v2 contract adoption from the data repo
apps/api/gitsheets/ matches codeforphilly-data#empty after adopting codeforphilly.org/projects/v2, so test data repos open projects in declared mode. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01TGqwPjt3v4eMfiHpPmCKnR
1 parent 615a00b commit 68f3dce

3 files changed

Lines changed: 11 additions & 2 deletions

File tree

apps/api/gitsheets/contracts/codeforphilly.org/projects/v1.toml renamed to apps/api/gitsheets/contracts/codeforphilly.org/projects/v2.toml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"$id" = "https://codeforphilly.org/projects/v1"
1+
"$id" = "https://codeforphilly.org/projects/v2"
22
"$schema" = "http://json-schema.org/draft-07/schema#"
33
required = ["createdAt", "id", "slug", "title", "updatedAt"]
44
title = "Project"
@@ -13,6 +13,11 @@ format = "date-time"
1313
pattern = '^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z|([+-](?:[01]\d|2[0-3]):[0-5]\d)))$'
1414
type = "string"
1515

16+
[properties.createdById]
17+
format = "uuid"
18+
pattern = "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
19+
type = "string"
20+
1621
[properties.deletedAt]
1722
format = "date-time"
1823
pattern = '^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z|([+-](?:[01]\d|2[0-3]):[0-5]\d)))$'

‎apps/api/gitsheets/contracts/sources.toml‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,10 @@ source = "https://raw.githubusercontent.com/CodeForPhilly/codeforphilly-ng/a60d2
7070
adopted = 2026-10-14T03:31:29.88Z
7171
source = "https://raw.githubusercontent.com/CodeForPhilly/codeforphilly-ng/7fe6b81a0bbd05b7a4e6896d55e181fdb61cfe42/contracts/codeforphilly.org/projects/v1.json"
7272

73+
["codeforphilly.org/projects/v2"]
74+
adopted = 2026-10-15T17:47:46.895Z
75+
source = "https://raw.githubusercontent.com/CodeForPhilly/codeforphilly-ng/38870322de7e4f243a87e02d62b0603bd42498dc/contracts/codeforphilly.org/projects/v2.json"
76+
7377
["codeforphilly.org/revocations/v1"]
7478
adopted = 2026-10-14T03:31:32.497Z
7579
source = "https://raw.githubusercontent.com/CodeForPhilly/codeforphilly-ng/7fe6b81a0bbd05b7a4e6896d55e181fdb61cfe42/contracts/codeforphilly.org/revocations/v1.json"

‎apps/api/gitsheets/projects.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
[gitsheet]
22
root = 'projects'
33
path = '${{ slug }}'
4-
implements = ["codeforphilly.org/projects/v1"]
4+
implements = ["codeforphilly.org/projects/v2"]

0 commit comments

Comments
 (0)