Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate a Python module from multiple schemas #235

Merged
merged 2 commits into from
Jan 18, 2023

Conversation

rgson
Copy link
Contributor

@rgson rgson commented Jan 18, 2023

The new render_module method generates a Python module containing classes from one or more schemas (as opposed to render that accepts only one schema).

Generating a single module from multiple schemas is useful for example to group schemas that belong to the same namespace.

The new `render_module` method generates a Python module containing
classes from one or more schemas (as opposed to `render` that accepts
only one schema).

Generating a single module from multiple schemas is useful for example
to group schemas that belong to the same namespace.
@codecov
Copy link

codecov bot commented Jan 18, 2023

Codecov Report

Merging #235 (0aa9a2c) into master (18dd423) will increase coverage by 0.00%.
The diff coverage is 100.00%.

❗ Current head 0aa9a2c differs from pull request most recent head 34a00b4. Consider uploading reports for the commit 34a00b4 to get more accurate results

@@           Coverage Diff           @@
##           master     #235   +/-   ##
=======================================
  Coverage   99.37%   99.37%           
=======================================
  Files          14       14           
  Lines        1273     1276    +3     
  Branches      262      264    +2     
=======================================
+ Hits         1265     1268    +3     
  Misses          3        3           
  Partials        5        5           
Impacted Files Coverage Δ
...ataclasses_avroschema/model_generator/generator.py 99.09% <100.00%> (+0.01%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@marcosschroh
Copy link
Owner

Thanks @rgson

Could you add the documentation for the new feature :-) ?

@marcosschroh marcosschroh merged commit 9806b26 into marcosschroh:master Jan 18, 2023
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.

None yet

2 participants