Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DT Schema enhacement #70

Open
caviri opened this issue Apr 8, 2024 · 1 comment
Open

DT Schema enhacement #70

caviri opened this issue Apr 8, 2024 · 1 comment
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@caviri
Copy link
Contributor

caviri commented Apr 8, 2024

Context

Solution

Acceptance Criteria

@caviri caviri added the enhancement New feature or request label Apr 8, 2024
@caviri caviri added this to the v0.3.0 milestone Apr 8, 2024
@caviri
Copy link
Contributor Author

caviri commented May 16, 2024

Data models should be validated using a tool such as pydantic.

Code removed from codebase:

# odtp
# Copyright 2023 - Swiss Data Science Center (SDSC)
# A partnership between École Polytechnique Fédérale de Lausanne (EPFL) and
# Eidgenössische Technische Hochschule Zürich (ETHZ).

from pydantic import BaseModel

from datetime import datetime

class Release(BaseModel):
    """
    This class represents a release of a repository.
    Parameters
    ----------
    tag: str
        The tag of the release.
    date: datetime.datetime
        The date of the release.
    commit_hash: str
        The commit hash of the release.
    """

    tag: str
    date: datetime
    commit_hash: str

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants