def METHOD_NAME(petstore_dict):
    category_spec = petstore_dict['definitions']['Category']
    category_spec['properties']['id']['type'] = 'notAValidType'
    petstore_spec = Spec.from_dict(
        petstore_dict,
        config={'use_models': False, 'validate_swagger_spec': False},
    )
    with pytest.raises(SwaggerMappingError):
        unmarshal_schema_object(
            petstore_spec,
            category_spec,
            {'id': 200, 'name': 'short-hair'},
        )