Skip to content

[Bug]: the lakefs api for fetching pull requests seems to not return the field description #9760

@kasmihmed

Description

@kasmihmed

What happened?

the lakefs api for fetching pull requests seems to not return the field description, which makes the usage of PullsApi.list_pull_requests crashes since it expects the description to be there according to lakefs_sdk.models.pull_request.PullRequest

Expected behavior

No response

lakeFS version

1.66

How lakeFS is installed

docker

Affected clients

sdk 1.66.0

Relevant log output

validation_error = ValidationError(model='PullRequest', errors=[{'loc': ('description',), 'msg': 'none is not an allowed value', 'type': 'type_error.none.not_allowed'}])

    def __init__(__pydantic_self__, **data: Any) -> None:
        """
        Create a new model by parsing and validating input data from keyword arguments.
    
        Raises ValidationError if the input data cannot be parsed to form a valid model.
        """
        # Uses something other than `self` the first arg to allow "self" as a settable attribute
        values, fields_set, validation_error = validate_model(__pydantic_self__.__class__, data)
        if validation_error:
>           raise validation_error
E           pydantic.v1.error_wrappers.ValidationError: 1 validation error for PullRequest
E           description
E             none is not an allowed value (type=type_error.none.not_allowed)

Contact details

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions