Open
Description
Tracking issue for what needs to be done to make pydanticgen have all the functionality of pythongen. This will be incomplete at first, but is intended to document what needs to be done, so plz comment anything i'm missing and i will add. Went through the pydanticgen issues to try and find missing pieces
I think this will ultimately need to have an accessory package like linkml-runtime
to hold some commonly reused classes, or else we can stuff them all in the pydanticgen module and inject them during generation.
- Namespace generation
- Type generation - uris, curies, etc.
- Class metadata - uris, curies, etc. - "LinkML class attributes" are lost in gen-python #1830 , https://github.com/orgs/linkml/discussions/1820
- List/Dict inlining - Improve pydantic support for inlining as CompactDict SimpleDict #1862 , Add equivalent to pydantic AliasPaths or jsonld @nest to allow for nesting intermediate structures #1846
- Inherited slots - (do we want to list these out explicitly, or should we just inherit them? currently they are always inlined into the model even if the mixin/parent class is correctly inherited from)
What else am i missing?