firedantic icon indicating copy to clipboard operation
firedantic copied to clipboard

Generate default collection names automatically based on class name

Open joakimnordling opened this issue 3 years ago • 0 comments

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 avatar Mar 31 '21 11:03 joakimnordling