Commit 061ada2
feat(server): align ums.api Authorization/Graph with Ums.Sdk.Contracts
Server-side AuthorizationGraph now declares schemaVersion 1.0.0 as a
first-class property, sourced from Ums.Sdk.Contracts.SchemaVersion.Current.
This ensures the wire payload carries the schema version field required
by every SDK runtime's compatibility check (ADR-0074).
Changes
- Ums.Domain.csproj references ../../../libs/sdk/dotnet/Ums.Sdk.Contracts
via ProjectReference. No runtime behavior change beyond the new property.
- Ums.Domain/Authorization/Graph/AuthorizationGraph.cs adds:
public string SchemaVersion { get; init; } = Ums.Sdk.Contracts.SchemaVersion.Current;
with the same default propagated through the Build(...) factory.
Build
- Ums.sln builds clean (Debug + Release).
- 160 pre-existing warnings unchanged.
- Ums.Domain.Test: 708/708 PASS.
- Ums.Application.Test AuthorizationGraphBuilderServiceTests: 7 failures are
PRE-EXISTING on the baseline (confirmed by isolating the change via stash
and re-running). The failures live in SetupFullChain() line 255 and are
unrelated to the schemaVersion addition. They will be addressed in a
separate fix tied to the working-tree Tenant.cs / repository / seeder
changes already in flight.
Non-goals (deferred to a follow-up PR)
- Replacing the server's domain DTOs with Ums.Sdk.Contracts records. The
domain model keeps its types; only the schemaVersion contract field is
surfaced. A future canonicalization pass can adopt the SDK DTOs at the
wire boundary (serializers) once test failures are cleared.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>1 parent 6fedb33 commit 061ada2
2 files changed
Lines changed: 12 additions & 0 deletions
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
19 | 26 | | |
20 | 27 | | |
21 | 28 | | |
| |||
79 | 86 | | |
80 | 87 | | |
81 | 88 | | |
| 89 | + | |
82 | 90 | | |
83 | 91 | | |
84 | 92 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
14 | 18 | | |
15 | 19 | | |
16 | 20 | | |
| |||
0 commit comments