INNER CODE UNIT · Python

DanglingRefWarning

koxudaxi/datamodel-code-generator · src/datamodel_code_generator/__init__.py:551

class DanglingRefWarning(UserWarning):
    """Warn that a local JSON pointer target was not found."""


class DefaultValueTypeWarning(UserWarning):
    """Warn that a generated default is still serialized instead of its runtime type."""


class InvalidClassNameError(Error):
    """Raised when a schema title cannot be converted to a valid Python class name."""

    def __init__(self, class_name: str) -> None:
        """Initialize with class name."""
        self.class_name = class_name
        message = f"title={class_name!r} is invalid class name."
        super().__init__(message=message)

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…