Changelog¶
v1.1.3 - 2021-05-08¶
This is a patch release addressing missing cross reference ability and minor refactorings.
Internal¶
Add
add_domain_object_typesto extensionsetup.Add version and extension meta data to
setup.Refactor rather complex
setupinto separate functions.
Testing¶
Rename test directory
test-ext-autodoc-pydantictotest-baseto streamline naming convention.Add test directory
test-edgecase-any-referenceto mock issue with failing:any:reference to pydantic objects includingtest_any_referencetest.Add
test_sphinx_buildtest module to check that the sphinx docs build without error and warning which can be seen as an end to end test because autodoc_pydantic’s documentation is built with sphinx and contains an entire collection of usage examples for autodoc_pydantic itself.
Bugfix¶
Enable cross referencing of pydantic objects which are documented with autodoc_pydantic directives and linked via
:any:role 3.
Documentation¶
Add complete configuration and fields only example to documentation.
v1.1.2 - 2021-05-06¶
This is a bugfix release on compatibility issues with sphinx autosummary.
Internal¶
Remove custom object import and use autodoc’s provided functionality.
Add
option_is_trueandoption_is_falseforPydanticAutoDirectiverespecting missing values via customNONEobject.Move member option processing from
__init__todocument_membersforPydanticModelDocumenter.Introduce
PydanticDirectiveBasebase class for all pydantic directives to remove code redundancies.
Bugfix¶
Documentation¶
Add
autosummaryexplanation to usage section.
Testing¶
Add test module for ensuring
autosummaryinteroperability.
v1.1.1 - 2021-04-26¶
This is a minor release with focus on refactoring and doc strings.
Internal¶
Several minor readability refactorings.
Documentation¶
Add changelog and
myst_parserfor parsing markdown files.
Project¶
Add animated example to showcase difference between standard sphinx autodoc and pydantic autodoc.
Add project logo.
Add changelog.
v1.1.0 - 2021-04-24¶
This is small feature release enabling autodoc_pydantic to handle non JSON
serializable fields properly.
Internal¶
Replace inspection methods that use models JSON schema with methods that directly access relevant pydantic object attributes.
Intercept non JSON serializable fields and overwrite types and default values indicating serialization error.
Documentation¶
Add explicit note about how non JSON serializable fields are handled for
model-show-jsonandsettings-show-json.
v1.0.0 - 2021-04-23¶
This is a major release providing API stability with main focus on extensive tests and documentation.
Added¶
Add custom css for
autodoc_pydanticextension.
Internal¶
Add
PydanticAutoDirectiveas composite class to mainly manage option/configuration management for directives.Add
PydanticAutoDocas composite class to mainly manage option/configuration management for autodocumenters.Unify directive options and global configuration settings via composite classes.
Add option validators
option_members,option_one_of_factory,option_default_true,option_list_like.
Documentation¶
Add extensions to automate documentation generation:
ConfigurationTocto generate options/conf toc mappings from usage to configuration sectionTabDocDirectiveto generate rendered examples in configuration sectionAutoCodeBlockto generate code block from object path
Add user guide:
Installation
Usage
Configuration
Examples
Add developer guide:
Setting up development environment
Running tests
Building docs
Add
.readthedocs.yaml.
Testing¶
Add test python package with code examples for test execution (same structure as sphinx tests).
Add fixture
test_appto instantiate test app with settable configuration settings.Add fixture
autodocumentto handle restructured text generation tests (autodocumenter tests).Add fixture
parse_rstto handle node generation tests from restructured text (directive tests).Add autodoc/directive tests for all available configuration settings
Include sourcery in CI pipeline.
Packaging¶
Modify package dependencies to
sphinx >=3.4andpydantic >= 1.5.
v0.1.1 - 2021-04-04¶
This release adds the sphinx documentation skeleton.
Documentation¶
Add initial sphinx documentation.
v0.1.0 - 2021-03-30¶
This is the initial of autodoc_pydantic.
Added¶
Autodocumenter
PydanticModelDocumenterwith configurations:model_show_jsonmodel_show_config_membermodel_show_config_summarymodel_show_validator_membersmodel_show_validator_summarymodel_hide_paramlistmodel_undoc_membersmodel_membersmodel_member_ordermodel_signature_prefix
Autodocumenter
PydanticSettingsDocumenterwith configurations:settings_show_jsonsettings_show_config_membersettings_show_config_summarysettings_show_validator_memberssettings_show_validator_summarysettings_hide_paramlistsettings_undoc_memberssettings_memberssettings_member_ordersettings_signature_prefix
Autodocumenter
PydanticFieldDocumenterwith configurations:field_list_validatorsfield_doc_policyfield_show_constraintsfield_show_aliasfield_show_defaultfield_signature_prefix
Autodocumenter
PydanticValidatorDocumenterwith configurations:validator_signature_prefixvalidator_replace_signaturevalidator_list_fields
Autodocumenter
PydanticConfigClassDocumenterwith configurations:config_signature_prefixconfig_members
Directives
PydanticModel,PydanticSettings,PydanticField,PydanticValidator,PydanticConfigClass
Internal¶
Add
inspectionalong withModelWrappermodule providing functionality to inspect pydantic objects to retrieve relevant informations for documentation.
Testing¶
Add end to end tests for autodocumenters and directives.
Setup github actions for CI.
Add codacy integration.
Add code coverage.
Packaging¶
Use poetry for package management.
Add
pyproject.toml.Add github action to upload to PyPI upon version tags on main branch.