Cardinality slots are not reflected in pydantic models for multivalued
fields, but they work in arrays
#2109
Labels
bug
Something that should work but isn't, with an example and a test case.
community-generated
generator-pydantic
Following a slack conversation with @cmungall
Using linkml 1.7.8
Cardinality slots are not reflected in pydantic models for
multivalued
fields, but they work in arrays. I don't know if this is only an error of the pydantic generator, or it also affects other things.For instance:
Translates into this in pydantic:
Whereas this:
Gives the wanted result in pydantic:
The text was updated successfully, but these errors were encountered: