Skip to content

Fix aliasing of builtin type field names#2738

Merged
koxudaxi merged 1 commit intomainfrom
fix/builtin-field-name-aliasing
Dec 22, 2025
Merged

Fix aliasing of builtin type field names#2738
koxudaxi merged 1 commit intomainfrom
fix/builtin-field-name-aliasing

Conversation

@koxudaxi
Copy link
Copy Markdown
Owner

Fixes: #2431

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Dec 22, 2025

Warning

Rate limit exceeded

@koxudaxi has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 9 minutes and 35 seconds before requesting another review.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

📥 Commits

Reviewing files that changed from the base of the PR and between 522101a and 4b317b8.

📒 Files selected for processing (4)
  • src/datamodel_code_generator/parser/base.py
  • tests/data/expected/main/jsonschema/builtin_field_names.py
  • tests/data/jsonschema/builtin_field_names.json
  • tests/main/jsonschema/test_main_jsonschema.py
✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch fix/builtin-field-name-aliasing

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.

@codecov
Copy link
Copy Markdown

codecov Bot commented Dec 22, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.36%. Comparing base (522101a) to head (4b317b8).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2738   +/-   ##
=======================================
  Coverage   99.36%   99.36%           
=======================================
  Files          83       83           
  Lines       12165    12169    +4     
  Branches     1459     1459           
=======================================
+ Hits        12088    12092    +4     
  Misses         45       45           
  Partials       32       32           
Flag Coverage Δ
unittests 99.36% <100.00%> (+<0.01%) ⬆️

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.

@codspeed-hq
Copy link
Copy Markdown

codspeed-hq Bot commented Dec 22, 2025

CodSpeed Performance Report

Merging #2738 will not alter performance

Comparing fix/builtin-field-name-aliasing (4b317b8) with main (522101a)

Summary

✅ 70 untouched
🆕 1 new
⏩ 10 skipped1

Benchmarks breakdown

Benchmark BASE HEAD Efficiency
🆕 test_main_builtin_field_names N/A 47.5 ms N/A

Footnotes

  1. 10 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.

@koxudaxi koxudaxi merged commit 253bd7c into main Dec 22, 2025
38 checks passed
@koxudaxi koxudaxi deleted the fix/builtin-field-name-aliasing branch December 22, 2025 15:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Aliases incorrectly generated for builtin types

1 participant