Re:I use Attrs instead of Pydantic
by nerdponx on Thursday August 26, 2021 @07:57AM
(#28313766)
Worth pointing out Desert, which generates a Marshmallow schema from an Attrs class. You could then integrate this with Apispec or Marshmallow-Jsonschema.
https://pypi.org/project/desert/
https://pypi.org/project/marshmallow-jsonschema/
https://pypi.org/project/apispec/