diff --git a/litestar/openapi/spec/schema.py b/litestar/openapi/spec/schema.py index cb998ead8e..f54c483e9a 100644 --- a/litestar/openapi/spec/schema.py +++ b/litestar/openapi/spec/schema.py @@ -658,6 +658,9 @@ def field_aliases(cls) -> dict[str, str]: cls._field_aliases = retval # type: ignore[attr-defined] return retval + def __eq__(self, other: "Schema"): + return super().__eq__(other) + @dataclass class SchemaDataContainer(Schema):