Skip to content

Refresh project usage list#3072

Merged
koxudaxi merged 3 commits intomainfrom
codex/update-project-usage-list
Apr 4, 2026
Merged

Refresh project usage list#3072
koxudaxi merged 3 commits intomainfrom
codex/update-project-usage-list

Conversation

@koxudaxi
Copy link
Copy Markdown
Owner

@koxudaxi koxudaxi commented Apr 4, 2026

Summary

Refresh the "Projects that use datamodel-code-generator" examples in both README.md and docs/index.md.

What Changed

  • replaced awslabs/aws-lambda-powertools-python with openai/codex
  • replaced Arize-ai/phoenix with apache/airflow
  • added browser-use/browser-use
  • added tensorzero/tensorzero
  • kept the README and docs landing page in sync

Why

The updated list favors well-known projects with clear, verifiable usage links in the repository itself. This keeps the section useful as social proof while still linking to concrete examples of how the tool is used.

Impact

Users browsing the README or docs will see more recognizable examples of real-world adoption, with direct links to the referenced usage locations.

Validation

  • reviewed the README and docs diffs
  • ran git diff --check

Summary by CodeRabbit

  • Documentation
    • Updated the list of projects that use datamodel-code-generator to reflect current adoption and usage across the community.

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Apr 4, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 735158ff-f8dd-418e-99a5-e6ab0fd9aca7

📥 Commits

Reviewing files that changed from the base of the PR and between 7d41fef and 45e46d9.

⛔ Files ignored due to path filters (1)
  • docs/llms-full.txt is excluded by none and included by none
📒 Files selected for processing (2)
  • README.md
  • docs/index.md

📝 Walkthrough

Walkthrough

Documentation lists in README.md and docs/index.md were updated to reflect the current downstream projects using datamodel-code-generator. Two projects were removed and four new projects were added to both files, with links pointing to relevant repository sections.

Changes

Cohort / File(s) Summary
Documentation lists
README.md, docs/index.md
Updated "Projects that use" / "Used by" lists: removed awslabs/aws-lambda-powertools-python and Arize-ai/phoenix; added openai/codex, apache/airflow, browser-use/browser-use, and tensorzero/tensorzero with corresponding documentation links.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Poem

🐰 Hop hop, our lists now shine so bright,
New projects join the fold tonight,
Old paths fade, fresh ones take flight,
Documentation's updated right! 🎉

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title '[codex] Refresh project usage list' directly and accurately summarizes the main change: updating the list of projects that use datamodel-code-generator in README.md and docs/index.md.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch codex/update-project-usage-list

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Generated by GitHub Actions
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 4, 2026

@koxudaxi koxudaxi marked this pull request as ready for review April 4, 2026 09:33
@codspeed-hq
Copy link
Copy Markdown

codspeed-hq Bot commented Apr 4, 2026

Merging this PR will degrade performance by 18.79%

⚠️ Unknown Walltime execution environment detected

Using the Walltime instrument on standard Hosted Runners will lead to inconsistent data.

For the most accurate results, we recommend using CodSpeed Macro Runners: bare-metal machines fine-tuned for performance measurement consistency.

⚠️ Different runtime environments detected

Some benchmarks with significant performance changes were compared across different runtime environments,
which may affect the accuracy of the results.

Open the report in CodSpeed to investigate

❌ 11 regressed benchmarks
⏩ 98 skipped benchmarks1

⚠️ Please fix the performance issues or acknowledge them on CodSpeed.

Performance Changes

Mode Benchmark BASE HEAD Efficiency
WallTime test_perf_kubernetes_style_pydantic_v2 2.2 s 2.7 s -16%
WallTime test_perf_openapi_large 2.5 s 3 s -16.32%
WallTime test_perf_aws_style_openapi_pydantic_v2 1.6 s 1.9 s -15.55%
WallTime test_perf_complex_refs 1.8 s 2.2 s -18.79%
WallTime test_perf_stripe_style_pydantic_v2 1.7 s 2 s -16.06%
WallTime test_perf_large_models_pydantic_v2 3.1 s 3.7 s -17.46%
WallTime test_perf_deep_nested 5.2 s 6.1 s -15.15%
WallTime test_perf_duplicate_names 900.4 ms 1,065.8 ms -15.52%
WallTime test_perf_graphql_style_pydantic_v2 705.7 ms 831.2 ms -15.1%
WallTime test_perf_multiple_files_input 3.1 s 3.7 s -15.95%
WallTime test_perf_all_options_enabled 5.6 s 6.5 s -14.1%

Comparing codex/update-project-usage-list (45e46d9) with main (7d41fef)

Open in CodSpeed

