Skip to content

Entry

Bases: Reference

Represents an entry in a list or table.

PARAMETER DESCRIPTION
reference_id

Reference ID to identify the object.

TYPE: int

language

The language of the identifier, if known.

TYPE: Language | None DEFAULT: None

value

The value of the identifier. Must be a non-empty string.

TYPE: str

Source code in werk24/models/v2/models.py
class Entry(Reference):
    """
    Represents an entry in a list or table.
    """

    language: Optional[Language] = Field(
        None,
        description="The language of the identifier, if known.",
        examples=[Language.ENG, Language.DEU],
    )

    value: str = Field(
        ...,
        description="The value of the identifier. Must be a non-empty string.",
        examples=["12345-ABC"],
    )