Skip to content

Fix valid_data being a list when many=False#200

Open
RazerM wants to merge 1 commit into
marshmallow-code:mainfrom
RazerM:fix/valid-data
Open

Fix valid_data being a list when many=False#200
RazerM wants to merge 1 commit into
marshmallow-code:mainfrom
RazerM:fix/valid-data

Conversation

@RazerM

@RazerM RazerM commented Aug 9, 2024

Copy link
Copy Markdown

ValidationError.valid_data is always a list, even if many=False.

I've added a test for both cases, one of which fails without the change I made.

@luup2k

luup2k commented Oct 31, 2024

Copy link
Copy Markdown

@lafrech please could you merge ?

@lafrech

lafrech commented Oct 31, 2024

Copy link
Copy Markdown
Member

Looks like CI tests were not run for some reason. Something we'd need to investigate.

This fix looks correct to me.

I think line 125 should be removed too.

result_data = []

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants