rlsbl v0.40.1 /rlsbl.changelog.schema
On this page

JSONL changelog entry schema providing the dataclass definition, JSON parsing, serialization, field validation, and type coercion.

#rlsbl.changelog.schema

#rlsbl.changelog.schema

JSONL changelog entry schema providing the dataclass definition, JSON parsing, serialization, field validation, and type coercion.

#ChangelogEntry

One line in a .jsonl changelog file.

#validate_schema

python
def validate_schema(entry: ChangelogEntry) -> list[str]

Return a list of schema errors for the entry. Empty list means valid.

#parse_entry

python
def parse_entry(line: str) -> ChangelogEntry

Parse one JSON line into a ChangelogEntry.

Raises ValueError on malformed JSON or missing required fields.

#serialize_entry

python
def serialize_entry(entry: ChangelogEntry) -> str

Serialize a ChangelogEntry to one JSON line (no trailing newline).

Only includes non-None optional fields to keep lines compact.

#parse_jsonl

python
def parse_jsonl(path: str) -> list[ChangelogEntry]

Read a .jsonl file and return a list of ChangelogEntry objects.

Raises ValueError with line number on malformed JSON.