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

Add schema class naming strategy #14

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

lucasrcosta
Copy link

Hello, thank you very much for adding Python 3 support for this project!

The use case I've been working on has a schema that requires me to customize the names of the generated classes to work properly.

This PR adds an optional class_naming_strategy parameter to the generate_schema schema function (and subsequent relevant calls) that receives another function to be used as the strategy for resolving the name of the class from the full name of the field.

Cheers! 🎉

@lucasrcosta lucasrcosta force-pushed the class-naming-strategy branch from a0c2018 to 49b0c81 Compare October 3, 2022 23:15
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.

1 participant