Footnotes

  1. 98 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports.

@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 4, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (7d41fef) to head (45e46d9).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##              main     #3072   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           87        87           
  Lines        18237     18237           
  Branches      2087      2087           
=========================================
  Hits         18237     18237           
Flag Coverage Δ
unittests 100.00% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@koxudaxi koxudaxi merged commit 52d9ef9 into main Apr 4, 2026
36 of 37 checks passed
@koxudaxi koxudaxi deleted the codex/update-project-usage-list branch April 4, 2026 09:36
@koxudaxi koxudaxi changed the title [codex] Refresh project usage list Refresh project usage list Apr 4, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 4, 2026

Breaking Change Analysis

Result: Breaking changes detected

Reasoning: Despite the PR title suggesting only documentation changes, this PR contains substantial code changes: (1) Generated code output changes significantly - default values for model-referencing fields switch from default_factory=lambda: Model.model_validate(...) and TypeAdapter(...).validate_python(...) patterns to raw defaults with validate_default=True, which changes the exact generated code output; (2) Six Jinja2 templates are modified with new branching logic for empty fields lists, requiring custom template updates; (3) New CLI option --allow-remote-refs with deprecation warning for current default behavior; (4) New SchemaFetchError exception replaces raw httpx exceptions for HTTP failures; (5) Discriminator values expanded from str to str | int | bool, changing generated Literal types; (6) Removed ValidatedDefault, WrappedDefault classes and SUPPORTS_VALIDATED_DEFAULT, SUPPORTS_WRAPPED_DEFAULT class variables from the internal API.

Content for Release Notes

Code Generation Changes

  • Default values for fields referencing models now use validate_default=True instead of default_factory=lambda: - Fields with structured defaults (dicts/lists) that reference Pydantic models previously generated default_factory=lambda: Model.model_validate(...) or default_factory=lambda: TypeAdapter(Type).validate_python(...) patterns. They now generate the raw default value directly with validate_default=True (e.g., Field({'key': 'val'}, validate_default=True) instead of Field(default_factory=lambda: Model.model_validate({'key': 'val'}))). This changes the generated code output and may affect users who depend on the exact generated code structure, pin generated output in tests, or use custom post-processing. The runtime behavior should be equivalent for Pydantic v2 users. (Refresh project usage list #3072)

  • TypeAdapter import removed from generated code - Generated code no longer imports pydantic.TypeAdapter for default value handling. Code that previously used TypeAdapter(...).validate_python(...) in default factories now uses inline defaults with validate_default=True. (Refresh project usage list #3072)

  • Integer and boolean discriminator values now supported in generated Literal types - Discriminator fields previously only generated string literal values. They now support int and bool discriminator values (e.g., Literal[1] instead of Literal['1']), which changes generated code for schemas using integer discriminator mappings. (Refresh project usage list #3072)

Custom Template Update Required

  • Type alias templates (TypeAliasAnnotation.jinja2, TypeAliasType.jinja2, TypeStatement.jinja2, and their Union variants) now handle an empty fields list with a fallback to base_class - If you have custom copies of these templates, they need to be updated to include the new {%- if fields %}...{%- else %}...{%- endif %} branching logic. Without this update, custom templates may error when fields is empty. (Refresh project usage list #3072)

API/CLI Changes

  • New --allow-remote-refs / --no-allow-remote-refs CLI option and allow_remote_refs config field - Remote $ref fetching over HTTP/HTTPS now emits a deprecation warning by default. Pass --allow-remote-refs to suppress the warning, or --no-allow-remote-refs to block remote fetching entirely. In a future version, remote fetching will be disabled by default. Users relying on remote $ref resolution should add --allow-remote-refs to their invocations to avoid the deprecation warning and prepare for the future default change. (Refresh project usage list #3072)

  • New SchemaFetchError exception for HTTP fetch failures - Remote schema fetching now raises SchemaFetchError (instead of propagating raw httpx exceptions) on HTTP errors, non-2xx status codes, or unexpected HTML responses. Users catching specific httpx exceptions from remote ref resolution will need to catch SchemaFetchError instead. (Refresh project usage list #3072)

Error Handling Changes

  • HTTP fetch errors now raise SchemaFetchError with validation of response content type - Previously, fetching a remote $ref that returned an HTML error page would silently pass the HTML through as schema content. Now it raises SchemaFetchError if the response has text/html content type or a 4xx/5xx status code. This may cause previously-silent failures to become loud errors. (Refresh project usage list #3072)

This analysis was performed by Claude Code Action

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 4, 2026

🎉 Released in 0.56.0

This PR is now available in the latest release. See the release notes for details.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant