Replies: 1 comment
-
Just posting on my own findings that I am going to try and use Extras to populate these dynamically. Once I have a working solution I'll make sure I post a sample for reference. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am working with a third party JSON REST like API, which exposes certain fields that have keys that start with the
@
symbol (and have spaces in the key) e.g@Cardholder UID
. This is due to the fact that they are user defined keys in the system.Needless to say that everything is is defined without the
@
prefix is being parsed with no trouble at all (including translatingcameCase
tosnake_case
conversions). I have two problems (possible approaches) at hand:myobject.custom_values["key"]
I am wondering what is the most pydantic way to extract the data and make them available as a parsed pyndatic model.
Thank you for any ideas/pointers.
Beta Was this translation helpful? Give feedback.
All reactions