Skip to content

Commit db89f1f

Browse files
authored
fix: correct version references (#217)
This feature belongs in v0.9.21, not v0.9.22. Updated: - schema_set_version in VERSION.json - TypeScript comments in schema package - Guard script comment
1 parent 86e5994 commit db89f1f

6 files changed

Lines changed: 9 additions & 9 deletions

File tree

packages/schema/src/envelope.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export interface AuthContext {
2828
ctx?: ContextMetadata;
2929
/** Subject profile snapshot for policy evaluation (v0.9.17+) */
3030
subject_snapshot?: SubjectProfileSnapshot;
31-
/** Namespaced extensions (v0.9.22+) */
31+
/** Namespaced extensions (v0.9.21+) */
3232
extensions?: Extensions;
3333
}
3434

@@ -53,9 +53,9 @@ export interface EvidenceBlock {
5353
payment?: PaymentEvidence;
5454
attestation?: AttestationEvidence;
5555
payments?: PaymentEvidence[];
56-
/** Generic attestations (v0.9.22+) */
56+
/** Generic attestations (v0.9.21+) */
5757
attestations?: Attestation[];
58-
/** Namespaced extensions (v0.9.22+) */
58+
/** Namespaced extensions (v0.9.21+) */
5959
extensions?: Extensions;
6060
}
6161

packages/schema/src/evidence.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ export interface AttestationEvidence {
330330
* This is a generic slot for third-party claims. Specific attestation
331331
* types (like risk_assessment) define their evidence schema by convention.
332332
*
333-
* v0.9.22+: Added in schema_set_version 0.9.22.
333+
* v0.9.21+: Added in schema_set_version 0.9.21.
334334
*/
335335
export interface Attestation {
336336
/**
@@ -415,7 +415,7 @@ export interface Attestation {
415415
* This provides a forward-compatible extension mechanism for all blocks
416416
* that use `additionalProperties: false`.
417417
*
418-
* v0.9.22+: Added in schema_set_version 0.9.22.
418+
* v0.9.21+: Added in schema_set_version 0.9.21.
419419
*/
420420
export interface Extensions {
421421
[key: string]: JsonValue;

packages/schema/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export {
5454
SubjectTypeSchema,
5555
SubjectProfileSchema,
5656
SubjectProfileSnapshotSchema,
57-
// Attestation validators (v0.9.22+)
57+
// Attestation validators (v0.9.21+)
5858
AttestationSchema,
5959
ExtensionsSchema,
6060
// Subject snapshot validation helper (v0.9.17+)

packages/schema/src/validators.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ export const SubjectProfileSnapshotSchema = z
277277
.strict();
278278

279279
// -----------------------------------------------------------------------------
280-
// Attestation Validators (v0.9.22+)
280+
// Attestation Validators (v0.9.21+)
281281
// -----------------------------------------------------------------------------
282282

283283
/**

scripts/guard.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ fi
4141

4242
echo "== field regressions (typos) =="
4343
# Catch common misspellings of 'receipt' and legacy field names (intentionally spelled wrong below)
44-
# Note: issued_at is valid for Attestation type (v0.9.22+), exclude attestation-related files
44+
# Note: issued_at is valid for Attestation type (v0.9.21+), exclude attestation-related files
4545
LEGACY_FIELD_FILES='^(ex/|profiles/|scripts/guard\.sh|CHANGELOG\.md|docs/(migration/|MIGRATION_|PEAC_NORMATIVE_DECISIONS_LOG\.md|PEAC_v0\.9\.15_ACTUAL_SCOPE\.md|interop\.md)|specs/(wire/|conformance/)|packages/schema/src/(evidence|validators)\.ts)'
4646
if git grep -nE '\bissued_at\b|payment\.scheme|peacrece?i?e?pt(s)?\b' -- ':!node_modules' ':!archive/**' \
4747
| grep -vE "$LEGACY_FIELD_FILES" | grep .; then

specs/wire/VERSION.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"$comment": "PEAC Wire Format Schema Version Metadata. schema_set_version tracks the JSON Schema definitions independently of npm package versions.",
33
"wire_format": "peac.receipt/0.9",
4-
"schema_set_version": "0.9.22",
4+
"schema_set_version": "0.9.21",
55
"json_schema_draft": "2020-12",
66
"last_updated": "2025-12-31",
77
"status": "stable",

0 commit comments

Comments
 (0)