Skip to content

Add schema class naming strategy#14

Open
lucasrcosta wants to merge 2 commits intoacryldata:masterfrom
lucasrcosta:class-naming-strategy
Open

Add schema class naming strategy#14
lucasrcosta wants to merge 2 commits intoacryldata:masterfrom
lucasrcosta:class-naming-strategy

Conversation

@lucasrcosta
Copy link
Copy Markdown

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