Mashumaro fails to generate the schema when encountering a field that is annotated with a type that was declared with the type keyword.
File "venv/lib/python3.13/site-packages/mashumaro/jsonschema/builder.py", line 51, in build_json_schema
schema = get_schema(instance, context, with_dialect_uri=with_dialect_uri)
File "venv/lib/python3.13/site-packages/mashumaro/jsonschema/schema.py", line 270, in get_schema
schema = schema_creator(instance, ctx)
File "venv/lib/python3.13/site-packages/mashumaro/jsonschema/schema.py", line 747, in on_collection
if not issubclass(instance.origin_type, Collection):
~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<frozen abc>", line 123, in __subclasscheck__
TypeError: issubclass() arg 1 must be a class
Description
Mashumaro fails to generate the schema when encountering a field that is annotated with a type that was declared with the
typekeyword.What I Did
Traceback:
The same error also occurs when using the type in a field for a
TypedDictor@dataclass.