def test_type_alias_type_with_metadata() -> None:
    """Same as `test_type_alias_type_with_serialization()` but with JSON Metadata."""

    A = TypeAliasType('A', int)
    B = TypeAliasType('B', Annotated[A, WithJsonSchema({'type': 'int', 'extra': 1})])

    ta = TypeAdapter(B)
    assert ta.json_schema() == {'type': 'int', 'extra': 1}
Same as `test_type_alias_type_with_serialization()` but with JSON Metadata.
tests/test_type_alias_type.py