Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

K-dash
Copy link
Contributor

@K-dash K-dash commented May 31, 2025

Hi!
This pull request adds the --frozen-dataclasses flag (see issue #2143).

When this option is enabled, generated classes will use @dataclass(frozen=True) —making them immutable—instead of the default mutable dataclasses. This behavior applies uniformly to all input formats (JSON Schema, OpenAPI, and GraphQL), and it preserves backward compatibility by defaulting to frozen=False.

resolves #2143

Copy link

codecov bot commented Jun 7, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.12%. Comparing base (48f347e) to head (0c86e35).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2408      +/-   ##
==========================================
+ Coverage   98.10%   98.12%   +0.02%     
==========================================
  Files          65       66       +1     
  Lines        8071     8170      +99     
  Branches      813      815       +2     
==========================================
+ Hits         7918     8017      +99     
  Misses        115      115              
  Partials       38       38              
Flag Coverage Δ
unittests 98.12% <100.00%> (+0.02%) ⬆️

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.

Copy link

codspeed-hq bot commented Jun 7, 2025

CodSpeed Performance Report

Merging #2408 will not alter performance

Comparing K-dash:feature/frozen-dataclasses (0c86e35) with main (48f347e)

Summary

✅ 32 untouched benchmarks

@koxudaxi koxudaxi merged commit 5021a74 into koxudaxi:main Jun 7, 2025
31 checks passed
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.

Support for frozen dataclasses
2 participants