Skip to content

Commit ea04f5c

Browse files
committed
Add .gitattributes for JSON files and update schema digest across multiple files to reflect the new hash value.
1 parent d954056 commit ea04f5c

6 files changed

Lines changed: 7 additions & 5 deletions

File tree

.gitattributes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
api/schema/*.json text eol=lf
2+
internal/schema/schema/*.json text eol=lf

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ This remains the simple stable topology artifact for file-based users and downst
2727
- `name`: `io.mb3r.bering.snapshot`
2828
- `version`: `1.0.0`
2929
- `uri`: `https://mb3r-lab.github.io/Bering/schema/snapshot/v1.0.0/snapshot.schema.json`
30-
- `digest`: `sha256:e698d5d313b48a93fc4fa77036db11b3836636e5a8852406f3a4800e527fb9b1`
30+
- `digest`: `sha256:87e4e887ed4a37b72f6136e268b73552eccb92941c4de2c6f3a514dd066ea972`
3131

3232
This wraps the core model with runtime window metadata, ingest counts, support summaries, provenance, and topology diffs.
3333

examples/outputs/bering-snapshot.normalized.sample.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@
298298
"confidence": 0.94,
299299
"emitted_at": "2026-03-03T00:00:00Z",
300300
"schema": {
301-
"digest": "sha256:e698d5d313b48a93fc4fa77036db11b3836636e5a8852406f3a4800e527fb9b1",
301+
"digest": "sha256:87e4e887ed4a37b72f6136e268b73552eccb92941c4de2c6f3a514dd066ea972",
302302
"name": "io.mb3r.bering.snapshot",
303303
"uri": "https://mb3r-lab.github.io/Bering/schema/snapshot/v1.0.0/snapshot.schema.json",
304304
"version": "1.0.0"

internal/schema/constants.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const (
99
ExpectedSnapshotSchemaName = "io.mb3r.bering.snapshot"
1010
ExpectedSnapshotSchemaVersion = "1.0.0"
1111
ExpectedSnapshotSchemaURI = "https://mb3r-lab.github.io/Bering/schema/snapshot/v1.0.0/snapshot.schema.json"
12-
ExpectedSnapshotSchemaDigest = "sha256:e698d5d313b48a93fc4fa77036db11b3836636e5a8852406f3a4800e527fb9b1"
12+
ExpectedSnapshotSchemaDigest = "sha256:87e4e887ed4a37b72f6136e268b73552eccb92941c4de2c6f3a514dd066ea972"
1313
)
1414

1515
type SchemaRef struct {

internal/schema/validator_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ func TestValidateSnapshotJSON_Success(t *testing.T) {
100100
"name":"io.mb3r.bering.snapshot",
101101
"version":"1.0.0",
102102
"uri":"https://mb3r-lab.github.io/Bering/schema/snapshot/v1.0.0/snapshot.schema.json",
103-
"digest":"sha256:e698d5d313b48a93fc4fa77036db11b3836636e5a8852406f3a4800e527fb9b1"
103+
"digest":"sha256:87e4e887ed4a37b72f6136e268b73552eccb92941c4de2c6f3a514dd066ea972"
104104
}
105105
}
106106
}`)

internal/snapshot/snapshot_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ func sampleEnvelope(windowEnd string, services []ServiceRecord) Envelope {
7070
SourceRef: "bering://serve",
7171
EmittedAt: end.Format(time.RFC3339),
7272
Confidence: 0.7,
73-
Schema: model.SchemaRef{Name: "io.mb3r.bering.snapshot", Version: "1.0.0", URI: "https://mb3r-lab.github.io/Bering/schema/snapshot/v1.0.0/snapshot.schema.json", Digest: "sha256:e698d5d313b48a93fc4fa77036db11b3836636e5a8852406f3a4800e527fb9b1"},
73+
Schema: model.SchemaRef{Name: "io.mb3r.bering.snapshot", Version: "1.0.0", URI: "https://mb3r-lab.github.io/Bering/schema/snapshot/v1.0.0/snapshot.schema.json", Digest: "sha256:87e4e887ed4a37b72f6136e268b73552eccb92941c4de2c6f3a514dd066ea972"},
7474
},
7575
}
7676
}

0 commit comments

Comments
 (0)