8000 Add LEI description by ggravlingen · Pull Request #360 · ggravlingen/pygleif · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Add LEI description #360

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

Merged
merged 1 commit into from
Sep 8, 2024
Merged
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
13 changes: 11 additions & 2 deletions pygleif/api/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,17 @@
from datetime import datetime
from typing import Any

from pydantic import Field

from .shared import BaseSchema

DESCRIPTION_VALUES: dict[str, str] = {
"lei": (
"The LEI code is a 20-character, alpha-numeric code that defines the ISO "
"17442 compatible identifier for the legal entity."
),
}


class ValidatedAt(BaseSchema):
"""Represent validated at information."""
Expand All @@ -30,7 +39,7 @@ class Registration(BaseSchema):
class GeneralEntity(BaseSchema):
"""Represent a general entity ."""

lei: str | None
lei: str | None = Field(..., description=DESCRIPTION_VALUES["lei"])
name: str | None


Expand Down Expand Up @@ -105,7 +114,7 @@ class Attributes(BaseSchema):
"""Represent attribute information."""

bic: list[str] | None
lei: str
lei: str = Field(..., description=DESCRIPTION_VALUES["lei"])
entity: Entity
registration: Registration

Expand Down
Loading
0