Source code for dmr.openapi.objects.tag
from dataclasses import dataclass
from typing import TYPE_CHECKING
if TYPE_CHECKING:
from dmr.openapi.objects.external_documentation import ExternalDocumentation
[docs]
@dataclass(kw_only=True, slots=True)
class Tag:
"""
Adds metadata to a single tag that is used by the `Operation` object.
It is not mandatory to have a `Tag` object per tag defined in the
`Operation` object instances.
"""
name: str
description: str | None = None
external_docs: 'ExternalDocumentation | None' = None