Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: koxudaxi/datamodel-code-generator
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 0.51.0
Choose a base ref
...
head repository: koxudaxi/datamodel-code-generator
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 0.52.0
Choose a head ref
  • 18 commits
  • 100 files changed
  • 2 contributors

Commits on Jan 1, 2026

  1. Configuration menu
    Copy the full SHA
    636d9e8 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    6ab97df View commit details
    Browse the repository at this point in the history
  3. Add --class-name-prefix, --class-name-suffix, and --class-name-affix-…

    …scope options (#2885)
    
    * Add --class-name-prefix, --class-name-suffix, and --class-name-affix-scope options
    
    * Add validation for class_name_prefix and class_name_suffix
    
    * docs: update CLI reference documentation and prompt data
    
    🤖 Generated by GitHub Actions
    
    * Fix coverage: add skip_generator_and_affix=True to scoped resolver
    
    * Revert "Fix coverage: add skip_generator_and_affix=True to scoped resolver"
    
    This reverts commit 3ccbe07.
    
    * Remove unused skip_generator_and_affix feature
    
    * Add pragma no cover to Pydantic v2 validator
    
    * Remove line comments
    
    * Add pragma no cover to Pydantic v2 validator
    
    ---------
    
    Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
    koxudaxi and github-actions[bot] authored Jan 1, 2026
    Configuration menu
    Copy the full SHA
    0c3b510 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    94bb621 View commit details
    Browse the repository at this point in the history

Commits on Jan 2, 2026

  1. Create type aliases for inline types with title when use-title-as-nam…

    …e is enabled (#2889)
    
    When use_title_as_name is enabled and inline types (array, dict, enum as literal,
    oneOf/anyOf unions) have a title, type aliases are now created instead of using
    inline types directly.
    
    Also fixes Pydantic v2 compatibility issue where model_validate's extra='ignore'
    parameter requires Pydantic v2.12.5+.
    
    Fixes: #2887
    koxudaxi authored Jan 2, 2026
    Configuration menu
    Copy the full SHA
    1d221da View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    5306aef View commit details
    Browse the repository at this point in the history
  3. Create type aliases for nested elements with titles when use-title-as…

    …-name is enabled (#2891)
    
    * Create type aliases for nested elements with titles when use-title-as-name is enabled
    
    * Add patternProperties and propertyNames support for use-title-as-name
    koxudaxi authored Jan 2, 2026
    Configuration menu
    Copy the full SHA
    debf5c8 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    4f26e46 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    f4b240a View commit details
    Browse the repository at this point in the history
  6. Add documentation for reducing duplicate field types (#2896)

    * Add documentation for reducing duplicate field types with --use-type-alias
    
    * docs: update CLI reference documentation and prompt data
    
    🤖 Generated by GitHub Actions
    
    * Use heading instead of bold for Result section
    
    ---------
    
    Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
    koxudaxi and github-actions[bot] authored Jan 2, 2026
    Configuration menu
    Copy the full SHA
    a834e62 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    2b45def View commit details
    Browse the repository at this point in the history
  8. Add --openapi-include-paths option for path-based model filtering (#2894

    )
    
    * Add --openapi-include-paths option for path-based model filtering
    
    * docs: update CLI reference documentation and prompt data
    
    🤖 Generated by GitHub Actions
    
    ---------
    
    Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
    koxudaxi and github-actions[bot] authored Jan 2, 2026
    Configuration menu
    Copy the full SHA
    87445c8 View commit details
    Browse the repository at this point in the history
  9. Add --graphql-no-typename option to exclude typename field (#2899)

    * Add --graphql-no-typename option to exclude typename field
    
    * docs: update CLI reference documentation and prompt data
    
    🤖 Generated by GitHub Actions
    
    ---------
    
    Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
    koxudaxi and github-actions[bot] authored Jan 2, 2026
    Configuration menu
    Copy the full SHA
    99aac7b View commit details
    Browse the repository at this point in the history
  10. Add --default-values CLI option for overriding field defaults (#2897)

    * Add --default-values CLI option for overriding field defaults
    
    * docs: update CLI reference documentation and prompt data
    
    🤖 Generated by GitHub Actions
    
    * Remove line comments and add flat key test coverage
    
    * Remove line comments from parser files
    
    * Simplify resolve_default_value by removing redundant class_name check
    
    * DRY JSON config loading with _load_json_config helper
    
    * Add test for custom_formatters_kwargs validation error
    
    * Handle class_name=None edge case and add allOf inheritance test
    
    * Fix flat overrides skipped when class_name is None
    
    * Simplify resolve_default_value scoped key logic
    
    ---------
    
    Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
    koxudaxi and github-actions[bot] authored Jan 2, 2026
    Configuration menu
    Copy the full SHA
    689cc79 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    a310b6f View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    8b7c441 View commit details
    Browse the repository at this point in the history
  13. Add --use-serialization-alias option for Pydantic v2 (#2905)

    * Add --use-serialization-alias option for Pydantic v2
    
    * docs: update CLI reference documentation and prompt data
    
    🤖 Generated by GitHub Actions
    
    ---------
    
    Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
    koxudaxi and github-actions[bot] authored Jan 2, 2026
    Configuration menu
    Copy the full SHA
    3db6667 View commit details
    Browse the repository at this point in the history
  14. Fix Pydantic v2 discriminated unions in array fields (#2907)

    * Fix Pydantic v2 discriminated unions in array fields
    
    * Add e2e tests for discriminator in array
    
    * Remove complex runtime test that fails in CI
    koxudaxi authored Jan 2, 2026
    Configuration menu
    Copy the full SHA
    ccf8794 View commit details
    Browse the repository at this point in the history
Loading