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
-
You can now specify request model defaults as pydantic field defaults (these will take precedence over
sane_defaults
now)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
key
for components, and must usevalue
instead (e.gsettings.still = st.checkbox(..., value=settings.still)
)For any fields that are URLs, please set the type to
FieldHttpUrl
for better validation error messages in the APIWhen downloading user URLs, use
is_user_url=True
This 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