Skip to content

Commit 3b73b3d

Browse files
committed
fix some redundancy based on copilot PR review
1 parent 7c6c2a1 commit 3b73b3d

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

data/schema/v2/Decision_Point_Value_Selection-2-0-0.schema.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@
118118
"description": "Timestamp of when the selections were made, in ISO 8601 format.",
119119
"examples": [
120120
"2025-01-01T12:00:00Z",
121-
"2025-01-02T15:30:45Z"
121+
"2025-01-02T15:30:45-04:00"
122122
],
123123
"title": "Timestamp"
124124
}

src/ssvc/selection.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ class MinimalSelectionList(BaseModel):
8686
timestamp: Optional[datetime] = Field(
8787
...,
8888
description="Timestamp of when the selections were made, in ISO 8601 format.",
89-
examples=["2025-01-01T12:00:00Z", "2025-01-02T15:30:45Z"],
89+
examples=["2025-01-01T12:00:00Z", "2025-01-02T15:30:45-04:00"],
9090
)
9191

9292
def add_selection(self, selection: MinimalSelection) -> None:
@@ -133,9 +133,8 @@ def main() -> None:
133133
a1 = selection_from_decision_point(dp1)
134134
a2 = selection_from_decision_point(dp2)
135135
selections = MinimalSelectionList(
136-
schemaVersion="2.0.0", selections=[a1, a2], timestamp=datetime.now()
136+
schemaVersion=SCHEMA_VERSION, selections=[a1, a2], timestamp=datetime.now()
137137
)
138-
selections.timestamp = datetime.now()
139138

140139
print(selections.model_dump_json(indent=2, exclude_none=True))
141140

0 commit comments

Comments
 (0)