Add models_only option to skip client code generation#419
Add models_only option to skip client code generation#419magicmark wants to merge 1 commit intomirumee:mainfrom
Conversation
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
4538133 to
0dcf601
Compare
…ent code When `models_only = true`, ariadne-codegen generates only input types, enums, result types, fragments, and the base model — skipping the client class, base client, and exceptions module. This removes the httpx dependency for type-only use cases. The `queries_path` and base client configuration become optional in this mode. Closes mirumee#418 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
0dcf601 to
7cc2114
Compare
|
I’m on board with the goal here, and the use case makes sense. This feels more like a generation mode than a config toggle. I’d rather model it like existing strategies (client, graphqlschema) and add models_only at the entrypoint/strategy level, then keep settings focused on strategy-specific params. So +1 on the feature itself. I’d just prefer shipping it as a strategy/mode instead of models_only = true in settings. |
Summary
models_onlyconfiguration option (models_only = truein TOML) that generates only Pydantic models (input types, enums, result types, fragments, base model) without the runtime client code (client class, base client, exceptions)queries_pathand base client configuration optional whenmodels_onlyis enabledCloses #418
Test plan
__init__.pyhas no client imports in models_only mode🤖 Generated with Claude Code