Skip to content

Commit

Permalink
feat: add JSONMetadata
Browse files Browse the repository at this point in the history
  • Loading branch information
tklockau committed Nov 4, 2024
1 parent 274ba73 commit 7b73544
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions raillabel/json_format/metadata.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Copyright DB InfraGO AG and contributors
# SPDX-License-Identifier: Apache-2.0

from __future__ import annotations

from typing import Literal

from pydantic import BaseModel


class JSONMetadata(BaseModel):
"""Metadata about the annotation file itself."""

schema_version: Literal["1.0.0"]
"Version number of the OpenLABEL schema this annotation file follows."

name: str | None
"Name of the OpenLABEL annotation content."

subschema_version: str | None
"Version number of the RailLabel subschema this annotation file follows."

exporter_version: str | None
"Version identifyer of the exporter software."

file_version: str | None
"Version number of the OpenLABEL annotation content."

tagged_file: str | None
"File name or URI of the data file being tagged."

comment: str | None
"Additional information or description about the annotation content."

0 comments on commit 7b73544

Please sign in to comment.