From 97c2f3aacb595b8320a419798499de80f04a99db Mon Sep 17 00:00:00 2001 From: Mohsen Azimi <543633+mohsen1@users.noreply.github.com> Date: Fri, 23 Oct 2026 03:39:39 +0200 Subject: [PATCH] Describe the walkthrough view fields The public contract describes every WalkthroughView, WalkthroughGroupView and WalkthroughFileView field (prooflinedev/proofline#4649). scripts/generate.py carries the descriptions into the generated models. --- openapi.public.json | 8 ++++++++ proofline/_generated/models/walkthrough_file_view.py | 8 ++++---- proofline/_generated/models/walkthrough_group_view.py | 6 +++--- proofline/_generated/models/walkthrough_view.py | 2 +- 4 files changed, 16 insertions(+), 8 deletions(-) diff --git a/openapi.public.json b/openapi.public.json index 62d32318..8b975117 100644 --- a/openapi.public.json +++ b/openapi.public.json @@ -6216,6 +6216,7 @@ "WalkthroughFileView": { "properties": { "additions": { + "description": "Lines added.", "format": "int64", "type": "integer" }, @@ -6224,6 +6225,7 @@ "type": "string" }, "deletions": { + "description": "Lines deleted.", "format": "int64", "type": "integer" }, @@ -6243,9 +6245,11 @@ "type": "string" }, "path": { + "description": "The file's path at the head commit.", "type": "string" }, "previous_path": { + "description": "The file's path before a rename. Absent otherwise.", "type": [ "string", "null" @@ -6272,12 +6276,14 @@ "WalkthroughGroupView": { "properties": { "description": { + "description": "What the group changes. Absent when the group has no description.", "type": [ "string", "null" ] }, "files": { + "description": "The group's files.", "items": { "$ref": "#/components/schemas/WalkthroughFileView" }, @@ -6288,6 +6294,7 @@ "type": "string" }, "title": { + "description": "The group's title.", "type": "string" } }, @@ -6309,6 +6316,7 @@ "type": "array" }, "head_sha": { + "description": "The head commit SHA the walkthrough describes.", "type": "string" } }, diff --git a/proofline/_generated/models/walkthrough_file_view.py b/proofline/_generated/models/walkthrough_file_view.py index b202e631..92144d51 100644 --- a/proofline/_generated/models/walkthrough_file_view.py +++ b/proofline/_generated/models/walkthrough_file_view.py @@ -15,15 +15,15 @@ class WalkthroughFileView: """ Attributes: - additions (int): + additions (int): Lines added. change (str): GitHub's change status, upper case, such as `ADDED` or `RENAMED`. - deletions (int): + deletions (int): Lines deleted. generated (bool): Whether `line` is model-authored. line (str): A model sentence, or the deterministic line when there is none. - path (str): + path (str): The file's path at the head commit. depth (None | str | Unset): The route plan's depth tier. Absent for a file the review did not evaluate. - previous_path (None | str | Unset): + previous_path (None | str | Unset): The file's path before a rename. Absent otherwise. skip_class (None | str | Unset): Why the review did not evaluate the file, such as `LOCKFILE` or `REPOSITORY_FILTER`. """ diff --git a/proofline/_generated/models/walkthrough_group_view.py b/proofline/_generated/models/walkthrough_group_view.py index 8782fdfe..7bd1d838 100644 --- a/proofline/_generated/models/walkthrough_group_view.py +++ b/proofline/_generated/models/walkthrough_group_view.py @@ -19,11 +19,11 @@ class WalkthroughGroupView: """ Attributes: - files (list[WalkthroughFileView]): + files (list[WalkthroughFileView]): The group's files. kind (str): `FEATURE`, `FIX`, `REFACTOR`, `CONFIGURATION`, `INFRASTRUCTURE`, `DATA`, `DEPENDENCIES`, `TESTS` or `DOCS`. - title (str): - description (None | str | Unset): + title (str): The group's title. + description (None | str | Unset): What the group changes. Absent when the group has no description. """ files: list[WalkthroughFileView] diff --git a/proofline/_generated/models/walkthrough_view.py b/proofline/_generated/models/walkthrough_view.py index 05c079b8..2c804fad 100644 --- a/proofline/_generated/models/walkthrough_view.py +++ b/proofline/_generated/models/walkthrough_view.py @@ -20,7 +20,7 @@ class WalkthroughView: Attributes: groups (list[WalkthroughGroupView]): Groups in reading order. - head_sha (str): + head_sha (str): The head commit SHA the walkthrough describes. """ groups: list[WalkthroughGroupView]