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 default collection names automatically based on class name #18

Open
joakimnordling opened this issue Mar 31, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@joakimnordling
Copy link
Contributor

Would be nice if it'd be possible to specify a function that's used to generate collection names automatically based on class names, so one would not always have to specify the __collection__.

Arangodantic does this by specifying a collection_generator as part of the configuration.

Could be worth considering if we'd want to move the firedantic related configurations (such as any overriding collection name) into a FiredanticConfig or such, a bit similar to the ArangodanticConfig which was inspired by the Model Config in pydantic.

@joakimnordling joakimnordling added the enhancement New feature or request label Mar 31, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant