Do not attempt to represent models due to non-serializable errors#438
Do not attempt to represent models due to non-serializable errors#438Zeitsperre merged 1 commit intomasterfrom
Conversation
Signed-off-by: Trevor James Smith <10819524+Zeitsperre@users.noreply.github.com>
|
Would https://sphinx-pydantic.readthedocs.io/en/latest/ help ? |
It hasn't been updated in five years: https://github.com/Zsailer/sphinx-pydantic On the other hand, there's https://github.com/mansenfranzen/autodoc_pydantic. This is currently disabled in I'm wondering if it could be the case that the magic methods for the underlying classes aren't written to support the data they might be initialized with ( |
|
@huard Does this discussion question help? pydantic/pydantic#7510 Or perhaps this SO Question? https://stackoverflow.com/questions/78550600/how-to-fix-pydantic-default-value-is-not-json-serializable-warning-when-using |
|
Please open an issue so we come back to this later. |
Pull Request Checklist:
number) and pull request (:pull:number) has been added.What kind of change does this PR introduce?
pydantic-defined models from the public API ofemulators.Does this PR introduce a breaking change?
No. Usage still works, but documentation should be different.
Other information:
The issue appears to be brought on because the
ListCommandclass can't serialize whatrootis when generating the documentation:This means that any emulated models built using it are raising errors when trying to parse the documentation. I'm not familiar enough with
pydanticto understand how to fix this, so I'm removing them from the docs to see if that fixes things.