equinor/fmu-dataio

Display enum classes in Pydantic model docs

Opened this issue · 0 comments

Currently enums are filtered from Pydantic docs for pragmatic reasons.

# Enums aren't Pydantic but found in the same place
if _is_enum_or_enum_member(annotation):
return []

It'd be nice to display the enums to show the possible values for fields that receive them.