Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove empty aliases #402

Merged
merged 1 commit into from Aug 24, 2022
Merged

Conversation

samuelcolvin
Copy link
Contributor

@samuelcolvin samuelcolvin commented Aug 24, 2022

As per pydantic/pydantic#4253 (change in pydantic/pydantic#4252) an empty alias '' is now treated differently from None - e.g. no alias.

Therefore for starlite to be be compatible with pydantic v1.10, we need to remove these empty alias values.

This should be backwards compatible with earlier versions of pydantic since until v.10 an empty alias was treated as identical to ''.

@samuelcolvin samuelcolvin marked this pull request as ready for review August 24, 2022 16:54
@Goldziher Goldziher merged commit 3fc77ae into litestar-org:main Aug 24, 2022
@Goldziher
Copy link
Contributor

@all-contributors add @samuelcolvin code

@allcontributors
Copy link
Contributor

@Goldziher

I've put up a pull request to add @samuelcolvin! 🎉

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.

None yet

2 participants