Your message dated Thu, 04 Jun 2026 14:38:43 +0000
with message-id <[email protected]>
and subject line Bug#1136391: fixed in json-schema-to-pydantic 0.4.11-1.1
has caused the Debian Bug report #1136391,
regarding FTBFS: tests fail with pydantic 2.13
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
1136391: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1136391
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: json-schema-to-pydantic
Version: 0.4.11-1
Severity: serious
Tags: ftbfs

json-schema-to-pydantic's tests fail with pydantic 2.13 in unstable (on 
both Python 3.13 and 3.14).  Let me know if you need help puzzling this 
out.

=================================== FAILURES ===================================
_____________________________ test_one_of_with_ref _____________________________

    def test_one_of_with_ref():
        """Test oneOf handler with a $ref."""
        handler = create_handler()

        root_schema = {
            "$defs": {
                "Cat": {
                    "type": "object",
                    "properties": {
                        "type": {"const": "cat", "description": "Type 
discriminator"},
                        "meow_volume": {"type": "integer"},
                    },
                    "required": ["type", "meow_volume"],
                }
            }
        }
        schema = {
            "oneOf": [
                {
                    "type": "object",
                    "properties": {
                        "type": {"const": "dog"},
                        "bark_pitch": {"type": "string"},
                    },
                    "required": ["type", "bark_pitch"],
                },
                {"$ref": "#/$defs/Cat"},
            ]
        }

        model = handler.handle_one_of(schema["oneOf"], root_schema)
        assert issubclass(model, RootModel)

        # Test dog variant
        dog_instance = model(root={"type": "dog", "bark_pitch": "high"})
        assert dog_instance.root.type == "dog"
        assert dog_instance.root.bark_pitch == "high"

        # Test cat variant (resolved from $ref)
        cat_instance = model(root={"type": "cat", "meow_volume": 10})
        assert cat_instance.root.type == "cat"
        assert cat_instance.root.meow_volume == 10

        # Check field descriptions from referenced schema
        # Access the Union arguments inside Annotated: 
annotation.__args__[0].__args__
>       union_args = model.model_fields["root"].annotation.__args__[0].__args__
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

tests/test_handlers.py:502:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <class 'json_schema_to_pydantic.handlers.Variant_dog'>, item = '__args__'

    def __getattr__(self, item: str) -> Any:
        """This is necessary to keep attribute access working for class 
attribute access."""
        private_attributes = self.__dict__.get('__private_attributes__')
        if private_attributes and item in private_attributes:
            return private_attributes[item]
>       raise AttributeError(item)
E       AttributeError: __args__

/usr/lib/python3/dist-packages/pydantic/_internal/_model_construction.py:290: 
AttributeError
_________________________ test_one_of_populate_by_name _________________________

    def test_one_of_populate_by_name():
        """Test oneOf handler with populate_by_name=True."""
        handler = create_handler()

        schema = {
            "oneOf": [
                {
                    "type": "object",
                    "properties": {
                        "type": {"const": "user"},
                        "username": {"type": "string", "alias": "user_name"},
                    },
                    "required": ["type", "username"],
                },
                {
                    "type": "object",
                    "properties": {
                        "type": {"const": "admin"},
                        "admin_level": {"type": "integer", "alias": 
"adminLevel"},
                    },
                    "required": ["type", "admin_level"],
                },
            ]
        }

        model = handler.handle_one_of(
            schema["oneOf"],
            {},
            populate_by_name=True,
        )

        from typing import get_args

>       types = get_args(model.model_fields["root"].annotation)[0].__args__
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

tests/test_handlers.py:862:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <class 'json_schema_to_pydantic.handlers.Variant_user'>
item = '__args__'

    def __getattr__(self, item: str) -> Any:
        """This is necessary to keep attribute access working for class 
attribute access."""
        private_attributes = self.__dict__.get('__private_attributes__')
        if private_attributes and item in private_attributes:
            return private_attributes[item]
>       raise AttributeError(item)
E       AttributeError: __args__

/usr/lib/python3/dist-packages/pydantic/_internal/_model_construction.py:290: 
AttributeError
=============================== warnings summary ===============================
tests/test_model_builder.py::test_json_schema_extra_with_user_example
  
/build/reproducible-path/json-schema-to-pydantic-0.4.11/.pybuild/cpython3_3.14_json-schema-to-pydantic/build/tests/test_model_builder.py:560:
 PydanticDeprecatedSince20: Using extra keyword arguments on `Field` is 
deprecated and will be removed. Use `json_schema_extra` instead. (Extra keys: 
'is_core_field'). Deprecated in Pydantic V2.0 to be removed in V3.0. See 
Pydantic V2 Migration Guide at https://errors.pydantic.dev/2.13/migration/
    v: int = Field(..., description="This is a field", is_core_field=True)

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
=========================== short test summary info ============================
FAILED tests/test_handlers.py::test_one_of_with_ref - AttributeError: __args__
FAILED tests/test_handlers.py::test_one_of_populate_by_name - AttributeError:...

Thanks,

-- 
Colin Watson (he/him)                              [[email protected]]

--- End Message ---
--- Begin Message ---
Source: json-schema-to-pydantic
Source-Version: 0.4.11-1.1
Done: Bastian Germann <[email protected]>

We believe that the bug you reported is fixed in the latest version of
json-schema-to-pydantic, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Bastian Germann <[email protected]> (supplier of updated json-schema-to-pydantic 
package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Thu, 04 Jun 2026 16:00:58 +0200
Source: json-schema-to-pydantic
Architecture: source
Version: 0.4.11-1.1
Distribution: unstable
Urgency: medium
Maintainer: Antoine Beaupré <[email protected]>
Changed-By: Bastian Germann <[email protected]>
Closes: 1136391
Changes:
 json-schema-to-pydantic (0.4.11-1.1) unstable; urgency=medium
 .
   * Non-maintainer upload
 .
   [ Shanavas M ]
   * Fix build failure (Closes: #1136391)
Checksums-Sha1:
 1a042399a7b06c4a49a7a57f4d1e83de76a6cf64 2108 
json-schema-to-pydantic_0.4.11-1.1.dsc
 d7d461352bb6dd11ac7882be54a78795b959f3f7 3056 
json-schema-to-pydantic_0.4.11-1.1.debian.tar.xz
 d46e8be846202c753da3d646c320d132022d05b5 7651 
json-schema-to-pydantic_0.4.11-1.1_source.buildinfo
Checksums-Sha256:
 4b64aaba41feb7b21db7acad2c8e51fd4e81a61936bfbf0dafc40c43f6223a60 2108 
json-schema-to-pydantic_0.4.11-1.1.dsc
 5710c658bdf89eb649122464c0cc9fe2f1a9348ff0dd1d4d413da20dc57bb5b8 3056 
json-schema-to-pydantic_0.4.11-1.1.debian.tar.xz
 4be4effc6bd9e71824d2d96d951cb1a8eca378957d9e8adfee69962252085be4 7651 
json-schema-to-pydantic_0.4.11-1.1_source.buildinfo
Files:
 26b8413970135f57551215c70f8a91d3 2108 python optional 
json-schema-to-pydantic_0.4.11-1.1.dsc
 bf10e613340b61ab7551160214140cc1 3056 python optional 
json-schema-to-pydantic_0.4.11-1.1.debian.tar.xz
 9fd48af2d410fd52736bc4578c84cc66 7651 python optional 
json-schema-to-pydantic_0.4.11-1.1_source.buildinfo

-----BEGIN PGP SIGNATURE-----

iQHEBAEBCgAuFiEEQGIgyLhVKAI3jM5BH1x6i0VWQxQFAmohhWIQHGJhZ2VAZGVi
aWFuLm9yZwAKCRAfXHqLRVZDFFX8DAD31YIWRtoe+SmbqVHAmeJAoOt1LcRMK/NS
olb9cIp3oLj4aZJcuYMC2AtMGXzHMqKt433eag+/pBocLiOiBaGvLylNckkaueX0
vBw32MQ1kwQ3h1G9ao8CYkqbD6niwFrmjvzzGR9e8l1KuLmPZeBzTuwbvx+BQE6b
Hx7fq53BYlhRPaLDDmQsz0CKLw9iWKfDWnfMrnaaCYK28IWRlawpcR7dUJcK8IVk
U6qIVtZjfyvR3z+z4WBeuNVCkeKTPFhazrujJaH1eam9dqx6FX/pipqY+yV/+48b
uHlkzZvit1jbAGjcaeLdBRw7+DxH7h6VBei3TkuwYS/9Xo+5AZEZT2VbOfGl3dLc
kCTpJjdMMJplFx6/Z9KmCnIp2WeD+DVam8l2ZZQACeFpJI1kG53tYQSjUXuC2aba
16/EjanyiLe+/kqkm4TPNWEm12rhi6c7v7pyfRoiN6/Ooh4Z2Zn+FK8hECZ+KX0R
nrreGqEHPIA4JLL3P3CXap5M9QSHyaA=
=H1AZ
-----END PGP SIGNATURE-----

Attachment: pgpkNuLSY59wq.pgp
Description: PGP signature


--- End Message ---

Reply via email to