diff --git a/tests/integration/unmarshalling/test_unmarshallers.py b/tests/integration/unmarshalling/test_unmarshallers.py index f770eda0..060f19cb 100644 --- a/tests/integration/unmarshalling/test_unmarshallers.py +++ b/tests/integration/unmarshalling/test_unmarshallers.py @@ -73,6 +73,23 @@ def test_no_type(self, unmarshallers_factory, value): assert result == value + @pytest.mark.parametrize( + "factory", + [ + oas30_write_schema_unmarshallers_factory, + oas31_schema_unmarshallers_factory, + ], + ) + def test_no_type_object_with_array_of_null(self, factory): + schema = {} + spec = SchemaPath.from_dict(schema) + unmarshaller = factory.create(spec) + value = {"foo": [None]} + + result = unmarshaller.unmarshal(value) + + assert result == value + @pytest.mark.parametrize( "type,value", [