Skip to content

Commit

Permalink
Merge pull request #259 from mlte-team/feature/report-artifact
Browse files Browse the repository at this point in the history
Report Artifact Refactor
  • Loading branch information
turingcompl33t authored Sep 20, 2023
2 parents 0a2f6f4 + 0a8355d commit f8b1793
Show file tree
Hide file tree
Showing 24 changed files with 2,685 additions and 1,078 deletions.
7 changes: 6 additions & 1 deletion mlte/artifact/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
from mlte.artifact.type import ArtifactType
from mlte.model import BaseModel
from mlte.negotiation.model import NegotiationCardModel
from mlte.report.model import ReportModel
from mlte.spec.model import SpecModel
from mlte.validation.model import ValidatedSpecModel
from mlte.value.model import ValueModel
Expand All @@ -36,6 +37,10 @@ class ArtifactModel(BaseModel):
"""The artifact header."""

body: Union[
NegotiationCardModel, ValueModel, SpecModel, ValidatedSpecModel
NegotiationCardModel,
ValueModel,
SpecModel,
ValidatedSpecModel,
ReportModel,
] = Field(..., discriminator="artifact_type")
"""The artifact body."""
3 changes: 3 additions & 0 deletions mlte/artifact/type.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,6 @@ class ArtifactType(str, Enum):

VALIDATED_SPEC = auto()
"""The validated specification artifact type."""

REPORT = auto()
"""The report artifact type."""
Loading

0 comments on commit f8b1793

Please sign in to comment.