Tags: python-lapidary/datamodel-code-generator
Tags
dataclass generator improvements (koxudaxi#2102) * Use apply_discriminator_type for dataclasses Allow dataclass models to be properly generated with discriminator field * Fix dataclass inheritance Thanks to keyword only, dataclass models can use inheritance and no have issues with default values * Support datetime types in dataclass fields applying `--output-datetime-class` from koxudaxi#2100 to dataclass to map date, time and date time to the python `datetime` objects instead of strings. * fix unittest * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * fix unittest * fix unittest --------- Co-authored-by: Koudai Aono <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
[pre-commit.ci] pre-commit autoupdate (koxudaxi#2088) updates: - [github.com/astral-sh/ruff-pre-commit: v0.6.4 → v0.6.7](astral-sh/ruff-pre-commit@v0.6.4...v0.6.7) Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Koudai Aono <[email protected]>
[pre-commit.ci] pre-commit autoupdate (koxudaxi#2075) updates: - [github.com/astral-sh/ruff-pre-commit: v0.5.7 → v0.6.2](astral-sh/ruff-pre-commit@v0.5.7...v0.6.2) Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Koudai Aono <[email protected]>
Bump mkdocs-material from 9.5.26 to 9.5.31 (koxudaxi#2055) Bumps [mkdocs-material](https://github.com/squidfunk/mkdocs-material) from 9.5.26 to 9.5.31. - [Release notes](https://github.com/squidfunk/mkdocs-material/releases) - [Changelog](https://github.com/squidfunk/mkdocs-material/blob/master/CHANGELOG) - [Commits](squidfunk/mkdocs-material@9.5.26...9.5.31) --- updated-dependencies: - dependency-name: mkdocs-material dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Koudai Aono <[email protected]>
🚑 fixes graphql parser --use-standard-collections --use-union-operato… …r --use-annotated (koxudaxi#2016) * 🩹 fixes graphql parser use-standard-collections and use-union-operator * 🩹 fixes graphql parser to use annoteted on typename fields * ♻️ refactors tests * ♻️ refactors tests Signed-off-by: bpsoos <[email protected]> * ♻️ refactors tests Signed-off-by: bpsoos <[email protected]> * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * 🩹 fixes failing test Signed-off-by: bpsoos <[email protected]> * ♻️ refactors test_main into multiple files Signed-off-by: bpsoos <[email protected]> * ♻️ refactors test_main into multiple files Signed-off-by: bpsoos <[email protected]> * 🩹 fixes msgspec output file name Signed-off-by: bpsoos <[email protected]> * ♻️ refactors jsonschema expectations Signed-off-by: bpsoos <[email protected]> * ♻️ refactors jsonschema expectations Signed-off-by: bpsoos <[email protected]> * ♻️ refactors jsonschema expectations Signed-off-by: bpsoos <[email protected]> * ♻️ refactors openapi expectations Signed-off-by: bpsoos <[email protected]> * ♻️ refactors csv json yaml and general expectations Signed-off-by: bpsoos <[email protected]> * Fix test coverage (koxudaxi#2020) * Fix test coverage * Fix test coverage * Update output.py * Fix test coverage * Fix coverage * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Fix coverage * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Fix coverage * Fix coverage * Fix coverage * Fix coverage * Fix coverage * Fix coverage * Fix coverage * Fix coverage * Fix coverage * Fix coverage --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> * Fix coverage (koxudaxi#2023) * Fix coverage * Fix coverage * docs: Update airbyte use case + fix broken link (koxudaxi#2021) Co-authored-by: Koudai Aono <[email protected]> * formats * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Signed-off-by: bpsoos <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Koudai Aono <[email protected]> Co-authored-by: Natik Gadzhi <[email protected]>
fix: external references to parent folder (koxudaxi#1999) * Add support for external referenced discriminators * Fix discriminator reference in parent folder * Extend test case * post-fork-sync fixes * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * fix formatting * add test case for whole folder * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * ruff format --------- Co-authored-by: Koudai Aono <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Bump ruff from 0.3.6 to 0.4.1 (koxudaxi#1932) Bumps [ruff](https://github.com/astral-sh/ruff) from 0.3.6 to 0.4.1. - [Release notes](https://github.com/astral-sh/ruff/releases) - [Changelog](https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md) - [Commits](astral-sh/ruff@v0.3.6...v0.4.1) --- updated-dependencies: - dependency-name: ruff dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Koudai Aono <[email protected]>
Make discriminators work with multiple keys pointing to the same sche… …ma (koxudaxi#1885) * Make discriminators work with multiple keys pointing to the same schema * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Koudai Aono <[email protected]>
Fix black module error when 19.10b0 is installed (koxudaxi#1855) * Fix black module error * Add unittest pattern * skip unsupported unittest * skip unsupported unittest
format: support black >=24 (koxudaxi#1829) * format: support black >=24 Fixes koxudaxi#1821 * format: refine string_processing detection for black >= 24 * Add test pattern * Ignore unsupported tests --------- Co-authored-by: Koudai Aono <[email protected]>
PreviousNext