Skip to content

Tags: python-lapidary/datamodel-code-generator

Tags

0.26.2

Toggle 0.26.2's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
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>

0.26.1

Toggle 0.26.1's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
[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]>

0.26.0

Toggle 0.26.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
[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]>

0.25.9

Toggle 0.25.9's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
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]>

0.25.8

Toggle 0.25.8's commit message

Partially verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
We cannot verify signatures from co-authors, and some of the co-authors attributed to this commit require their commits to be signed.
🚑 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]>

0.25.7

Toggle 0.25.7's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
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>

0.25.6

Toggle 0.25.6's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
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]>

0.25.5

Toggle 0.25.5's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
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]>

0.25.4

Toggle 0.25.4's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Fix black module error when 19.10b0 is installed (koxudaxi#1855)

* Fix black module error

* Add unittest pattern

* skip unsupported unittest

* skip unsupported unittest

0.25.3

Toggle 0.25.3's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
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]>