Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion kcidb_io/schema/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
from kcidb_io.schema.v04_01 import Version as V4_1 # noqa: F401
from kcidb_io.schema.v04_02 import Version as V4_2 # noqa: F401
from kcidb_io.schema.v04_03 import Version as V4_3 # noqa: F401
from kcidb_io.schema.v04_04 import Version as V4_4 # noqa: F401

# Legacy versions
V1 = V1_1 # noqa: F401
Expand All @@ -15,4 +16,4 @@
V4 = V4_0 # noqa: F401

# Latest version of the schema
LATEST = V4_3
LATEST = V4_4
3 changes: 3 additions & 0 deletions kcidb_io/schema/abstract.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ def __init__(cls, name, bases, _dict, **kwargs):
for k, v in cls.graph.items())
assert "" in cls.graph

def __str__(cls):
return f"v{cls.major}.{cls.minor}"

def __le__(cls, other):
if isinstance(other, type) and \
(issubclass(cls, other) or issubclass(other, cls)):
Expand Down
2 changes: 1 addition & 1 deletion kcidb_io/schema/v04_01.py
Original file line number Diff line number Diff line change
Expand Up @@ -778,7 +778,7 @@ class Version(PreviousVersion):
"type": "integer",
"description":
"The modification version number of the "
"occurring/absent issue. ",
"occurring/absent issue.",
"minimum": 0,
},
"build_id": {
Expand Down
2 changes: 1 addition & 1 deletion kcidb_io/schema/v04_02.py
Original file line number Diff line number Diff line change
Expand Up @@ -788,7 +788,7 @@ class Version(PreviousVersion):
"type": "integer",
"description":
"The modification version number of the "
"occurring/absent issue. ",
"occurring/absent issue.",
"minimum": 0,
},
"build_id": {
Expand Down
2 changes: 1 addition & 1 deletion kcidb_io/schema/v04_03.py
Original file line number Diff line number Diff line change
Expand Up @@ -843,7 +843,7 @@ class Version(PreviousVersion):
"type": "integer",
"description":
"The modification version number of the "
"occurring/absent issue. ",
"occurring/absent issue.",
"minimum": 0,
},
"build_id": {
Expand Down
Loading