def METHOD_NAME(no_warnings):
    # https://openapi-generator.tech/docs/swagger-codegen-migration#body-parameter-name
    # https://github.com/OpenAPITools/openapi-generator/issues/729
    class UserSerializer(serializers.Serializer):
        name = serializers.CharField()
        age = serializers.IntegerField(min_value=0)
    @extend_schema(
        request=UserSerializer,
        responses=UserSerializer,
        extensions={'x-codegen-request-body-name': 'body'},
    )
    @api_view(['PATCH'])
    def view_func(request, format=None):
        pass  # pragma: no cover
    schema = generate_schema('x', view_function=view_func)
    operation = schema['paths']['/x']['patch']
    assert get_request_schema(operation)['$ref'] == '#/components/schemas/PatchedUser'
    assert operation['x-codegen-request-body-name'] == 'body'