-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Do not attempt to represent models due to non-serializable errors #438
Conversation
Signed-off-by: Trevor James Smith <[email protected]>
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
ListCommand
class can't serialize whatroot
is 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
pydantic
to understand how to fix this, so I'm removing them from the docs to see if that fixes things.