Skip to content

Commit b0b8089

Browse files
committed
Update model.py to deprecate mustBeGreaterThanOrEqualTo and mustBeLessThanOrEqualTo; bump version to 1.2.2
1 parent 13d80c4 commit b0b8089

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "datacontract-specification"
3-
version = "1.2.1" # in sync with spec
3+
version = "1.2.2" # in sync with spec
44
description = "The Pydantic Model of the Data Contract Specification"
55
readme = "README.md"
66
authors = [

src/datacontract_specification/model.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,9 +179,17 @@ class Quality(pyd.BaseModel):
179179
mustBe: float | int | None = None
180180
mustNotBe: float | int | None = None
181181
mustBeGreaterThan: float | int | None = None
182+
mustBeGreaterThanOrEqualTo: float | int | None = pyd.Field(
183+
default=None,
184+
deprecated="Removed in Data Contract Specification v1.2.0. Use mustBeGreaterOrEqualTo instead.",
185+
)
182186
mustBeGreaterOrEqualTo: float | int | None = None
183187
mustBeLessThan: float | int | None = None
184188
mustBeLessOrEqualTo: float | int | None = None
189+
mustBeGreaterThanOrEqualTo: float | int | None = pyd.Field(
190+
default=None,
191+
deprecated="Removed in Data Contract Specification v1.2.1. Use mustBeLessOrEqualTo instead.",
192+
)
185193
mustBeBetween: List[float | int] = None
186194
mustNotBeBetween: List[float | int] = None
187195
engine: str | None = None

0 commit comments

Comments
 (0)