-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
33 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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." |