pydantic updates: deprecating sane_defaults, nested properties, httpurl, is_user_url #371
devxpy
announced in
Programming Guide
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
You can now specify request model defaults as pydantic field defaults (these will take precedence over
sane_defaultsnow)ref:
e733599(#341)E.g.

You can also do nested keys in the api now (better dev UX). Only catch is that you can't then use
keyfor components, and must usevalueinstead (e.gsettings.still = st.checkbox(..., value=settings.still))For any fields that are URLs, please set the type to
FieldHttpUrlfor better validation error messages in the APIWhen downloading user URLs, use
is_user_url=TrueThis will give better error messages and sort our sentry logs which are filled with request errors
Beta Was this translation helpful? Give feedback.
All reactions