Skip to content

Commit be93bb2

Browse files
committed
fix(models): Purl for snippet choices should be optional
Signed-off-by: Helio Chissini de Castro <helio.chissini.de.castro@cariad.technology>
1 parent 0a0d496 commit be93bb2

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "uv_build"
44

55
[project]
66
name = "python-ort"
7-
version = "0.8.7"
7+
version = "0.8.8"
88
description = "A Python Ort model serialization library"
99
readme = "README.md"
1010
license = "MIT"

src/ort/models/config/snippet/snippet_choice.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ class Choice(BaseModel):
3030
model_config = ConfigDict(
3131
extra="forbid",
3232
)
33-
purl: PurlType = Field(
34-
...,
33+
purl: PurlType | None = Field(
34+
default=None,
3535
description="The purl of the snippet chosen by this snippet choice."
3636
"If [reason] is [SnippetChoiceReason.NO_RELEVANT_FINDING], it is null.",
3737
)

uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)