4 ms·
Pydantic was the first thing I thought of when I saw this. The possibilities are very intriguing. Do you have any thoughts/recommendations for someone if they
by digdugdirk 9mo ago
Pydantic was the first thing I thought of when I saw this. The possibilities are very intriguing.
Do you have any thoughts/recommendations for someone if they were to try making a pydantic interface layer for lite3?
- eliasdejong 9mo agoThe library contains iterator functions that can be used to recursively traverse a message from the root and discover the entire structure. Then every value can be checked for defined constraints appropriately while at the same time validating the traversal paths. Also a schema description format is needed, perhaps something like JSONSchema can be used. Doing this by definition requires processing an entire message which can be a little slow, so it is best done in C and exposed through CPython bindings / CFFI.