This is something to explore. Using something like https://pypi.org/project/pydantic-asyncapi/ could help.